Results 1 to 2 of 2

Thread: WCF Accessing the class created at the Endpoint?.

  1. #1

    Thread Starter
    Banned
    Join Date
    Jul 2010
    Posts
    7

    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();


    .

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: WCF Accessing the class created at the Endpoint?.

    This link shows how, remember a host can have multiple endpoints
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width