2 writes to _target
System.Threading.Tasks.Dataflow (2)
Blocks\TransformBlock.cs (2)
126
_target
= new TargetCore<TInput>(this,
133
_target
= new TargetCore<TInput>(this,
19 references to _target
System.Threading.Tasks.Dataflow (19)
Blocks\TransformBlock.cs (19)
109
onItemsRemoved = static (owningSource, count) => ((TransformBlock<TInput, TOutput>)owningSource).
_target
.ChangeBoundingCount(-count);
113
static owningSource => ((TransformBlock<TInput, TOutput>)owningSource).
_target
.Complete(exception: null, dropPendingMessages: true),
143
_target
.Completion.ContinueWith(static (completed, state) =>
163
dataflowBlockOptions.CancellationToken, Completion, static (state, _) => ((TargetCore<TInput>)state!).Complete(exception: null, dropPendingMessages: true),
_target
);
193
if (!itemIsValid)
_target
.ChangeBoundingCount(-1);
206
if (
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1)
247
_target
.Complete(caughtException, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
255
_target
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
276
bool isBounded =
_target
.IsBounded;
292
_target
.Complete(aggregate, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: true);
302
if (!gotOutputItem && isBounded)
_target
.ChangeBoundingCount(-1);
310
if (
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1)
329
_target
.SignalOneAsyncMessageCompleted();
333
public void Complete() {
_target
.Complete(exception: null, dropPendingMessages: false); }
343
_target
.Complete(exception, dropPendingMessages: true);
365
public int InputCount { get { return
_target
.InputCount; } }
373
return
_target
.OfferMessage(messageHeader, messageValue, source, consumeToAccept);
395
private int InputCountForDebugger { get { return
_target
.GetDebuggingInformation().InputCount; } }
425
_targetDebuggingInformation = transformBlock.
_target
.GetDebuggingInformation();