private void OnSessionPacketReceived(PacketReceivedEventArgs <PacketSessionData> e) { if ((_oldSessionId != 0 && e.Packet.PacketHeader.SessionUId != _oldSessionId) || e.Packet.PacketHeader.FrameIdentifier < _oldFrameIdentifier) { OnSessionChanged(e); } SessionPacketReceived?.Invoke(this, e); }
private void OnSessionPacketReceived(PacketSessionData oldSessionData, PacketSessionData newSessionData) { SessionPacketReceived?.Invoke(this, new PacketReceivedEventArgs <PacketSessionData>(oldSessionData, newSessionData)); }