private static void FlushHandler(Object sender, LRU <IPEndPoint, Socket> .FlushEventArgs args) { if (args.Value == null) { return; } CloseSocket(args.Value); NetworkingStatisticsGroup.OnClosedSendingSocket(); }
internal void InvalidateEntry(IPEndPoint target) { Socket socket; if (!cache.RemoveKey(target, out socket)) { return; } CloseSocket(socket); NetworkingStatisticsGroup.OnClosedSendingSocket(); }