public void OnCloseExistingConnection(ILoginClient client, CloseConnectionPacket closeConnectionPacket) { var otherConnectedClient = _loginServer.GetClientByUsername(closeConnectionPacket.Username); if (otherConnectedClient == null) { _logger.LogWarning($"Cannot find user with username '{closeConnectionPacket.Username}'."); return; } // TODO: disconnect client from server and ISC. }
public static void OnCloseExistingConnection(LoginClient client, INetPacketStream packet) { var loginServer = DependencyContainer.Instance.Resolve <ILoginServer>(); var closeConnectionPacket = new CloseConnectionPacket(packet); var otherConnectedClient = loginServer.GetClientByUsername(closeConnectionPacket.Username); if (otherConnectedClient == null) { Logger.LogWarning($"Cannot find user with username '{closeConnectionPacket.Username}'."); return; } // TODO: disconnect client from server and ISC. }