示例#1
0
        private void HandleEnterMessage(Guid sender, string name)
        {
            Console.WriteLine("New endpoint found");
            RemoteEndpoint remote = new RemoteEndpoint(name, this, sender, (c) => { Console.WriteLine("REMOTE: " + c); });

            remote.RequestRemoteGraph(sender);

            if (!_remoteEndpoints.ContainsKey(sender))
            {
                _remoteEndpoints.Add(sender, remote);
            }
            else
            {
                _remoteEndpoints[sender] = remote;
            }
        }