private ScheduleMoreWorkIfNeeded ( ) : void | ||
Résultat | void |
public virtual void Close() { if (_requestQueue != null) { _requestQueue.ScheduleMoreWorkIfNeeded(); } if (NetStream != null) { NetStream.Close(); NetStream = null; } if (NetSocket != null) { NetSocket.Close(); NetSocket = null; } // return buffer to the pool if (_dataBuffer != null) { CoreChannel.BufferPool.ReturnBuffer(_dataBuffer); _dataBuffer = null; } } // Close
public virtual void Close() { try { if (_requestQueue != null) { _requestQueue.ScheduleMoreWorkIfNeeded(); } if (NetStream != null) { NetStream.Close(); NetStream = null; } if (NetSocket != null) { NetSocket.Close(); NetSocket = null; } } finally { ReturnBufferToPool(); } } // Close