![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Multiple endpoints Aynone ever get this to work? This is a critical scenario... the other critical scenario is having more than one endpoint on the same IIS hosted service. [Go-live version] using System; using System.ServiceModel; namespace DemoStuff { [ServiceContract] interface IDemoService { [OperationContract] string GetText( ); } class DemoService : IDemoService { public string GetText( ) { { return "Stuff"; } } } class Program { static void Main(string[] args) { Uri basicHttpUri = new Uri("http://localhost:8081/Service/"); Uri httpDualUri = new Uri("http://localhost:8082/Service/"); ServiceHost hService = new ServiceHost(typeof(DemoService)); hService.AddServiceEndpoint(typeof(IDemoService), new BasicHttpBinding( ), basicHttpUri); hService.AddServiceEndpoint(typeof(IDemoService), new WSDualHttpBinding( ), httpDualUri); hService.Open( ); Console.WriteLine("Service at your service."); Console.ReadKey( ); hService.Close( ); } } } |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Multiple endpoints |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Multiple inboxes for multiple accounts | Vista mail | |||
| Multiple cores, Multiple temps | Overclocking & Cooling | |||
| Newbie question: replace multiple strings in multiple text files | VB Script | |||
| Media Center Multiple Tuner Cards Multiple satellite services | Vista music pictures video | |||