Jonathan Allen
Jonathan Allen

Reputation: 70307

WCF: How do I get the list of endpoints from ServiceHost?

I can add endpoints using ServiceHost.AddServiceEndpoint. How do I get that list of endpoints back out?

Upvotes: 45

Views: 16735

Answers (1)

Brian
Brian

Reputation: 118865

Use host.Description.Endpoints

Upvotes: 81

Related Questions