Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 private void Reactor_OnNetworkError(NetworkException networkError)
 {
     if (this.HandleSessionRemovingEvent())
     {
         this._reactor.Stop();
         this._reactor = null;
         this.HandleSessionDisconnectedEvent();
     }
 }
Ejemplo n.º 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();
         }
     }
 }