private void QuicServerConnectionReceiveLoop() { try { Utility.SafelyOperation(this.QuicServerConnectionReceiveLoopImp); } finally { buffer.Close(); } }
/// <summary> /// the method to receive message from server. /// </summary> private void NetbiosClientReceiveLoop() { try { // donot arise any exception in the work thread. Utility.SafelyOperation(this.NetbiosClientReceiveLoopImp); } finally { // this operation is safe, it will never arise exception. // because in this function, the thread is not end, so the buffer is not disposed. buffer.Close(); } }