protected virtual void OnSocketConnection(Socket socket) { var connection = new AuthConnectionHandler <TAuthIdentity, TSendModel, TReceiveModel>(socket, this.userProvider, this.config); connection.OnAuthResolvedEvent += this.OnAuthConnection; connection.OnPacketReceivedEvent += this.OnContentReceived; connection.StartReceive(); this.OnConnectionEvent?.Invoke(this, connection); }