示例#1
0
        public Task Write100ContinueAsync()
        {
            lock (_dataWriterLock)
            {
                if (_completed)
                {
                    return(Task.CompletedTask);
                }

                return(_frameWriter.Write100ContinueAsync(_streamId));
            }
        }
示例#2
0
        public ValueTask<FlushResult> Write100ContinueAsync()
        {
            lock (_dataWriterLock)
            {
                ThrowIfSuffixSentOrCompleted();

                if (_streamCompleted)
                {
                    return default;
                }

                return _frameWriter.Write100ContinueAsync(StreamId);
            }
        }