private void CloseConnection(ConnectionInformation Connection) { try { Connection.Dispose(); PlusEnvironment.GetGame().GetClientManager().DisposeConnection(Convert.ToInt32(Connection.GetConnectionID())); } catch (Exception e) { Core.ExceptionLogger.LogException(e); } }
private void manager_connectionEvent(ConnectionInformation connection) { connection.connectionChanged += connectionChanged; PlusEnvironment.GetGame().GetClientManager().CreateAndStartClient(Convert.ToInt32(connection.GetConnectionID()), connection); }