311 references to Common
System.Threading.Tasks.Dataflow (311)
Base\DataflowBlock.cs (58)
194return $"{Common.GetNameForDebugger(this)} Source = \"{(displaySource != null ? displaySource.Content : _source)}\", Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\""; 241return target.OfferMessage(Common.SingleMessageHeader, item, source: null, consumeToAccept: false) == DataflowMessageStatus.Accepted; 292return Common.CreateTaskFromCancellation<bool>(cancellationToken); 300switch (target.OfferMessage(Common.SingleMessageHeader, item, source: null, consumeToAccept: false)) 304return Common.CompletedTaskWithTrueResult; 308return Common.CompletedTaskWithFalseResult; 330Common.StoreDataflowMessageValueIntoExceptionData(exc, item); 331return Common.CreateTaskFromException<bool>(exc); 513CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 527CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 540SendAsyncSource<TOutput>? source = Common.UnwrapWeakReference<SendAsyncSource<TOutput>>(state!); 570Common.SingleMessageHeader, _messageValue, this, consumeToAccept: consumeToAccept)) 612Common.StoreDataflowMessageValueIntoExceptionData(exc, _messageValue); 634bool validMessage = (messageHeader.Id == Common.SINGLE_MESSAGE_ID); 673bool reservable = (messageHeader.Id == Common.SINGLE_MESSAGE_ID); 687if (messageHeader.Id != Common.SINGLE_MESSAGE_ID) 724return $"{Common.GetNameForDebugger(this)} Message = {_messageValue}, Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\""; 788return ReceiveAsync(source, Common.InfiniteTimeSpan, CancellationToken.None); 805return ReceiveAsync(source, Common.InfiniteTimeSpan, cancellationToken); 848if (!Common.IsValidTimeout(timeout)) throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_NeedNonNegOrNegative1); 866return Receive(source, Common.InfiniteTimeSpan, CancellationToken.None); 884return Receive(source, Common.InfiniteTimeSpan, cancellationToken); 930if (!Common.IsValidTimeout(timeout)) throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_NeedNonNegOrNegative1); 979return Common.CreateTaskFromCancellation<TOutput>(cancellationToken); 998return Common.CreateTaskFromException<TOutput>(exc); 1006return Common.CreateTaskFromException<TOutput>(ReceiveTarget<TOutput>.CreateExceptionForTimeout()); 1180Common.StoreDataflowMessageValueIntoExceptionData(exc, messageValue); 1227Common.ContractAssertMonitorStatus(IncomingLock, held: false); 1337return Common.InitializeStackTrace(new InvalidOperationException(SR.InvalidOperation_DataNotAvailableForReceive)); 1344return Common.InitializeStackTrace(new TimeoutException()); 1360private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted = {base.Task.IsCompleted}"; 1406cancellationToken.IsCancellationRequested ? Common.CreateTaskFromCancellation<bool>(cancellationToken) : 1485private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted = {base.Task.IsCompleted}"; 1606return $"{Common.GetNameForDebugger(this)} Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\", Source = \"{(displaySource != null ? displaySource.Content : _source)}\""; 1833return Common.CreateTaskFromCancellation<int>(dataflowBlockOptions.CancellationToken); 1850return Common.CreateTaskFromException<int>(exc); 1889CancellationToken.None, Common.GetCreationOptionsForTask(), scheduler); 1953Common.AddException(ref exceptions, task.Exception!, unwrapInnerExceptions: true); 1986}, CancellationToken.None, Common.GetContinuationOptions(), TaskScheduler.Default); 2007return Common.CreateTaskFromCancellation<int>(cts.Token); 2021return Common.CreateTaskFromException<int>(exc); 2055}, CancellationToken.None, Common.GetContinuationOptions(), scheduler); 2090Common.WireCancellationToComplete(cancellationToken, base.Task, 2138private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this)} IsCompleted = {base.Task.IsCompleted}"; 2209Task? sourceCompletionTask = Common.GetPotentiallyNotSupportedCompletionTask(_source); 2222Common.ContractAssertMonitorStatus(_SubscriptionLock, held: false); 2224Task? sourceCompletionTask = Common.GetPotentiallyNotSupportedCompletionTask(_source); 2272Common.ContractAssertMonitorStatus(_SubscriptionLock, held: false); 2302Common.ContractAssertMonitorStatus(_SubscriptionLock, held: true); 2385Common.GetContinuationOptions(TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously), 2390Task? sourceCompletionTask = Common.GetPotentiallyNotSupportedCompletionTask(Observable._source); 2398Common.GetContinuationOptions(TaskContinuationOptions.NotOnFaulted | TaskContinuationOptions.ExecuteSynchronously), 2400}, this, Canceler.Token, Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously), TaskScheduler.Default); 2407Common.ContractAssertMonitorStatus(Observable._SubscriptionLock, held: false); 2453return Common.CreateTaskFromException<VoidResult>(exc); 2458return Common.CompletedTaskWithTrueResult; 2469Common.ContractAssertMonitorStatus(Observable._SubscriptionLock, held: false); 2506Common.ThrowAsync(exc);
Blocks\ActionBlock.cs (9)
113Common.WireCancellationToComplete( 138if (!Common.IsCooperativeCancellation(exc)) throw; 170if (caughtException != null && !Common.IsCooperativeCancellation(caughtException)) 172Common.StoreDataflowMessageValueIntoExceptionData(caughtException, messageWithId.Key); 190}, this, CancellationToken.None, Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously), TaskScheduler.Default); 276_defaultTarget.OfferMessage(Common.SingleMessageHeader, item, null, false) == DataflowMessageStatus.Accepted : 303return Common.GetNameForDebugger(this, _defaultTarget != null ? _defaultTarget.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions); 308$"{(Common.GetNameForDebugger(this, _defaultTarget != null ? _defaultTarget.DataflowBlockOptions : _spscTarget!.DataflowBlockOptions))}, InputCount = {InputCountForDebugger}"; 372public int Id { get { return Common.GetBlockId(_actionBlock); } }
Blocks\BatchBlock.cs (23)
75CancellationToken.None, Common.GetContinuationOptions(), TaskScheduler.Default); 86}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 89Common.WireCancellationToComplete( 176public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 180$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize = {BatchSize}, OutputCount = {OutputCountForDebugger}"; 226public int Id { get { return Common.GetBlockId(_batchBlock); } } 489Common.ContractAssertMonitorStatus(IncomingLock, held: true); 500Common.ContractAssertMonitorStatus(IncomingLock, held: true); 531Common.ReleaseAllPostponedMessages(targetCore._owningBatch, 547}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 560Common.ContractAssertMonitorStatus(IncomingLock, held: true); 620Common.ContractAssertMonitorStatus(IncomingLock, held: true); 639Common.GetCreationOptionsForTask(isReplacementReplica)); 650Exception? exception = Common.StartTaskSafe(_nonGreedyState.TaskForInputProcessing, _dataflowBlockOptions.TaskScheduler); 655exception, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 664Common.ContractAssertMonitorStatus(IncomingLock, held: false); 729Common.ContractAssertMonitorStatus(IncomingLock, held: true); 754Common.ContractAssertMonitorStatus(IncomingLock, held: false); 872Common.ContractAssertMonitorStatus(IncomingLock, held: false); 981Common.ContractAssertMonitorStatus(IncomingLock, held: false); 1032Common.ContractAssertMonitorStatus(IncomingLock, held: false); 1082Common.ContractAssertMonitorStatus(IncomingLock, held: false); 1115Common.ContractAssertMonitorStatus(IncomingLock, held: false);
Blocks\BatchedJoinBlock.cs (12)
104}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 107Common.WireCancellationToComplete( 206public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 210$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize = {BatchSize}, OutputCount = {OutputCountForDebugger}"; 254public int Id { get { return Common.GetBlockId(_batchedJoinBlock); } } 353}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 356Common.WireCancellationToComplete( 461public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 465$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, BatchSize = {BatchSize}, OutputCount = {OutputCountForDebugger}"; 511public int Id { get { return Common.GetBlockId(_batchedJoinBlock); } } 556Common.ContractAssertMonitorStatus(_sharedResources._incomingLock, held: true); 628$"{Common.GetNameForDebugger(this)} InputCount = {_messages.Count}";
Blocks\BroadcastBlock.cs (33)
93}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 96Common.WireCancellationToComplete( 219Common.ContractAssertMonitorStatus(IncomingLock, held: false); 243Common.ContractAssertMonitorStatus(IncomingLock, held: true); 255Common.GetCreationOptionsForTask(isReplacementReplica)); 266Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing, _source.DataflowBlockOptions.TaskScheduler); 271exception, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 283Common.ContractAssertMonitorStatus(IncomingLock, held: false); 329Common.ContractAssertMonitorStatus(IncomingLock, held: false); 371Common.ContractAssertMonitorStatus(IncomingLock, held: true); 391Common.ReleaseAllPostponedMessages(thisBroadcastBlock, 404}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 438public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 441private object DebuggerDisplayContent => $"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, HasValue = {HasValueForDebugger}, Value = {ValueForDebugger}"; 480public int Id { get { return Common.GetBlockId(_broadcastBlock); } } 650}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 669Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 670Common.ContractAssertMonitorStatus(ValueLock, held: false); 711Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 712Common.ContractAssertMonitorStatus(ValueLock, held: false); 784Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 785Common.ContractAssertMonitorStatus(ValueLock, held: false); 820Common.ContractAssertMonitorStatus(ValueLock, held: true); 832Common.GetCreationOptionsForTask(isReplacementReplica)); 842Exception? exception = Common.StartTaskSafe(_taskForOutputProcessing, _dataflowBlockOptions.TaskScheduler); 864}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 915Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 916Common.ContractAssertMonitorStatus(ValueLock, held: true); 947this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 1016if (linkOptions.PropagateCompletion) Common.PropagateCompletionOnceCompleted(_completionTask.Task, target); 1027return Common.CreateUnlinker(OutgoingLock, _targetRegistry, target); 1154Common.AddException(ref _exceptions, exception); 1168Common.AddException(ref _exceptions, exception);
Blocks\BufferBlock.cs (15)
75}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 78Common.WireCancellationToComplete( 220Common.ContractAssertMonitorStatus(IncomingLock, held: false); 244Common.ContractAssertMonitorStatus(IncomingLock, held: true); 256Common.GetCreationOptionsForTask(isReplacementReplica)); 267Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing, _source.DataflowBlockOptions.TaskScheduler); 272exception, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 285Common.ContractAssertMonitorStatus(IncomingLock, held: false); 331Common.ContractAssertMonitorStatus(IncomingLock, held: false); 374Common.ContractAssertMonitorStatus(IncomingLock, held: true); 394Common.ReleaseAllPostponedMessages(thisBufferBlock, 407}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 421public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 425$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, Count = {CountForDebugger}"; 468public int Id { get { return Common.GetBlockId(_bufferBlock); } }
Blocks\JoinBlock.cs (41)
86CancellationToken.None, Common.GetContinuationOptions(), TaskScheduler.Default); 97}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 100Common.WireCancellationToComplete( 184public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 188$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, OutputCount = {OutputCountForDebugger}"; 227public int Id { get { return Common.GetBlockId(_joinBlock); } } 305CancellationToken.None, Common.GetContinuationOptions(), TaskScheduler.Default); 316}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 319Common.WireCancellationToComplete( 408public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 412$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)} OutputCount = {OutputCountForDebugger}"; 451public int Id { get { return Common.GetBlockId(_joinBlock); } } 515Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: true); 536Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: true); 546Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: true); 564Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: true); 574Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: true); 585Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: true); 600Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: false); 640Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: false); 682Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: false); 728Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: true); 752Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: false); 767Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: false); 776Common.ContractAssertMonitorStatus(_sharedResources.IncomingLock, held: false); 794Common.ReleaseAllPostponedMessages(this, _nonGreedy.PostponedMessages, ref exceptions); 946return $"{Common.GetNameForDebugger(this)} InputCount = {InputCountForDebugger}, Join = \"{(displayJoin != null ? displayJoin.Content : _sharedResources._ownerJoin)}\""; 1087Common.ContractAssertMonitorStatus(IncomingLock, held: true); 1101Common.ContractAssertMonitorStatus(IncomingLock, held: true); 1156Common.ContractAssertMonitorStatus(IncomingLock, held: false); 1205Common.ContractAssertMonitorStatus(IncomingLock, held: false); 1223Common.ContractAssertMonitorStatus(IncomingLock, held: true); 1236Common.ContractAssertMonitorStatus(IncomingLock, held: true); 1248Common.ContractAssertMonitorStatus(IncomingLock, held: true); 1263Common.ContractAssertMonitorStatus(IncomingLock, held: true); 1268Common.GetCreationOptionsForTask(isReplacementReplica)); 1279Exception? exception = Common.StartTaskSafe(_taskForInputProcessing, _dataflowBlockOptions.TaskScheduler); 1297Common.ContractAssertMonitorStatus(IncomingLock, held: true); 1335}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 1344Common.ContractAssertMonitorStatus(IncomingLock, held: false); 1410Common.ContractAssertMonitorStatus(IncomingLock, held: false);
Blocks\TransformBlock.cs (11)
145}, _source, CancellationToken.None, Common.GetContinuationOptions(), TaskScheduler.Default); 156}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 159Common.WireCancellationToComplete( 184if (!Common.IsCooperativeCancellation(exc)) throw; 241if (caughtException != null && !Common.IsCooperativeCancellation(caughtException)) 243Common.StoreDataflowMessageValueIntoExceptionData(caughtException, messageWithId.Key); 262Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously), TaskScheduler.Default); 288Common.StoreDataflowMessageValueIntoExceptionData(aggregate, messageWithId.Key, targetInnerExceptions: true); 394public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 398$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, InputCount = {InputCountForDebugger}, OutputCount = {OutputCountForDebugger}"; 442public int Id { get { return Common.GetBlockId(_transformBlock); } }
Blocks\TransformManyBlock.cs (14)
144}, source, CancellationToken.None, Common.GetContinuationOptions(), TaskScheduler.Default); 155}, this, CancellationToken.None, Common.GetContinuationOptions() | TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); 158Common.WireCancellationToComplete( 180catch (Exception exc) when (Common.IsCooperativeCancellation(exc)) 211if (caughtException != null && !Common.IsCooperativeCancellation(caughtException)) 213Common.StoreDataflowMessageValueIntoExceptionData(caughtException, messageWithId.Key); 246Common.GetContinuationOptions(TaskContinuationOptions.ExecuteSynchronously), 272if (!Common.IsCooperativeCancellation(exc)) 277Common.StoreDataflowMessageValueIntoExceptionData(exc, messageWithId.Key); 287Common.StoreDataflowMessageValueIntoExceptionData(aggregate, messageWithId.Key, targetInnerExceptions: true); 351Debug.Assert(id != Common.INVALID_REORDERING_ID, "This ID should never have been handed out."); 603public override string ToString() { return Common.GetNameForDebugger(this, _source.DataflowBlockOptions); } 607$"{Common.GetNameForDebugger(this, _source.DataflowBlockOptions)}, InputCount = {InputCountForDebugger}, OutputCount = {OutputCountForDebugger}"; 651public int Id { get { return Common.GetBlockId(_transformManyBlock); } }
Blocks\TransformManyBlock.IAsyncEnumerable.cs (3)
66if (!Common.IsCooperativeCancellation(exc)) 71Common.StoreDataflowMessageValueIntoExceptionData(exc, messageWithId.Key); 120Debug.Assert(id != Common.INVALID_REORDERING_ID, "This ID should never have been handed out.");
Blocks\WriteOnceBlock.cs (15)
94Common.WireCancellationToComplete( 113Common.ContractAssertMonitorStatus(ValueLock, held: false); 121Common.GetCreationOptionsForTask()); 131Exception? exception = Common.StartTaskSafe(taskForOutputProcessing, _dataflowBlockOptions.TaskScheduler); 142Tuple.Create(this, exceptions), CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 190if (Interlocked.CompareExchange(ref _lazyCompletionTaskSource, Common.CompletedVoidResultTaskCompletionSource, null) != null) 313return Common.CreateUnlinker(ValueLock, _targetRegistry, target); 326if (linkOptions.PropagateCompletion) Common.PropagateCompletionOnceCompleted(Completion, target); 357_header = Common.SingleMessageHeader; 443Common.ContractAssertMonitorStatus(ValueLock, held: false); 470Common.StoreDataflowMessageValueIntoExceptionData(exc, _value!); 471Common.AddException(ref exceptions, exc); 503public override string ToString() { return Common.GetNameForDebugger(this, _dataflowBlockOptions); } 507$"{Common.GetNameForDebugger(this, _dataflowBlockOptions)}, HasValue = {HasValue}, Value = {Value}"; 529public int Id { get { return Common.GetBlockId(_writeOnceBlock); } }
Internal\Common.cs (8)
106Task? t = Common.GetPotentiallyNotSupportedCompletionTask(block); 205reg, cancellationToken, Common.GetContinuationOptions(), TaskScheduler.Default); 245StoreStringIntoExceptionData(exc, Common.EXCEPTIONDATAKEY_DATAFLOWMESSAGEVALUE, strValue); 256StoreStringIntoExceptionData(innerException, Common.EXCEPTIONDATAKEY_DATAFLOWMESSAGEVALUE, strValue); 262StoreStringIntoExceptionData(exc.InnerException, Common.EXCEPTIONDATAKEY_DATAFLOWMESSAGEVALUE, strValue); 527Common.AddException(ref exceptions, exc); 573sourceCompletionTask.ContinueWith(static (task, state) => Common.PropagateCompletion(task, (IDataflowBlock)state!, AsyncExceptionHandler), 574target, CancellationToken.None, Common.GetContinuationOptions(), TaskScheduler.Default);
Internal\DataflowEtwProvider.cs (9)
72Common.GetNameForDebugger(block, dataflowBlockOptions), 73Common.GetBlockId(block)); 100TaskLaunchedForMessageHandling(Common.GetBlockId(block), reason, availableMessages, task.Id); 133Task? completionTask = Common.GetPotentiallyNotSupportedCompletionTask(block); 147DataflowBlockCompleted(Common.GetBlockId(block), reason, exceptionData); 185DataflowBlockLinking(Common.GetBlockId(source), Common.GetBlockId(target)); 208DataflowBlockUnlinking(Common.GetBlockId(source), Common.GetBlockId(target));
Internal\ReorderingBuffer.cs (7)
71Debug.Assert(id != Common.INVALID_REORDERING_ID, "This ID should never have been handed out."); 72Common.ContractAssertMonitorStatus(ValueLock, held: false); 97Debug.Assert(id != Common.INVALID_REORDERING_ID, "This ID should never have been handed out."); 98Common.ContractAssertMonitorStatus(ValueLock, held: false); 123Debug.Assert(id != Common.INVALID_REORDERING_ID, "This ID should never have been handed out."); 124Common.ContractAssertMonitorStatus(ValueLock, held: false); 157Common.ContractAssertMonitorStatus(ValueLock, held: true);
Internal\SourceCore.cs (22)
134if (linkOptions.PropagateCompletion) Common.PropagateCompletion(_completionTask.Task, target, exceptionHandler: null); 146return Common.CreateUnlinker(OutgoingLock, _targetRegistry, target); 152if (linkOptions.PropagateCompletion) Common.PropagateCompletionOnceCompleted(_completionTask.Task, target); 460Common.AddException(ref _exceptions, exception); 474Common.AddException(ref _exceptions, exception); 487Common.AddException(ref _exceptions, aggregateException, unwrapInnerExceptions: true); 523}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 537Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 538Common.ContractAssertMonitorStatus(ValueLock, held: false); 668Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 669Common.ContractAssertMonitorStatus(ValueLock, held: false); 717Common.ContractAssertMonitorStatus(ValueLock, held: true); 734Common.ContractAssertMonitorStatus(ValueLock, held: true); 744Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 754Common.GetCreationOptionsForTask(isReplacementReplica)); 764Exception? exception = Common.StartTaskSafe(_taskForOutputProcessing, _dataflowBlockOptions.TaskScheduler); 786}, this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 886Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 887Common.ContractAssertMonitorStatus(ValueLock, held: true); 909Common.ContractAssertMonitorStatus(OutgoingLock, held: true); 910Common.ContractAssertMonitorStatus(ValueLock, held: true); 920this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default);
Internal\SpscTargetCore.cs (3)
168this, CancellationToken.None, Common.GetCreationOptionsForTask(isReplica)); 223if (!Common.IsCooperativeCancellation(exc)) 226Common.StoreDataflowMessageValueIntoExceptionData<TInput>(exc, nextMessage!, false);
Internal\TargetCore.cs (25)
51private static readonly Common.KeepAlivePredicate<TargetCore<TInput>, KeyValuePair<TInput, long>> _keepAlivePredicate = 155Common.AddException(ref _exceptions, exception, unwrapInnerExceptions); 218Debug.Assert(messageId != Common.INVALID_REORDERING_ID, "The assigned message ID is invalid."); 298Common.ContractAssertMonitorStatus(IncomingLock, held: true); 314Common.ContractAssertMonitorStatus(IncomingLock, held: true); 340Common.ContractAssertMonitorStatus(IncomingLock, held: true); 355Common.ContractAssertMonitorStatus(IncomingLock, held: true); 373Common.GetCreationOptionsForTask(repeat)); 384Exception? exception = Common.StartTaskSafe(taskForInputProcessing, _dataflowBlockOptions.TaskScheduler); 390exception, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 398Common.ContractAssertMonitorStatus(IncomingLock, held: false); 450if (numberOfMessagesProcessedSinceTheLastKeepAlive > Common.KEEP_ALIVE_NUMBER_OF_MESSAGES_THRESHOLD) break; 463if (!Common.TryKeepAliveUntil(_keepAlivePredicate, this, out messageWithId)) 467_keepAliveBanCounter = Common.KEEP_ALIVE_BAN_COUNT; 484Common.StoreDataflowMessageValueIntoExceptionData(exc, messageWithId.Key); 524Common.ContractAssertMonitorStatus(IncomingLock, held: false); 577Common.ContractAssertMonitorStatus(IncomingLock, held: false); 618Common.ContractAssertMonitorStatus(IncomingLock, held: false); 622long messageId = Common.INVALID_REORDERING_ID; 660Debug.Assert(messageId != Common.INVALID_REORDERING_ID, "The assigned message ID is invalid."); 715Common.ContractAssertMonitorStatus(IncomingLock, held: true); 731Common.ContractAssertMonitorStatus(IncomingLock, held: true); 746this, CancellationToken.None, Common.GetCreationOptionsForTask(), TaskScheduler.Default); 765Common.ReleaseAllPostponedMessages(_owningTarget, _boundingState.PostponedMessages, ref _exceptions); 812Common.ContractAssertMonitorStatus(IncomingLock, held: false);
Internal\TargetRegistry.cs (3)
202if (node.PropagateCompletion) Common.PropagateCompletion(owningSourceCompletion, node.Target, Common.AsyncExceptionHandler); 362return $"{Common.GetNameForDebugger(this)} Source = \"{(displaySource != null ? displaySource.Content : _owningSource)}\", Target = \"{(displayTarget != null ? displayTarget.Content : _target)}\"";