コード例 #1
0
            public async Task Cancel()
            {
                await _stream.Cancel().ConfigureAwait(false);

                if (!_isComplete)
                {
                    _stack.Dispose();
                }
                _isComplete = true;
            }
コード例 #2
0
            public async Task Cancel()
            {
                await _stream.Cancel();

                if (!_isComplete)
                {
                    _stack.Dispose();
                }
                _isComplete = true;
            }