Esempio n. 1
0
 private static void OnStopSessionMessageReceived(StopSessionMessage message)
 {
     if (ProxySessionManager.TryGet(message.SessionId, out ProxySession session))
     {
         ClientConnectionManager.Disconnect(session.ClientConnection, message.Reason);
     }
 }
 private void OnGameServerBound(ServerRequestArgs args)
 {
     if (!this.m_connection.Destructed)
     {
         if (args.ErrorCode == ServerRequestError.Success && args.ResponseMessage.Success)
         {
             if (this.m_connection.State == ClientConnectionState.LOGGED)
             {
                 this.m_connection.Session.SetStarted();
             }
         }
         else
         {
             ClientConnectionManager.Disconnect(this.m_connection, 0);
         }
     }
 }