Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. ServiceHost host = new ServiceHost(typeof(HelloService));
  2. host.AddServiceEndpoint(typeof(IHelloWorld), new WSHttpContextBinding(), "http://localhost:8873/helloworld/ws");
  3. host.Open();
  4. foreach (var se in host.Description.Endpoints)
  5. {
  6. Console.WriteLine(se.Address);
  7. }
  8. host.Close();
  9. Console.Read();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement