2 interfaces inheriting from ISourceBlock
System.Threading.Tasks.Dataflow (2)
Base\IPropagatorBlock.cs (1)
18
public interface IPropagatorBlock<in TInput, out TOutput> : ITargetBlock<TInput>,
ISourceBlock
<TOutput>
Base\IReceivableSourceBlock.cs (1)
20
public interface IReceivableSourceBlock<TOutput> :
ISourceBlock
<TOutput>
2 implementations of ISourceBlock
System.Threading.Tasks.Dataflow (2)
Base\DataflowBlock.cs (1)
369
private sealed class SendAsyncSource<TOutput> : TaskCompletionSource<bool>,
ISourceBlock
<TOutput>, IDebuggerDisplay
Internal\TargetRegistry.cs (1)
300
private sealed class NopLinkPropagator : IPropagatorBlock<T, T>,
ISourceBlock
<T>, IDebuggerDisplay
198 references to ISourceBlock
System.Threading.Tasks.Dataflow (198)
Base\DataflowBlock.cs (65)
27
/// <summary>Links the <see cref="
ISourceBlock
{TOutput}"/> to the specified <see cref="ITargetBlock{TOutput}"/>.</summary>
34
this
ISourceBlock
<TOutput> source,
51
/// <summary>Links the <see cref="
ISourceBlock
{TOutput}"/> to the specified <see cref="ITargetBlock{TOutput}"/> using the specified filter.</summary>
60
this
ISourceBlock
<TOutput> source,
68
/// <summary>Links the <see cref="
ISourceBlock
{TOutput}"/> to the specified <see cref="ITargetBlock{TOutput}"/> using the specified filter.</summary>
79
this
ISourceBlock
<TOutput> source,
114
private readonly
ISourceBlock
<T> _source;
124
internal FilteredLinkPropagator(
ISourceBlock
<T> source, ITargetBlock<T> target, Predicate<T> predicate)
148
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
169
T?
ISourceBlock
<T>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target, out bool messageConsumed)
178
bool
ISourceBlock
<T>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
187
void
ISourceBlock
<T>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
203
IDisposable
ISourceBlock
<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }
642
TOutput?
ISourceBlock
<TOutput>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target, out bool messageConsumed)
687
bool
ISourceBlock
<TOutput>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target)
704
void
ISourceBlock
<TOutput>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target)
736
IDisposable
ISourceBlock
<TOutput>.LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }
781
/// Attempts to synchronously receive an item from the <see cref="System.Threading.Tasks.Dataflow.
ISourceBlock
{T}"/>.
812
this
ISourceBlock
<TOutput> source)
829
this
ISourceBlock
<TOutput> source, CancellationToken cancellationToken)
849
this
ISourceBlock
<TOutput> source, TimeSpan timeout)
870
this
ISourceBlock
<TOutput> source, TimeSpan timeout, CancellationToken cancellationToken)
893
this
ISourceBlock
<TOutput> source)
911
this
ISourceBlock
<TOutput> source, CancellationToken cancellationToken)
932
this
ISourceBlock
<TOutput> source, TimeSpan timeout)
955
this
ISourceBlock
<TOutput> source, TimeSpan timeout, CancellationToken cancellationToken)
1005
this
ISourceBlock
<TOutput> source, bool attemptTryReceive, TimeSpan timeout, CancellationToken cancellationToken)
1070
private static Task<TOutput> ReceiveCoreByLinking<TOutput>(
ISourceBlock
<TOutput> source, int millisecondsTimeout, CancellationToken cancellationToken)
1179
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
1415
public static Task<bool> OutputAvailableAsync<TOutput>(this
ISourceBlock
<TOutput> source)
1435
this
ISourceBlock
<TOutput> source, CancellationToken cancellationToken)
1442
static async Task<bool> Impl(
ISourceBlock
<TOutput> source, CancellationToken cancellationToken)
1493
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
1543
ITargetBlock<TInput> target,
ISourceBlock
<TOutput> source)
1565
private readonly
ISourceBlock
<TOutput> _source;
1567
public EncapsulatingPropagator(ITargetBlock<TInput> target,
ISourceBlock
<TOutput> source)
1592
public DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
1674
public
ISourceBlock
<TOutput> Source { get { return _propagator._source; } }
1707
ISourceBlock
<T1> source1, Action<T1> action1,
1708
ISourceBlock
<T2> source2, Action<T2> action2)
1745
ISourceBlock
<T1> source1, Action<T1> action1,
1746
ISourceBlock
<T2> source2, Action<T2> action2,
1806
ISourceBlock
<T1> source1, Action<T1> action1,
1807
ISourceBlock
<T2> source2, Action<T2> action2,
1808
ISourceBlock
<T3> source3, Action<T3> action3)
1849
ISourceBlock
<T1> source1, Action<T1> action1,
1850
ISourceBlock
<T2> source2, Action<T2> action2,
1851
ISourceBlock
<T3> source3, Action<T3> action3,
1901
ISourceBlock
<T1> source1, Action<T1> action1,
1902
ISourceBlock
<T2> source2, Action<T2> action2,
1903
ISourceBlock
<T3>? source3, Action<T3>? action3,
1949
ISourceBlock
<T> source, Action<T> action, int branchId, TaskScheduler scheduler,
1986
ISourceBlock
<T1> source1, Action<T1> action1,
1987
ISourceBlock
<T2> source2, Action<T2> action2,
1988
ISourceBlock
<T3>? source3, Action<T3>? action3,
2083
int branchId,
ISourceBlock
<T> source, Action<T> action)
2180
public DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
2228
/// <summary>Creates a new <see cref="System.IObservable{TOutput}"/> abstraction over the <see cref="
ISourceBlock
{TOutput}"/>.</summary>
2233
public static IObservable<TOutput> AsObservable<TOutput>(this
ISourceBlock
<TOutput> source)
2258
private static readonly ConditionalWeakTable<
ISourceBlock
<TOutput>, SourceObservable<TOutput>> _table =
2259
new ConditionalWeakTable<
ISourceBlock
<TOutput>, SourceObservable<TOutput>>();
2264
internal static SourceObservable<TOutput> From(
ISourceBlock
<TOutput> source)
2273
private readonly
ISourceBlock
<TOutput> _source;
2282
internal SourceObservable(
ISourceBlock
<TOutput> source)
2697
DataflowMessageStatus ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
Base\DataflowMessageStatus.cs (4)
25
/// Indicates that the <see cref="ITargetBlock{TInput}"/> declined the message. The <see cref="
ISourceBlock
{TOutput}"/> still owns the message.
31
/// The <see cref="
ISourceBlock
{TOutput}"/> still owns the message.
36
/// Indicates that the <see cref="ITargetBlock{TInput}"/> tried to accept the message from the <see cref="
ISourceBlock
{TOutput}"/>, but the
42
/// Indicates that the <see cref="ITargetBlock{TInput}"/> declined the message. The <see cref="
ISourceBlock
{TOutput}"/> still owns the message.
Base\ISourceBlock.cs (1)
19
/// <typeparam name="TOutput">Specifies the type of data supplied by the <see cref="
ISourceBlock
{TOutput}"/>.</typeparam>
Base\ITargetBlock.cs (1)
22
DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept);
Blocks\ActionBlock.cs (2)
290
DataflowMessageStatus ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
354
public QueuedMap<
ISourceBlock
<TInput>, DataflowMessageHeader>? PostponedMessages
Blocks\BatchBlock.cs (44)
57
Action<
ISourceBlock
<T[]>, int>? onItemsRemoved = null;
58
Func<
ISourceBlock
<T[]>, T[], IList<T[]>?, int>? itemCountingFunc = null;
152
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
158
T[]?
ISourceBlock
<T[]>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<T[]> target, out bool messageConsumed)
164
bool
ISourceBlock
<T[]>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<T[]> target)
170
void
ISourceBlock
<T[]>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<T[]> target)
232
public QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader>? PostponedMessages { get { return _targetDebuggingInformation.PostponedMessages; } }
275
internal readonly QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader> PostponedMessages;
277
internal readonly KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader>[] PostponedMessagesTemp;
279
internal readonly List<KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>> ReservedSourcesTemp;
294
PostponedMessages = new QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader>(batchSize);
295
PostponedMessagesTemp = new KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader>[batchSize];
296
ReservedSourcesTemp = new List<KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>>(batchSize);
352
internal DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
760
QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader> postponed = _nonGreedyState.PostponedMessages;
761
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader>[] postponedTemp = _nonGreedyState.PostponedMessagesTemp;
762
List<KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
792
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> sourceAndMessage = postponedTemp[i];
796
var reservedSourceAndMessage = new KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
806
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> sourceAndMessage;
814
var reservedSourceAndMessage = new KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
878
QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader> postponed = _nonGreedyState.PostponedMessages;
879
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader>[] postponedTemp = _nonGreedyState.PostponedMessagesTemp;
880
List<KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
909
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> sourceAndMessage = postponedTemp[i];
911
var reservedSourceAndMessage = new KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
920
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> sourceAndMessage;
927
var reservedSourceAndMessage = new KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
987
List<KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
996
KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i];
997
reserved[i] = default(KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>); // in case of exception from ConsumeMessage
1005
for (int prev = 0; prev < i; prev++) reserved[prev] = default(KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>);
1010
var consumedSourceAndMessage = new KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage);
1019
foreach (KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage in reserved)
1039
List<KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
1048
KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i];
1049
reserved[i] = default(KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>); // in case of exception from ConsumeMessage
1055
var consumedSourceAndMessage = new KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage);
1068
foreach (KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage in reserved)
1091
List<KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
1094
KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i];
1095
reserved[i] = default(KeyValuePair<
ISourceBlock
<T>, KeyValuePair<DataflowMessageHeader, T>>);
1096
ISourceBlock
<T> source = sourceAndMessage.Key;
1184
public QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader>? PostponedMessages { get { return _target._nonGreedyState?.PostponedMessages; } }
Blocks\BatchedJoinBlock.cs (7)
176
Tuple<IList<T1>, IList<T2>>?
ISourceBlock
<Tuple<IList<T1>, IList<T2>>>.ConsumeMessage(
183
bool
ISourceBlock
<Tuple<IList<T1>, IList<T2>>>.ReserveMessage(
190
void
ISourceBlock
<Tuple<IList<T1>, IList<T2>>>.ReleaseReservation(
433
Tuple<IList<T1>, IList<T2>, IList<T3>>?
ISourceBlock
<Tuple<IList<T1>, IList<T2>, IList<T3>>>.ConsumeMessage(
440
bool
ISourceBlock
<Tuple<IList<T1>, IList<T2>, IList<T3>>>.ReserveMessage(
447
void
ISourceBlock
<Tuple<IList<T1>, IList<T2>, IList<T3>>>.ReleaseReservation(
570
public DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
Blocks\BroadcastBlock.cs (6)
166
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
341
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> sourceAndMessage;
421
T?
ISourceBlock
<T>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target, out bool messageConsumed)
427
bool
ISourceBlock
<T>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
433
void
ISourceBlock
<T>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
494
/// <summary>Provides a core implementation for blocks that implement <see cref="
ISourceBlock
{TOutput}"/>.</summary>
Blocks\BufferBlock.cs (7)
57
Action<
ISourceBlock
<T>, int>? onItemsRemoved = null;
91
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
204
T?
ISourceBlock
<T>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target, out bool messageConsumed)
210
bool
ISourceBlock
<T>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
216
void
ISourceBlock
<T>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
343
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> sourceAndMessage;
454
public QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader>? PostponedMessages
Blocks\JoinBlock.cs (16)
61
Action<
ISourceBlock
<Tuple<T1, T2>>, int>? onItemsRemoved = null;
169
Tuple<T1, T2>?
ISourceBlock
<Tuple<T1, T2>>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2>> target, out bool messageConsumed)
175
bool
ISourceBlock
<Tuple<T1, T2>>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2>> target)
181
void
ISourceBlock
<Tuple<T1, T2>>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2>> target)
288
Action<
ISourceBlock
<Tuple<T1, T2, T3>>, int>? onItemsRemoved = null;
399
Tuple<T1, T2, T3>?
ISourceBlock
<Tuple<T1, T2, T3>>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2, T3>> target, out bool messageConsumed)
405
bool
ISourceBlock
<Tuple<T1, T2, T3>>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2, T3>> target)
411
void
ISourceBlock
<Tuple<T1, T2, T3>>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2, T3>> target)
503
internal readonly QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader> PostponedMessages = new QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader>();
505
internal KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> ReservedMessage;
615
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> next;
660
_nonGreedy.ReservedMessage = default(KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader>);
702
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> next;
782
_nonGreedy.ReservedMessage = default(KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader>);
826
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
Blocks\TransformBlock.cs (6)
107
Action<
ISourceBlock
<TOutput>, int>? onItemsRemoved = null;
371
DataflowMessageStatus ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
377
TOutput?
ISourceBlock
<TOutput>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target, out bool messageConsumed)
383
bool
ISourceBlock
<TOutput>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target)
389
void
ISourceBlock
<TOutput>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target)
432
public QueuedMap<
ISourceBlock
<TInput>, DataflowMessageHeader>? PostponedMessages { get { return _targetDebuggingInformation.PostponedMessages; } }
Blocks\TransformManyBlock.cs (6)
112
Action<
ISourceBlock
<TOutput>, int>? onItemsRemoved = null;
577
DataflowMessageStatus ITargetBlock<TInput>.OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
583
TOutput?
ISourceBlock
<TOutput>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target, out bool messageConsumed)
589
bool
ISourceBlock
<TOutput>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target)
595
void
ISourceBlock
<TOutput>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<TOutput> target)
638
public QueuedMap<
ISourceBlock
<TInput>, DataflowMessageHeader>? PostponedMessages { get { return _targetDebuggingInformation.PostponedMessages; } }
Blocks\WriteOnceBlock.cs (4)
347
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
387
T?
ISourceBlock
<T>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target, out bool messageConsumed)
408
bool
ISourceBlock
<T>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
421
void
ISourceBlock
<T>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
Internal\Common.cs (4)
498
QueuedMap<
ISourceBlock
<T>, DataflowMessageHeader> postponedMessages,
510
KeyValuePair<
ISourceBlock
<T>, DataflowMessageHeader> sourceAndMessage;
642
internal readonly QueuedMap<
ISourceBlock
<TInput>, DataflowMessageHeader> PostponedMessages =
643
new QueuedMap<
ISourceBlock
<TInput>, DataflowMessageHeader>();
Internal\DataflowEtwProvider.cs (2)
179
internal void DataflowBlockLinking<T>(
ISourceBlock
<T> source, ITargetBlock<T> target)
201
internal void DataflowBlockUnlinking<T>(
ISourceBlock
<T> source, ITargetBlock<T> target)
Internal\SourceCore.cs (9)
28
/// <summary>Provides a core implementation for blocks that implement <see cref="
ISourceBlock
{TOutput}"/>.</summary>
60
private readonly
ISourceBlock
<TOutput> _owningSource;
67
private readonly Action<
ISourceBlock
<TOutput>> _completeAction;
72
private readonly Action<
ISourceBlock
<TOutput>, int>? _itemsRemovedAction;
74
private readonly Func<
ISourceBlock
<TOutput>, TOutput, IList<TOutput>?, int>? _itemCountingFunc;
103
ISourceBlock
<TOutput> owningSource, DataflowBlockOptions dataflowBlockOptions,
104
Action<
ISourceBlock
<TOutput>> completeAction,
105
Action<
ISourceBlock
<TOutput>, int>? itemsRemovedAction = null,
106
Func<
ISourceBlock
<TOutput>, TOutput, IList<TOutput>?, int>? itemCountingFunc = null)
Internal\SpscTargetCore.cs (2)
111
internal DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
125
private DataflowMessageStatus OfferMessage_Slow(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
Internal\TargetCore.cs (3)
181
internal DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, TInput messageValue,
ISourceBlock
<TInput>? source, bool consumeToAccept)
625
KeyValuePair<
ISourceBlock
<TInput>, DataflowMessageHeader> element;
859
internal QueuedMap<
ISourceBlock
<TInput>, DataflowMessageHeader>? PostponedMessages
Internal\TargetRegistry.cs (9)
60
private readonly
ISourceBlock
<T> _owningSource;
72
internal TargetRegistry(
ISourceBlock
<T> owningSource)
303
private readonly
ISourceBlock
<T> _owningSource;
310
internal NopLinkPropagator(
ISourceBlock
<T> owningSource, ITargetBlock<T> target)
321
DataflowMessageStatus ITargetBlock<T>.OfferMessage(DataflowMessageHeader messageHeader, T messageValue,
ISourceBlock
<T>? source, bool consumeToAccept)
328
T?
ISourceBlock
<T>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target, out bool messageConsumed)
334
bool
ISourceBlock
<T>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
340
void
ISourceBlock
<T>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<T> target)
353
IDisposable
ISourceBlock
<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }