private void OnError(object sender, AnycastEventsBase.ErrorEventArgs ea) { if (_context.Client != sender) { return; } if (ea.Exception is ConnectServerException) { if (_firstConnectServer) { _firstConnectServer = false; if (this.FirstConnectError != null) { this.FirstConnectError(this, ea); } } return; } if (ea.Exception is ReconnectFailedException) { if (this.LastConnectError != null) { this.LastConnectError(this, ea); } return; } if (this.Error != null) { this.Error(this, ea); } }
private void OnError(object sender, AnycastEventsBase.ErrorEventArgs ea) { }
private void OnLastConnectError(object sender, AnycastEventsBase.ErrorEventArgs ea) { _single.Set(); }