C# Класс 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.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( Task>.Func action ) : Task>.Func

Add an action to the switch.

Dispose ( ) : void

Disposes the switch block.

Приватные методы

Метод Описание
ExecuteAsync ( object current, Task>.Func action, CancellationToken token ) : Task

Описание методов

Add() публичный Метод

Add an action to the switch.
public Add ( Task>.Func action ) : Task>.Func
action Task>.Func The action.
Результат Task>.Func

Dispose() публичный Метод

Disposes the switch block.
public Dispose ( ) : void
Результат void