1 write to _source
System.Threading.Tasks.Dataflow (1)
Blocks\BroadcastBlock.cs (1)
85
_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
; } }
91
_source
.Completion.ContinueWith(static (completed, state) =>
100
dataflowBlockOptions.CancellationToken,
_source
.Completion, static (state, _) => ((BroadcastBlock<T>)state!).Complete(), this);
136
_source
.AddException(exception);
154
public IDisposable LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { return
_source
.LinkTo(target, linkOptions); }
157
public bool TryReceive(Predicate<T>? filter, [MaybeNullWhen(false)] out T item) { return
_source
.TryReceive(filter, out item); }
160
bool IReceivableSourceBlock<T>.TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return
_source
.TryReceiveAll(out items); }
163
public Task Completion { get { return
_source
.Completion; } }
202
_source
.AddMessage(messageValue!);
272
Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing,
_source
.DataflowBlockOptions.TaskScheduler);
293
int maxMessagesPerTask =
_source
.DataflowBlockOptions.ActualMaxMessagesPerTask;
359
_source
.AddMessage(consumedValue!);
406
thisBroadcastBlock.
_source
.AddExceptions(exceptions);
409
thisBroadcastBlock.
_source
.Complete();
415
_source
.Complete();
423
return
_source
.ConsumeMessage(messageHeader, target, out messageConsumed);
429
return
_source
.ReserveMessage(messageHeader, target);
435
_source
.ReleaseReservation(messageHeader, target);
439
private bool HasValueForDebugger { get { return
_source
.GetDebuggingInformation().HasValue; } }
441
private T ValueForDebugger { get { return
_source
.GetDebuggingInformation().Value; } }
444
public override string ToString() { return Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions); }
447
private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this,
_source
.DataflowBlockOptions)}, HasValue = {HasValueForDebugger}, Value = {ValueForDebugger}";
466
_sourceDebuggingInformation = broadcastBlock.
_source
.GetDebuggingInformation();