1 write to _source
System.Threading.Tasks.Dataflow (1)
Blocks\BufferBlock.cs (1)
65
_source
= new SourceCore<T>(this, dataflowBlockOptions,
23 references to _source
System.Threading.Tasks.Dataflow (23)
Blocks\BufferBlock.cs (23)
36
private object IncomingLock { get { return
_source
; } }
73
_source
.Completion.ContinueWith(static (completed, state) =>
82
dataflowBlockOptions.CancellationToken,
_source
.Completion, static (owningSource, _) => ((BufferBlock<T>)owningSource!).Complete(), this);
127
_source
.AddMessage(messageValue!);
171
_source
.AddException(exception);
189
public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return
_source
.LinkTo(target, linkOptions); }
192
public bool TryReceive(Predicate<T>? filter, [MaybeNullWhen(false)] out T item) { return
_source
.TryReceive(filter, out item); }
195
public bool TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return
_source
.TryReceiveAll(out items); }
198
public int Count { get { return
_source
.OutputCount; } }
201
public Task Completion { get { return
_source
.Completion; } }
206
return
_source
.ConsumeMessage(messageHeader, target, out messageConsumed);
212
return
_source
.ReserveMessage(messageHeader, target);
218
_source
.ReleaseReservation(messageHeader, target);
273
Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing,
_source
.DataflowBlockOptions.TaskScheduler);
295
int maxMessagesPerTask =
_source
.DataflowBlockOptions.ActualMaxMessagesPerTask;
362
_source
.AddMessage(consumedValue!);
409
thisBufferBlock.
_source
.AddExceptions(exceptions);
412
thisBufferBlock.
_source
.Complete();
418
_source
.Complete();
424
private int CountForDebugger { get { return
_source
.GetDebuggingInformation().OutputCount; } }
427
public override string ToString() { return Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions); }
431
$"{Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions)}, Count = {CountForDebugger}";
450
_sourceDebuggingInformation = bufferBlock.
_source
.GetDebuggingInformation();