8[DebuggerDisplay(
"{DebuggerDisplayContent,nq}")]
40 return _bufferBlock._boundingState.TaskForInputProcessing;
81 private object DebuggerDisplayContent =>
$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, Count={CountForDebugger}";
193 _boundingState.TaskForInputProcessing =
null;
289 _boundingState.TaskForInputProcessing =
null;
static string Argument_InvalidMessageHeader
static string Argument_CantConsumeFromANullSource
Task TaskForInputProcessing
TargetRegistry< T > LinkedTargets
bool IsDecliningPermanently
readonly SourceCore< T >.DebuggingInformation _sourceDebuggingInformation
DebugView(BufferBlock< T > bufferBlock)
readonly BufferBlock< T > _bufferBlock
Task TaskForOutputProcessing
ITargetBlock< T > NextMessageReservedFor
QueuedMap< ISourceBlock< T >, DataflowMessageHeader > PostponedMessages
bool _targetCompletionReserved
readonly BoundingStateWithPostponedAndTask< T > _boundingState
IDisposable LinkTo(ITargetBlock< T > target, DataflowLinkOptions linkOptions)
void CompleteTargetIfPossible()
void ConsumeMessagesLoopCore()
object DebuggerDisplayContent
void ConsumeAsyncIfNecessary(bool isReplacementReplica=false)
bool _targetDecliningPermanently
BufferBlock(DataflowBlockOptions dataflowBlockOptions)
override string ToString()
void OnItemsRemoved(int numItemsRemoved)
readonly SourceCore< T > _source
bool TryReceive(Predicate< T >? filter, [MaybeNullWhen(false)] out T item)
bool ConsumeAndStoreOneMessageIfAvailable()
void CompleteCore(Exception exception, bool storeExceptionEvenIfAlreadyCompleting, bool revertProcessingState=false)
bool TryReceiveAll([NotNullWhen(true)] out IList< T >? items)
TaskScheduler TaskScheduler
int ActualMaxMessagesPerTask
Task TaskForInputProcessing
static Exception StartTaskSafe(Task task, TaskScheduler scheduler)
static TaskContinuationOptions GetContinuationOptions(TaskContinuationOptions toInclude=TaskContinuationOptions.None)
static TaskCreationOptions GetCreationOptionsForTask(bool isReplacementReplica=false)
static string GetNameForDebugger(IDataflowBlock block, DataflowBlockOptions options=null)
static void WireCancellationToComplete(CancellationToken cancellationToken, Task completionTask, Action< object > completeAction, object completeState)
static int GetBlockId(IDataflowBlock block)
static readonly DataflowEtwProvider Log
TOutput ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock< TOutput > target, out bool messageConsumed)
DataflowBlockOptions DataflowBlockOptions
bool TryReceiveAll([NotNullWhen(true)] out IList< TOutput > items)
IDisposable LinkTo(ITargetBlock< TOutput > target, DataflowLinkOptions linkOptions)
bool ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock< TOutput > target)
void ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock< TOutput > target)
bool TryReceive(Predicate< TOutput > filter, [MaybeNullWhen(false)] out TOutput item)
void AddException(Exception exception)
DebuggingInformation GetDebuggingInformation()
void AddMessage(TOutput item)
static TaskScheduler Default
Task ContinueWith(Action< Task< TResult > > continuationAction)
static new TaskFactory< TResult > Factory
void Fault(Exception exception)
static CancellationToken None