2 writes to _defaultTarget
System.Threading.Tasks.Dataflow (2)
Blocks\ActionBlock.cs (2)
105
_defaultTarget
= new TargetCore<TInput>(this,
113
_defaultTarget
= new TargetCore<TInput>(this,
31 references to _defaultTarget
System.Threading.Tasks.Dataflow (31)
Blocks\ActionBlock.cs (31)
120
dataflowBlockOptions.CancellationToken, Completion, static (state, _) => ((TargetCore<TInput>)state!).Complete(exception: null, dropPendingMessages: true),
_defaultTarget
);
128
Debug.Assert((_spscTarget != null) ^ (
_defaultTarget
!= null), "One and only one of the two targets must be non-null after construction");
136
Debug.Assert(
_defaultTarget
!= null);
150
if (
_defaultTarget
.IsBounded)
_defaultTarget
.ChangeBoundingCount(-1);
160
Debug.Assert(
_defaultTarget
!= null);
179
_defaultTarget
.Complete(caughtException, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
183
_defaultTarget
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
206
Debug.Assert(
_defaultTarget
!= null);
213
_defaultTarget
.Complete(completed.Exception, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: true);
220
_defaultTarget
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
226
if (
_defaultTarget
!= null)
228
_defaultTarget
.Complete(exception: null, dropPendingMessages: false);
245
if (
_defaultTarget
!= null)
247
_defaultTarget
.Complete(exception, dropPendingMessages: true);
259
get { return
_defaultTarget
!= null ?
_defaultTarget
.Completion : _spscTarget!.Completion; }
284
return
_defaultTarget
!= null ?
285
_defaultTarget
.OfferMessage(Common.SingleMessageHeader, item, null, false) == DataflowMessageStatus.Accepted :
292
return
_defaultTarget
!= null ?
293
_defaultTarget
.OfferMessage(messageHeader, messageValue, source, consumeToAccept) :
300
get { return
_defaultTarget
!= null ?
_defaultTarget
.InputCount : _spscTarget!.InputCount; }
306
get { return
_defaultTarget
!= null ?
_defaultTarget
.GetDebuggingInformation().InputCount : _spscTarget!.InputCount; }
312
return Common.GetNameForDebugger(this,
_defaultTarget
!= null ?
_defaultTarget
.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions);
317
$"{(Common.GetNameForDebugger(this,
_defaultTarget
!= null ?
_defaultTarget
.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions))}, InputCount = {InputCountForDebugger}";
338
if (_actionBlock.
_defaultTarget
!= null)
340
_defaultDebugInfo = actionBlock.
_defaultTarget
!.GetDebuggingInformation();