void ReleaseContext(TContext context) { try { context.Clear(); m_contextPool.Put(context); } catch { } }
protected void ReleaseAsyncArgs(SocketAsyncEventArgs args) { try { args.AcceptSocket = null; args.ClearBuffer(); args.RemoteEndPoint = null; m_asyncArgsPool.Put(args); } catch { } }
void ReleaseContext(DnsUdpContext context) { context.Reset(); m_contextPool.Put(context); }