private void OnConnectAuthenticate(bool connected) { if (connected) { _peer.Authenticate(_user, _password, OnAuthenticateFetchAll, _timeoutMs); CommunicationLog?.Invoke(this, new LogEventArgs("Connection successful")); } else { _localException = new Exception("Connection failed"); _successEvent.Set(); } }
private void OnConnectAuhtenticate(bool connected) { if (connected) { this._connected = true; _peer.Authenticate(this._user, this._password, OnAuthenticate, this._timeoutMs); } else { this._connected = false; _mException = new Exception("Connection failed"); _mSuccessEvent.Set(); } }