Table of Contents

Class AsyncCommand<T>

Namespace
Executables
Assembly
executables.dll

Default asynchronous command implementation backed by a registered handler.

public sealed class AsyncCommand<T> : AsyncHandleable<T, Unit>, IAsyncHandleable<T, Unit>, IAsyncHandleable<T, Unit, AsyncHandler<T, Unit>>, IAsyncCommand<T>, IAsyncExecutable<T, bool>

Type Parameters

T

Type of the command input.

Inheritance
AsyncCommand<T>
Implements
Inherited Members

Methods

Execute(T, CancellationToken)

Executes the command.

public ValueTask<bool> Execute(T input, CancellationToken token = default)

Parameters

input T

Command input.

token CancellationToken

Cancellation token.

Returns

ValueTask<bool>

true when a handler completed successfully; otherwise, false.

GetExecutor()

public AsyncCommand<T>.Executor GetExecutor()

Returns

AsyncCommand<T>.Executor