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
TType of the command input.
- Inheritance
-
AsyncHandleable<T, Unit>AsyncCommand<T>
- Implements
-
IAsyncHandleable<T, Unit>IAsyncExecutable<T, bool>
- Inherited Members
Methods
Execute(T, CancellationToken)
Executes the command.
public ValueTask<bool> Execute(T input, CancellationToken token = default)
Parameters
inputTCommand input.
tokenCancellationTokenCancellation token.
Returns
GetExecutor()
public AsyncCommand<T>.Executor GetExecutor()