I am writing a WCF service to handle multipart batch requests. Once I get a multipart request which inturn consists of multiple GET requests, I have to execute all those GET request on the localhost. I am able to do so using the HttpClient using the hostname of the machine, but in order to optimize things, I want to skip the DNS lookup. The problem now I facing is how to figure out that on which port my serive is running?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…