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