Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServiceHost host = new ServiceHost(typeof(HelloService));
- host.AddServiceEndpoint(typeof(IHelloWorld), new WSHttpContextBinding(), "http://localhost:8873/helloworld/ws");
- host.Open();
- foreach (var se in host.Description.Endpoints)
- {
- Console.WriteLine(se.Address);
- }
- host.Close();
- Console.Read();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement