public void Dispose() { if (_channel != null) { _channel.Dispose(); _channel = null; } if (_buf != null) { _buf.Dispose(); _buf = null; } }