Marek

Marek

  • NA
  • 1
  • 0

How to access service from server

May 8 2009 10:08 AM
Hi, i just started working with wcf and maybe this is really stupid question, but I haven't found any solution anywhere. I have simple console server application. i.e.:
ServiceHost host = new ServiceHost(typeof(SomeNamespace.Service));
Uri address = new Uri(@"http://localhost:8080");       
host.AddServiceEndpoint(typeof(SomeNamespace.IService), new WSHttpBinding(), address);          
           
...and my question is: can I somehow access the instance of the service SomeNamespace.Service ? I can acces this instance through OperationContract from client app, but is there some way to access it directly?

Thank you !

Answers (1)