2 writes to _target
System.Threading.Tasks.Dataflow (2)
Blocks\TransformBlock.cs (2)
123
_target
= new TargetCore<TInput>(this,
130
_target
= new TargetCore<TInput>(this,
19 references to _target
System.Threading.Tasks.Dataflow (19)
Blocks\TransformBlock.cs (19)
106
onItemsRemoved = static (owningSource, count) => ((TransformBlock<TInput, TOutput>)owningSource).
_target
.ChangeBoundingCount(-count);
110
static owningSource => ((TransformBlock<TInput, TOutput>)owningSource).
_target
.Complete(exception: null, dropPendingMessages: true),
140
_target
.Completion.ContinueWith(static (completed, state) =>
160
dataflowBlockOptions.CancellationToken, Completion, static (state, _) => ((TargetCore<TInput>)state!).Complete(exception: null, dropPendingMessages: true),
_target
);
190
if (!itemIsValid)
_target
.ChangeBoundingCount(-1);
203
if (
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1)
244
_target
.Complete(caughtException, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
252
_target
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
273
bool isBounded =
_target
.IsBounded;
289
_target
.Complete(aggregate, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: true);
299
if (!gotOutputItem && isBounded)
_target
.ChangeBoundingCount(-1);
307
if (
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1)
326
_target
.SignalOneAsyncMessageCompleted();
330
public void Complete() {
_target
.Complete(exception: null, dropPendingMessages: false); }
337
_target
.Complete(exception, dropPendingMessages: true);
359
public int InputCount { get { return
_target
.InputCount; } }
367
return
_target
.OfferMessage(messageHeader, messageValue, source, consumeToAccept);
389
private int InputCountForDebugger { get { return
_target
.GetDebuggingInformation().InputCount; } }
419
_targetDebuggingInformation = transformBlock.
_target
.GetDebuggingInformation();