2 writes to _defaultTarget
System.Threading.Tasks.Dataflow (2)
Blocks\ActionBlock.cs (2)
99
_defaultTarget
= new TargetCore<TInput>(this,
107
_defaultTarget
= new TargetCore<TInput>(this,
31 references to _defaultTarget
System.Threading.Tasks.Dataflow (31)
Blocks\ActionBlock.cs (31)
114
dataflowBlockOptions.CancellationToken, Completion, static (state, _) => ((TargetCore<TInput>)state!).Complete(exception: null, dropPendingMessages: true),
_defaultTarget
);
122
Debug.Assert((_spscTarget != null) ^ (
_defaultTarget
!= null), "One and only one of the two targets must be non-null after construction");
130
Debug.Assert(
_defaultTarget
!= null);
144
if (
_defaultTarget
.IsBounded)
_defaultTarget
.ChangeBoundingCount(-1);
154
Debug.Assert(
_defaultTarget
!= null);
173
_defaultTarget
.Complete(caughtException, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: false);
177
_defaultTarget
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
200
Debug.Assert(
_defaultTarget
!= null);
207
_defaultTarget
.Complete(completed.Exception, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, unwrapInnerExceptions: true);
214
_defaultTarget
.SignalOneAsyncMessageCompleted(boundingCountChange: -1);
220
if (
_defaultTarget
!= null)
222
_defaultTarget
.Complete(exception: null, dropPendingMessages: false);
236
if (
_defaultTarget
!= null)
238
_defaultTarget
.Complete(exception, dropPendingMessages: true);
250
get { return
_defaultTarget
!= null ?
_defaultTarget
.Completion : _spscTarget!.Completion; }
275
return
_defaultTarget
!= null ?
276
_defaultTarget
.OfferMessage(Common.SingleMessageHeader, item, null, false) == DataflowMessageStatus.Accepted :
283
return
_defaultTarget
!= null ?
284
_defaultTarget
.OfferMessage(messageHeader, messageValue, source, consumeToAccept) :
291
get { return
_defaultTarget
!= null ?
_defaultTarget
.InputCount : _spscTarget!.InputCount; }
297
get { return
_defaultTarget
!= null ?
_defaultTarget
.GetDebuggingInformation().InputCount : _spscTarget!.InputCount; }
303
return Common.GetNameForDebugger(this,
_defaultTarget
!= null ?
_defaultTarget
.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions);
308
$"{(Common.GetNameForDebugger(this,
_defaultTarget
!= null ?
_defaultTarget
.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions))}, InputCount = {InputCountForDebugger}";
329
if (_actionBlock.
_defaultTarget
!= null)
331
_defaultDebugInfo = actionBlock.
_defaultTarget
!.GetDebuggingInformation();