WCF Accessing the class created at the Endpoint?.
Hi, Please be gentle, I'm new to WCF.. http://www.vbforums.com/images/smilies/smile.gif
I have a class that I create as an EndPoint for a Callback Interface. I create the object (called svh below) and it does what it needs to do. I have a method within that class called Subscribe and all clients register with this and I save-off the references into an ArrayList.
However, my issue comes when I want to use the svh object to call another method on this class (topically, NotifySubscribers). How do I get to the serviceendpoint started class form outside ???
Thanks
Chubby:
Code:
Code:
svh = new ServiceHost(typeof(EventCallbackPipe));
svh.AddServiceEndpoint(typeof(IEventCallbackPipe), new NetTcpBinding(), "net.tcp://" + ChannelServer + ":" + ChannelPort);
svh.Open();
.
Re: WCF Accessing the class created at the Endpoint?.
This link shows how, remember a host can have multiple endpoints