2 interfaces inheriting from IDataflowBlock
System.Threading.Tasks.Dataflow (2)
Base\ISourceBlock.cs (1)
20
public interface ISourceBlock<out TOutput> :
IDataflowBlock
Base\ITargetBlock.cs (1)
17
public interface ITargetBlock<in TInput> :
IDataflowBlock
69 references to IDataflowBlock
System.Threading.Tasks.Dataflow (69)
Base\DataflowBlock.cs (22)
196
Task
IDataflowBlock
.Completion { get { return _source.Completion; } }
198
void
IDataflowBlock
.Complete() { _target.Complete(); }
200
void
IDataflowBlock
.Fault(Exception exception) { _target.Fault(exception); }
733
Task
IDataflowBlock
.Completion { get { return Task; } }
738
void
IDataflowBlock
.Complete() { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }
740
void
IDataflowBlock
.Fault(Exception exception) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }
1381
void
IDataflowBlock
.Complete()
1387
void
IDataflowBlock
.Fault(Exception exception) { ((
IDataflowBlock
)this).Complete(); }
1390
Task
IDataflowBlock
.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
1504
void
IDataflowBlock
.Complete() => TrySetResult(false);
1507
void
IDataflowBlock
.Fault(Exception exception)
1518
Task
IDataflowBlock
.Completion => throw new NotSupportedException(SR.NotSupported_MemberNotNeeded);
1540
/// <see cref="
IDataflowBlock
"/> implementation delegates to the specified source.
1582
void
IDataflowBlock
.Fault(Exception exception)
2207
void
IDataflowBlock
.Complete()
2213
void
IDataflowBlock
.Fault(Exception exception) { ((
IDataflowBlock
)this).Complete(); }
2216
Task
IDataflowBlock
.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
2717
void
IDataflowBlock
.Complete() { } // No-op
2719
void
IDataflowBlock
.Fault(Exception exception) { } // No-op
2721
Task
IDataflowBlock
.Completion
Blocks\ActionBlock.cs (1)
238
void
IDataflowBlock
.Fault(Exception exception)
Blocks\BatchBlock.cs (3)
83
var
thisBlock = ((BatchBlock<T>)state!) as
IDataflowBlock
;
102
void
IDataflowBlock
.Fault(Exception exception)
Blocks\BatchedJoinBlock.cs (8)
101
var
thisBlock = ((BatchedJoinBlock<T1, T2>)state!) as
IDataflowBlock
;
157
void
IDataflowBlock
.Fault(Exception exception)
353
var
thisBlock = ((BatchedJoinBlock<T1, T2, T3>)state!) as
IDataflowBlock
;
414
void
IDataflowBlock
.Fault(Exception exception)
617
void
IDataflowBlock
.Fault(Exception exception)
633
Task
IDataflowBlock
.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
Blocks\BroadcastBlock.cs (3)
93
var
thisBlock = ((BroadcastBlock<T>)state!) as
IDataflowBlock
;
115
void
IDataflowBlock
.Fault(Exception exception)
Blocks\BufferBlock.cs (3)
75
var
thisBlock = ((BufferBlock<T>)state!) as
IDataflowBlock
;
150
void
IDataflowBlock
.Fault(Exception exception)
Blocks\JoinBlock.cs (9)
97
var
thisBlock = ((JoinBlock<T1, T2>)state!) as
IDataflowBlock
;
144
void
IDataflowBlock
.Fault(Exception exception)
322
var
thisBlock = ((JoinBlock<T1, T2, T3>)state!) as
IDataflowBlock
;
371
void
IDataflowBlock
.Fault(Exception exception)
937
void
IDataflowBlock
.Fault(Exception exception)
1039
IDataflowBlock
ownerJoin, JoinBlockTargetBase[] targets,
1061
internal readonly
IDataflowBlock
_ownerJoin;
Blocks\TransformBlock.cs (3)
156
var
thisBlock = ((TransformBlock<TInput, TOutput>)state!) as
IDataflowBlock
;
336
void
IDataflowBlock
.Fault(Exception exception)
Blocks\TransformManyBlock.cs (3)
152
var
thisBlock = ((TransformManyBlock<TInput, TOutput>)state!) as
IDataflowBlock
;
548
void
IDataflowBlock
.Fault(Exception exception)
Blocks\WriteOnceBlock.cs (1)
209
void
IDataflowBlock
.Fault(Exception exception)
Internal\Common.cs (7)
102
internal static int GetBlockId(
IDataflowBlock
block)
118
IDataflowBlock
block, DataflowBlockOptions? options = null)
384
internal static Task? GetPotentiallyNotSupportedCompletionTask(
IDataflowBlock
block)
546
internal static void PropagateCompletion(Task sourceCompletionTask,
IDataflowBlock
target, Action<Exception>? exceptionHandler)
569
private static void PropagateCompletionAsContinuation(Task sourceCompletionTask,
IDataflowBlock
target)
573
sourceCompletionTask.ContinueWith(static (task, state) => Common.PropagateCompletion(task, (
IDataflowBlock
)state!, AsyncExceptionHandler),
580
internal static void PropagateCompletionOnceCompleted(Task sourceCompletionTask,
IDataflowBlock
target)
Internal\DataflowEtwProvider.cs (3)
64
internal void DataflowBlockCreated(
IDataflowBlock
block, DataflowBlockOptions dataflowBlockOptions)
92
IDataflowBlock
block, Task task, TaskLaunchedReason reason, int availableMessages)
128
internal void DataflowBlockCompleted(
IDataflowBlock
block)
Internal\TargetRegistry.cs (3)
346
Task
IDataflowBlock
.Completion { get { return _owningSource.Completion; } }
348
void
IDataflowBlock
.Complete() { _target.Complete(); }
350
void
IDataflowBlock
.Fault(Exception exception) { _target.Fault(exception); }