1 write to _source
System.Threading.Tasks.Dataflow (1)
Blocks\BroadcastBlock.cs (1)
82
_source
= new BroadcastingSourceCore<T>(this, cloningFunction, dataflowBlockOptions, onItemsRemoved);
23 references to _source
System.Threading.Tasks.Dataflow (23)
Blocks\BroadcastBlock.cs (23)
47
private object IncomingLock { get { return
_source
; } }
88
_source
.Completion.ContinueWith(static (completed, state) =>
97
dataflowBlockOptions.CancellationToken,
_source
.Completion, static (state, _) => ((BroadcastBlock<T>)state!).Complete(), this);
130
_source
.AddException(exception);
148
public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return
_source
.LinkTo(target, linkOptions); }
151
public bool TryReceive(Predicate<T>? filter, [MaybeNullWhen(false)] out T item) { return
_source
.TryReceive(filter, out item); }
154
bool IReceivableSourceBlock<T>.TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return
_source
.TryReceiveAll(out items); }
157
public Task Completion { get { return
_source
.Completion; } }
196
_source
.AddMessage(messageValue!);
266
Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing,
_source
.DataflowBlockOptions.TaskScheduler);
287
int maxMessagesPerTask =
_source
.DataflowBlockOptions.ActualMaxMessagesPerTask;
353
_source
.AddMessage(consumedValue!);
400
thisBroadcastBlock.
_source
.AddExceptions(exceptions);
403
thisBroadcastBlock.
_source
.Complete();
409
_source
.Complete();
417
return
_source
.ConsumeMessage(messageHeader, target, out messageConsumed);
423
return
_source
.ReserveMessage(messageHeader, target);
429
_source
.ReleaseReservation(messageHeader, target);
433
private bool HasValueForDebugger { get { return
_source
.GetDebuggingInformation().HasValue; } }
435
private T ValueForDebugger { get { return
_source
.GetDebuggingInformation().Value; } }
438
public override string ToString() { return Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions); }
441
private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions)}, HasValue = {HasValueForDebugger}, Value = {ValueForDebugger}";
460
_sourceDebuggingInformation = broadcastBlock.
_source
.GetDebuggingInformation();