3 writes to _target
System.Threading.Tasks.Dataflow (3)
Blocks\TransformManyBlock.cs (2)
71
Initialize(messageWithId => ProcessMessage(transform, messageWithId), dataflowBlockOptions, ref _source, ref
_target
, ref _reorderingBuffer, TargetCoreOptions.None);
95
Initialize(messageWithId => ProcessMessageWithTask(transform, messageWithId), dataflowBlockOptions, ref _source, ref
_target
, ref _reorderingBuffer, TargetCoreOptions.UsesAsyncCompletion);
Blocks\TransformManyBlock.IAsyncEnumerable.cs (1)
45
}, dataflowBlockOptions, ref _source, ref
_target
, ref _reorderingBuffer, TargetCoreOptions.UsesAsyncCompletion);
35 references to _target
System.Threading.Tasks.Dataflow (35)
Blocks\TransformManyBlock.cs (26)
115
onItemsRemoved = static (owningSource, count) => ((TransformManyBlock<TInput, TOutput>)owningSource).
_target
.ChangeBoundingCount(-count);
120
static owningSource => ((TransformManyBlock<TInput, TOutput>)owningSource).
_target
.Complete(exception: null, dropPendingMessages: true),
214
_target
.Complete(caughtException, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
224
_target
.SignalOneAsyncMessageCompleted();
232
_target
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
278
_target
.Complete(exc, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
288
_target
.Complete(aggregate, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: true);
300
_target
.SignalOneAsyncMessageCompleted();
333
else if (
_target
.IsBounded)
339
_target
.ChangeBoundingCount(count: -1);
354
TargetCore<TInput> target =
_target
;
440
if (
_target
.IsBounded) UpdateBoundingCountWithOutputCount(count: ((ICollection<TOutput>)outputItems).Count);
442
if (
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1)
468
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1 ||
473
if (
_target
.IsBounded)
484
if (outputFirstItem)
_target
.ChangeBoundingCount(count: 1);
502
if (!outputFirstItem)
_target
.ChangeBoundingCount(count: -1);
538
Debug.Assert(
_target
.IsBounded, "Expected to be in bounding mode.");
539
if (count > 1)
_target
.ChangeBoundingCount(count - 1);
540
else if (count == 0)
_target
.ChangeBoundingCount(-1);
545
public void Complete() {
_target
.Complete(exception: null, dropPendingMessages: false); }
555
_target
.Complete(exception, dropPendingMessages: true);
571
public int InputCount { get { return
_target
.InputCount; } }
579
return
_target
.OfferMessage(messageHeader, messageValue, source, consumeToAccept);
601
private int InputCountForDebugger { get { return
_target
.GetDebuggingInformation().InputCount; } }
631
_targetDebuggingInformation = transformManyBlock.
_target
.GetDebuggingInformation();
Blocks\TransformManyBlock.IAsyncEnumerable.cs (9)
75
_target
.Complete(exc, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
81
_target
.SignalOneAsyncMessageCompleted();
105
else if (
_target
.IsBounded)
111
_target
.ChangeBoundingCount(count: -1);
126
TargetCore<TInput> target =
_target
;
204
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1 ||
209
if (
_target
.IsBounded)
222
_target
.ChangeBoundingCount(count: 1);
243
_target
.ChangeBoundingCount(count: -1);