示例#1
0
 private void SrvClientConnect(object sender, PeerConnectedEventArgs args)
 {
     _CurrPeerIpPort = args.IpPort;
     if (_ClusterClient != null && _ClusterClient.Connected)
     {
         ClusterHealthy?.Invoke(this, EventArgs.Empty);
     }
 }
示例#2
0
 private void CliServerConnect(object sender, EventArgs args)
 {
     if (_ClusterServer != null &&
         !String.IsNullOrEmpty(_CurrPeerIpPort) &&
         _ClusterServer.IsConnected(_CurrPeerIpPort))
     {
         ClusterHealthy?.Invoke(this, EventArgs.Empty);
     }
 }
示例#3
0
 private void ServerConnected(object sender, EventArgs args)
 {
     Logger?.Invoke("[ClusterClient] Connected to server " + _ServerIp + ":" + _ServerPort);
     ClusterHealthy?.Invoke(this, EventArgs.Empty);
 }