1 write to _source
System.Threading.Tasks.Dataflow (1)
20 references to _source
System.Threading.Tasks.Dataflow (20)
Blocks\BatchBlock.cs (20)
71_target = new BatchBlockTargetCore(this, batchSize, _source.AddMessage, dataflowBlockOptions);
74_target.Completion.ContinueWith(delegate { _source.Complete(); },
81_source.Completion.ContinueWith(static (completed, state) =>
90dataflowBlockOptions.CancellationToken, _source.Completion, static (state, _) => ((BatchBlockTargetCore)state!).Complete(exception: null, dropPendingMessages: true, releaseReservedMessages: false), _target);
126return _source.LinkTo(target, linkOptions);
132return _source.TryReceive(filter, out item);
136public bool TryReceiveAll([NotNullWhen(true)] out IList<T[]>? items) { return _source.TryReceiveAll(out items); }
139public int OutputCount { get { return _source.OutputCount; } }
142public Task Completion { get { return _source.Completion; } }
160return _source.ConsumeMessage(messageHeader, target, out messageConsumed);
166return _source.ReserveMessage(messageHeader, target);
172_source.ReleaseReservation(messageHeader, target);
176private int OutputCountForDebugger { get { return _source.GetDebuggingInformation().OutputCount; } }
179public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); }
183$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize = {BatchSize}, OutputCount = {OutputCountForDebugger}";
205_sourceDebuggingInformation = batchBlock._source.GetDebuggingInformation();
440_owningBatch._source.AddException(exception);
452catch (Exception e) { _owningBatch._source.AddException(e); }
483return _dataflowBlockOptions.CancellationToken.IsCancellationRequested || _owningBatch._source.HasExceptions;
543targetCore._owningBatch._source.AddExceptions(exceptions);