-
Sep 21st, 2010, 07:12 AM
#1
Thread Starter
Banned
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();
.
-
Sep 24th, 2010, 03:11 PM
#2
Re: WCF Accessing the class created at the Endpoint?.
This link shows how, remember a host can have multiple endpoints
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
|