|
-
Sep 15th, 2009, 02:48 PM
#1
Thread Starter
Hyperactive Member
WCF Accessing the class created at the Endpoint?
Hi, Please be gentle, I'm new to WCF.. 
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();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|