public static void SendPackets(this IZoneSession session, IEnumerable <Packet> packets) { foreach (var packet in packets) { session.SendPacket(packet); } }
private void OnSessionStopped(IZoneSession session) { if (session.Id == 0) { return; } ImmutableInterlocked.Update(ref _sessions, s => s.Remove((ZoneSession)session)); }
public void SetSession(IZoneSession session) { Session = session; }