7[DebuggerDisplay(
"{DebuggerDisplayContent,nq}")]
22 if (
_target._boundingState ==
null)
26 return _target._boundingState.PostponedMessages;
124 return $"Block=\"{((debuggerDisplay != null) ? debuggerDisplay.Content : _owningTarget)}\"";
295 bool flag =
_boundingState !=
null && _boundingState.BoundedCapacity > 1;
499 while (messages.TryDequeue(
out result))
527 _boundingState.CurrentCount +=
count;
static string Argument_InvalidMessageHeader
static string Argument_CantConsumeFromANullSource
TaskScheduler TaskScheduler
int ActualMaxMessagesPerTask
CancellationToken CancellationToken
int ActualMaxDegreeOfParallelism
int MaxDegreeOfParallelism
static Exception StartTaskSafe(Task task, TaskScheduler scheduler)
static TaskCreationOptions GetCreationOptionsForTask(bool isReplacementReplica=false)
static void AddException([NotNull] ref List< Exception > list, Exception exception, bool unwrapInnerExceptions=false)
static readonly DataflowEtwProvider Log
bool HasRoomForMoreServiceTasks
int _numberOfOutstandingOperations
readonly Action< KeyValuePair< TInput, long > > _callAction
bool _decliningPermanently
DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock< TInput > source, bool consumeToAccept)
void ProcessMessagesLoopCore()
void Complete(Exception exception, bool dropPendingMessages, bool storeExceptionEvenIfAlreadyCompleting=false, bool unwrapInnerExceptions=false, bool revertProcessingState=false)
static readonly Common.KeepAlivePredicate< TargetCore< TInput >, KeyValuePair< TInput, long > > _keepAlivePredicate
bool TryGetNextMessageForNewAsyncOperation(out KeyValuePair< TInput, long > messageWithId)
List< Exception > _exceptions
void ProcessAsyncIfNecessary_Slow(bool repeat)
readonly IReorderingBuffer _reorderingBuffer
readonly TargetCoreOptions _targetCoreOptions
readonly TaskCompletionSource< VoidResult > _completionSource
TargetCore(ITargetBlock< TInput > owningTarget, Action< KeyValuePair< TInput, long > > callAction, IReorderingBuffer reorderingBuffer, ExecutionDataflowBlockOptions dataflowBlockOptions, TargetCoreOptions targetCoreOptions)
void CompleteBlockOncePossible()
readonly ITargetBlock< TInput > _owningTarget
void SignalOneAsyncMessageCompleted(int boundingCountChange)
PaddedInt64 _nextAvailableInputMessageId
int _numberOfOutstandingServiceTasks
readonly ExecutionDataflowBlockOptions _dataflowBlockOptions
void ChangeBoundingCount(int count)
bool HasRoomForMoreOperations
bool TryGetNextAvailableOrPostponedMessage(out KeyValuePair< TInput, long > messageWithId)
object DebuggerDisplayContent
void SignalOneAsyncMessageCompleted()
readonly BoundingStateWithPostponed< TInput > _boundingState
DebuggingInformation GetDebuggingInformation()
void CompleteBlockIfPossible()
void CompleteBlockIfPossible_Slow()
bool TryConsumePostponedMessage(bool forPostponementTransfer, out KeyValuePair< TInput, long > result)
void ProcessAsyncIfNecessary(bool repeat=false)
readonly System.Threading.Tasks.IProducerConsumerQueue< KeyValuePair< TInput, long > > _messages
static TaskScheduler Default
static new TaskFactory< TResult > Factory
static bool Read(ref bool location)
bool IsCancellationRequested
static CancellationToken None