protected virtual void OnAuthenticationDenied(AuthenticationResult authenticationResult, string user) { if (PendingAndLoggedInUsers.ContainsKey(authenticationResult.Connection)) { PendingAndLoggedInUsers.Remove(authenticationResult.Connection); } }
protected override void OnDisconnected_Internal(NetConnection connection) { OnUserDisconnected(PendingAndLoggedInUsers[connection]); PendingAndLoggedInUsers.Remove(connection); ((ServerTripleDesNetEncryptor)NetEncryptor).ConnectionCryptoProviders.Remove(connection); }