Brunet.Transport.LocalDiscovery.HandleSeekTAs C# (CSharp) Method

HandleSeekTAs() protected method

Incoming TAs are added to the ITAHandler
protected HandleSeekTAs ( Object o, EventArgs ea ) : void
o Object
ea System.EventArgs
return void
    protected void HandleSeekTAs(Object o, EventArgs ea)
    {
      Channel queue = (Channel) o;
      IList tas_as_str = null;
      try {
        RpcResult rpc_reply = (RpcResult) queue.Dequeue();
        tas_as_str = (IList) rpc_reply.Result;
      } catch {
        // Remote end point doesn't have LocalDiscovery enabled.
        return;
      }

      UpdateRemoteTAs(tas_as_str);
    }
  }