Exemplo n.º 1
0
 /// <summary>
 /// Closes the connection.
 /// </summary>
 /// <param name="connection">The connection.</param>
 private static void CloseConnection(ConnectionInformation connection)
 {
     try
     {
         connection.Dispose();
         AzureEmulator.GetGame().GetClientManager().DisposeConnection(((uint)connection.GetConnectionId()));
     }
     catch (Exception ex)
     {
         Logging.LogException(ex.ToString());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Managers the connection event.
 /// </summary>
 /// <param name="connection">The connection.</param>
 private static void ManagerConnectionEvent(ConnectionInformation connection)
 {
     connection.ConnectionChanged += ConnectionChanged;
     AzureEmulator.GetGame().GetClientManager().CreateAndStartClient(((uint)connection.GetConnectionId()), connection);
 }