예제 #1
0
        public GossipNode(GossipSettings settings)
        {
            _settings      = settings;
            _gossipManager = new GossipManager(this);
            _remotePeers   = new ConcurrentDictionary <string, IGossipPeer>();

            _gossipPeer = new GossipPeer(settings.ClusterName, new IPEndPoint(IPAddress.Any, settings.Port), settings.Id, DateTime.MinValue);
        }
예제 #2
0
 public virtual void GossipEvent(GossipPeer member, GossipPeerState state)
 {
     Console.WriteLine($"{member.Id}, {state}");
 }