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);
        }
Beispiel #2
0
 private void OnSessionPacketReceived(PacketSessionData oldSessionData, PacketSessionData newSessionData)
 {
     SessionPacketReceived?.Invoke(this, new PacketReceivedEventArgs <PacketSessionData>(oldSessionData, newSessionData));
 }