2 writes to _target
System.Threading.Tasks.Dataflow (2)
Blocks\TransformBlock.cs (2)
122
_target
= new TargetCore<TInput>(this,
129
_target
= new TargetCore<TInput>(this,
19 references to _target
System.Threading.Tasks.Dataflow (19)
Blocks\TransformBlock.cs (19)
105
onItemsRemoved = static (owningSource, count) => ((TransformBlock<TInput, TOutput>)owningSource).
_target
.ChangeBoundingCount(-count);
109
static owningSource => ((TransformBlock<TInput, TOutput>)owningSource).
_target
.Complete(exception: null, dropPendingMessages: true),
139
_target
.Completion.ContinueWith(static (completed, state) =>
159
dataflowBlockOptions.CancellationToken, Completion, static (state, _) => ((TargetCore<TInput>)state!).Complete(exception: null, dropPendingMessages: true),
_target
);
189
if (!itemIsValid)
_target
.ChangeBoundingCount(-1);
202
if (
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1)
243
_target
.Complete(caughtException, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
251
_target
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
272
bool isBounded =
_target
.IsBounded;
288
_target
.Complete(aggregate, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: true);
298
if (!gotOutputItem && isBounded)
_target
.ChangeBoundingCount(-1);
306
if (
_target
.DataflowBlockOptions.MaxDegreeOfParallelism == 1)
325
_target
.SignalOneAsyncMessageCompleted();
329
public void Complete() {
_target
.Complete(exception: null, dropPendingMessages: false); }
336
_target
.Complete(exception, dropPendingMessages: true);
358
public int InputCount { get { return
_target
.InputCount; } }
366
return
_target
.OfferMessage(messageHeader, messageValue, source, consumeToAccept);
388
private int InputCountForDebugger { get { return
_target
.GetDebuggingInformation().InputCount; } }
418
_targetDebuggingInformation = transformBlock.
_target
.GetDebuggingInformation();