Beispiel #1
0
 private void Connector_OnConnectFail(NetworkException networkError)
 {
     Logger.LogError("Fail to connect: {0}", new object[] { networkError.Message });
     if (this.OnConnectFail != null)
     {
         this.OnConnectFail(networkError);
     }
 }
Beispiel #2
0
 private void Reactor_OnNetworkError(NetworkException networkError)
 {
     if (this.HandleSessionRemovingEvent())
     {
         this._reactor.Stop();
         this._reactor = null;
         this.HandleSessionDisconnectedEvent();
     }
 }
Beispiel #3
0
 private void Reactor_OnNetworkError(NetworkException networkError)
 {
     Logger.LogError("Reactor NetworkError: {0}", new object[] { networkError.Message });
     if (this._reactor != null)
     {
         this._reactor.Stop();
         this._reactor = null;
         if (this.OnDisconnected != null)
         {
             this.OnDisconnected();
         }
     }
 }