1 write to _source
System.Threading.Tasks.Dataflow (1)
Blocks\BufferBlock.cs (1)
62
_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
; } }
70
_source
.Completion.ContinueWith(static (completed, state) =>
79
dataflowBlockOptions.CancellationToken,
_source
.Completion, static (owningSource, _) => ((BufferBlock<T>)owningSource!).Complete(), this);
124
_source
.AddMessage(messageValue!);
165
_source
.AddException(exception);
183
public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return
_source
.LinkTo(target, linkOptions); }
186
public bool TryReceive(Predicate<T>? filter, [MaybeNullWhen(false)] out T item) { return
_source
.TryReceive(filter, out item); }
189
public bool TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return
_source
.TryReceiveAll(out items); }
192
public int Count { get { return
_source
.OutputCount; } }
195
public Task Completion { get { return
_source
.Completion; } }
200
return
_source
.ConsumeMessage(messageHeader, target, out messageConsumed);
206
return
_source
.ReserveMessage(messageHeader, target);
212
_source
.ReleaseReservation(messageHeader, target);
267
Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing,
_source
.DataflowBlockOptions.TaskScheduler);
289
int maxMessagesPerTask =
_source
.DataflowBlockOptions.ActualMaxMessagesPerTask;
356
_source
.AddMessage(consumedValue!);
403
thisBufferBlock.
_source
.AddExceptions(exceptions);
406
thisBufferBlock.
_source
.Complete();
412
_source
.Complete();
418
private int CountForDebugger { get { return
_source
.GetDebuggingInformation().OutputCount; } }
421
public override string ToString() { return Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions); }
425
$"{Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions)}, Count = {CountForDebugger}";
444
_sourceDebuggingInformation = bufferBlock.
_source
.GetDebuggingInformation();