8[DebuggerDisplay(
"{DebuggerDisplayContent,nq}")]
80 private object DebuggerDisplayContent =>
$"{Common.GetNameForDebugger(this, _dataflowBlockOptions)}, HasValue={HasValue}, Value={Value}";
175 log.DataflowBlockCompleted(
this);
235 items =
new T[1] {
item };
void Add(TKey key, TValue value)
static string Argument_InvalidMessageHeader
static string InvalidOperation_MessageNotReservedByTarget
static string Argument_CantConsumeFromANullSource
static int CompareExchange(ref int location1, int value, int comparand)
TaskScheduler TaskScheduler
CancellationToken CancellationToken
static readonly TaskCompletionSource< VoidResult > CompletedVoidResultTaskCompletionSource
static Exception StartTaskSafe(Task task, TaskScheduler scheduler)
static void PropagateCompletionOnceCompleted(Task sourceCompletionTask, IDataflowBlock target)
static TaskCreationOptions GetCreationOptionsForTask(bool isReplacementReplica=false)
static string GetNameForDebugger(IDataflowBlock block, DataflowBlockOptions options=null)
static void AddException([NotNull] ref List< Exception > list, Exception exception, bool unwrapInnerExceptions=false)
static readonly DataflowMessageHeader SingleMessageHeader
static void WireCancellationToComplete(CancellationToken cancellationToken, Task completionTask, Action< object > completeAction, object completeState)
static int GetBlockId(IDataflowBlock block)
static readonly DataflowEtwProvider Log
static readonly IDisposable Nop
TargetRegistry< T > LinkedTargets
readonly WriteOnceBlock< T > _writeOnceBlock
DebugView(WriteOnceBlock< T > writeOnceBlock)
void CompleteBlockAsync(IList< Exception > exceptions)
void CompleteBlock(IList< Exception > exceptions)
WriteOnceBlock(Func< T, T >? cloningFunction)
override string ToString()
bool _decliningPermanently
TaskCompletionSource< VoidResult > _lazyCompletionTaskSource
TaskCompletionSource< VoidResult > CompletionTaskSource
object DebuggerDisplayContent
void OfferToTargetsAndCompleteBlock()
readonly Func< T, T > _cloningFunction
IDisposable LinkTo(ITargetBlock< T > target, DataflowLinkOptions linkOptions)
void CompleteCore(Exception exception, bool storeExceptionEvenIfAlreadyCompleting)
List< Exception > OfferToTargets()
WriteOnceBlock(Func< T, T >? cloningFunction, DataflowBlockOptions dataflowBlockOptions)
readonly DataflowBlockOptions _dataflowBlockOptions
bool TryReceive(Predicate< T >? filter, [MaybeNullWhen(false)] out T item)
readonly TargetRegistry< T > _targetRegistry
DataflowMessageHeader _header
static TaskScheduler Default
static new TaskFactory< TResult > Factory
void Fault(Exception exception)
bool IsCancellationRequested
static CancellationToken None