extending custom peer resolver in peerchannel RRS feed

  • Question

  • Hi,

    I want to extend the CustomPeerResolver to pass more parameters with the Register , Resolve , Refresh , Unregister methods.


    for example if peer register to mesh , why I cannot pass some peer login info that is not in the RegisterInfo object ?

    it's because the custompeerresolver will be back into DB , and I want to do someoperations when peer X login.

    and from other side - don't want to create different login method that will initiate new socket etc to the same server.



    when RegisterInfo could have some Object "extendInfo"




    Tuesday, August 14, 2007 8:58 AM


All replies

  • Hi,


    The simplest way to address your particular scenario would be to write your own custom resolver - client and service. There is a sample that we ship that implements a basic resolver client and service and you can find more information about it here: http://msdn2.microsoft.com/en-us/library/ms751466.aspx 


    For more information on Peer Channel in general, please take a look at http://blogs.msdn.com/peerchan/


    Hope this helps!


    Wednesday, August 15, 2007 10:04 PM
  • Hi! Can you help me running the custom peer resolver chat client behind an outbound firewall. Service is hosted on a live IP and one instance of a client which is behind an outbound firewall (proxy server or institutional network) is trying to access service but not able to do so. I'm getting following error:

    System.ServiceModel.CommunicationException: The Peer resolver threw an exception. Please refer to InnerException. ---> System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://
    Thursday, February 14, 2008 7:12 AM
  • from what I know, there is no difference between connecting to custom resolver and connecting to every wcf service.

    can you connect to other wcf services from the client pc to the same server ?

    can you connect from other pc ?

    if you look in the example , you can extend it to use other channels , so , maybe try using basic http channel ?


    Saturday, February 16, 2008 6:56 PM
  • Hi! thanks for the reply..... I tried using Http channel its now working.....
    Sunday, February 17, 2008 5:26 AM