7[DebuggerDisplay(
"{DebuggerDisplayContent,nq}")]
20 if (
_target._activeConsumer ==
null ||
_target.Completion.IsCompleted)
71 return $"Block=\"{((debuggerDisplay != null) ? debuggerDisplay.Content : _owningTarget)}\"";
180 Common.StoreDataflowMessageValueIntoExceptionData(
ex, result);
void Add(TKey key, TValue value)
static string Argument_InvalidMessageHeader
static string Argument_CantConsumeFromANullSource
static int CompareExchange(ref int location1, int value, int comparand)
static int Exchange(ref int location1, int value)
static void MemoryBarrier()
TaskScheduler TaskScheduler
int ActualMaxMessagesPerTask
static bool IsCooperativeCancellation(Exception exception)
static TaskCreationOptions GetCreationOptionsForTask(bool isReplacementReplica=false)
static readonly DataflowEtwProvider Log
SpscTargetCore(ITargetBlock< TInput > owningTarget, Action< TInput > action, ExecutionDataflowBlockOptions dataflowBlockOptions)
void ScheduleConsumerIfNecessary(bool isReplica)
DataflowMessageStatus OfferMessage_Slow(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock< TInput > source, bool consumeToAccept)
void CompleteBlockOncePossible()
readonly Action< TInput > _action
TaskCompletionSource< VoidResult > CompletionSource
volatile bool _decliningPermanently
volatile bool _completionReserved
readonly ExecutionDataflowBlockOptions _dataflowBlockOptions
TaskCompletionSource< VoidResult > _completionTask
void Complete(Exception exception)
volatile Task _activeConsumer
volatile List< Exception > _exceptions
DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock< TInput > source, bool consumeToAccept)
object DebuggerDisplayContent
void StoreException(Exception exception)
bool Post(TInput messageValue)
readonly System.Threading.Tasks.SingleProducerSingleConsumerQueue< TInput > _messages
void ProcessMessagesLoopCore()
DebuggingInformation GetDebuggingInformation()
readonly ITargetBlock< TInput > _owningTarget
static CancellationToken None