Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
729 views
in Technique[技术] by (71.8m points)

c# - Identifying port on which a serice is ruuning from within that service itself

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...