93 references to DataflowMessageStatus
System.Threading.Tasks.Dataflow (93)
Base\DataflowBlock.cs (30)
148
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
165
else return
DataflowMessageStatus
.Declined;
262
return target.OfferMessage(Common.SingleMessageHeader, item, source: null, consumeToAccept: false) ==
DataflowMessageStatus
.Accepted;
327
case
DataflowMessageStatus
.Accepted:
331
case
DataflowMessageStatus
.DecliningPermanently:
335
case
DataflowMessageStatus
.Postponed:
339
case
DataflowMessageStatus
.NotAvailable:
597
case
DataflowMessageStatus
.Accepted:
614
case
DataflowMessageStatus
.Declined:
615
case
DataflowMessageStatus
.DecliningPermanently:
619
case
DataflowMessageStatus
.NotAvailable:
1179
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
1185
DataflowMessageStatus
status =
DataflowMessageStatus
.NotAvailable;
1190
if (Volatile.Read(ref _cleanupReserved)) return
DataflowMessageStatus
.DecliningPermanently;
1195
if (_cleanupReserved) return
DataflowMessageStatus
.DecliningPermanently;
1204
status =
DataflowMessageStatus
.Accepted;
1212
status =
DataflowMessageStatus
.DecliningPermanently;
1220
if (status ==
DataflowMessageStatus
.Accepted)
1224
else if (status ==
DataflowMessageStatus
.DecliningPermanently) // should only be the case if an error occurred
1493
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
1500
return
DataflowMessageStatus
.DecliningPermanently;
1592
public
DataflowMessageStatus
OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
2180
public
DataflowMessageStatus
OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
2189
if (_completed.Value != null || base.Task.IsCompleted) return
DataflowMessageStatus
.DecliningPermanently;
2196
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
2202
return
DataflowMessageStatus
.Accepted;
2697
DataflowMessageStatus
ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
2709
if (!messageConsumed) return
DataflowMessageStatus
.NotAvailable;
2713
return
DataflowMessageStatus
.Accepted;
Base\ITargetBlock.cs (1)
22
DataflowMessageStatus
OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept);
Blocks\ActionBlock.cs (2)
285
_defaultTarget.OfferMessage(Common.SingleMessageHeader, item, null, false) ==
DataflowMessageStatus
.Accepted :
290
DataflowMessageStatus
ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
Blocks\BatchBlock.cs (7)
152
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
352
internal
DataflowMessageStatus
OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
364
return
DataflowMessageStatus
.DecliningPermanently;
385
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
404
return
DataflowMessageStatus
.Accepted;
417
return
DataflowMessageStatus
.Postponed;
420
return
DataflowMessageStatus
.Declined;
Blocks\BatchedJoinBlock.cs (4)
570
public
DataflowMessageStatus
OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
581
return
DataflowMessageStatus
.DecliningPermanently;
590
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
597
return
DataflowMessageStatus
.Accepted;
Blocks\BroadcastBlock.cs (13)
166
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
178
return
DataflowMessageStatus
.DecliningPermanently;
198
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
204
return
DataflowMessageStatus
.Accepted;
213
return
DataflowMessageStatus
.Postponed;
216
return
DataflowMessageStatus
.Declined;
693
DataflowMessageStatus
result = target.OfferMessage(new DataflowMessageHeader(_nextMessageId), currentMessage!, _owningSource, consumeToAccept: useCloning);
696
if (result ==
DataflowMessageStatus
.Accepted)
707
else if (result ==
DataflowMessageStatus
.DecliningPermanently)
711
else Debug.Assert(result !=
DataflowMessageStatus
.NotAvailable, "Messages from a Broadcast should never be missed.");
800
case
DataflowMessageStatus
.Accepted:
810
case
DataflowMessageStatus
.DecliningPermanently:
815
case
DataflowMessageStatus
.NotAvailable:
Blocks\BufferBlock.cs (6)
91
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
103
return
DataflowMessageStatus
.DecliningPermanently;
123
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
130
return
DataflowMessageStatus
.Accepted;
139
return
DataflowMessageStatus
.Postponed;
142
return
DataflowMessageStatus
.Declined;
Blocks\JoinBlock.cs (6)
826
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
838
return
DataflowMessageStatus
.DecliningPermanently;
859
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
874
return
DataflowMessageStatus
.Accepted;
884
return
DataflowMessageStatus
.Postponed;
887
return
DataflowMessageStatus
.Declined;
Blocks\TransformBlock.cs (1)
371
DataflowMessageStatus
ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
Blocks\TransformManyBlock.cs (1)
577
DataflowMessageStatus
ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
Blocks\WriteOnceBlock.cs (4)
347
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)
357
if (_decliningPermanently) return
DataflowMessageStatus
.DecliningPermanently;
365
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
383
return
DataflowMessageStatus
.Accepted;
Internal\SourceCore.cs (5)
677
DataflowMessageStatus
result = target.OfferMessage(header, message, _owningSource, consumeToAccept: false);
678
Debug.Assert(result !=
DataflowMessageStatus
.NotAvailable, "Messages are not being offered concurrently, so nothing should be missed.");
682
if (result ==
DataflowMessageStatus
.Accepted)
689
else if (result ==
DataflowMessageStatus
.DecliningPermanently)
696
Debug.Assert(result ==
DataflowMessageStatus
.Postponed,
Internal\SpscTargetCore.cs (6)
111
internal
DataflowMessageStatus
OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
115
DataflowMessageStatus
.Accepted :
125
private
DataflowMessageStatus
OfferMessage_Slow(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
130
return
DataflowMessageStatus
.DecliningPermanently;
145
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
155
return
DataflowMessageStatus
.Accepted;
Internal\TargetCore.cs (6)
181
internal
DataflowMessageStatus
OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock<TInput>? source, bool consumeToAccept)
193
return
DataflowMessageStatus
.DecliningPermanently;
212
if (!consumed) return
DataflowMessageStatus
.NotAvailable;
222
return
DataflowMessageStatus
.Accepted;
233
return
DataflowMessageStatus
.Postponed;
236
return
DataflowMessageStatus
.Declined;
Internal\TargetRegistry.cs (1)
321
DataflowMessageStatus
ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue, ISourceBlock<T>? source, bool consumeToAccept)