C# Class Microsoft.Async.Transformations.SwitchBlock

A command helper that ensures activities are mutually exclusive. The individual actions that are added can be triggered sequentially an infinite number of times, leaving the implementation of the action to handle things like restart or toggle behavior. However, if a sequence of actions is interrupted by a different action, the entire sequence is cancelled and the interrupting action will begin.
Inheritance: IDisposable
Datei anzeigen Open project: rozele/Microsoft.Async.Transformations

Public Methods

Method Description
Add ( Task>.Func action ) : Task>.Func

Add an action to the switch.

Dispose ( ) : void

Disposes the switch block.

Private Methods

Method Description
ExecuteAsync ( object current, Task>.Func action, CancellationToken token ) : Task

Method Details

Add() public method

Add an action to the switch.
public Add ( Task>.Func action ) : Task>.Func
action Task>.Func The action.
return Task>.Func

Dispose() public method

Disposes the switch block.
public Dispose ( ) : void
return void