3 writes to _currentFlushTcs
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (3)
134
_currentFlushTcs
= new TaskCompletionSource<FlushResult>(TaskCreationOptions.RunContinuationsAsynchronously);
168
_currentFlushTcs
= new TaskCompletionSource<FlushResult>(TaskCreationOptions.RunContinuationsAsynchronously);
315
_currentFlushTcs
= null;
15 references to _currentFlushTcs
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (15)
62
Debug.Assert(
_currentFlushTcs
== null, "There should not be a pending flush.");
70
if (
_currentFlushTcs
== null && _head == null)
81
if (
_currentFlushTcs
== null && _head == null)
92
if (
_currentFlushTcs
== null && _head == null)
111
if (
_currentFlushTcs
!= null)
113
return new ValueTask<FlushResult>(
_currentFlushTcs
.Task);
125
if (
_currentFlushTcs
!= null)
135
var result = new ValueTask<FlushResult>(
_currentFlushTcs
.Task);
163
Debug.Assert(
_currentFlushTcs
!= null);
166
_currentFlushTcs
.SetResult(flushResult);
199
if (
_currentFlushTcs
== null)
226
if (
_currentFlushTcs
== null)
305
Debug.Assert(
_currentFlushTcs
!= null);
308
_currentFlushTcs
.SetException(flushEx);
312
_currentFlushTcs
.SetResult(flushResult);