Interface IFrameworkCommandExecuter
Implementations of this interface execute commands immediately using the registered set of actors
Namespace: AzureFromTheTrenches.Commanding.Abstractions
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public interface IFrameworkCommandExecuter
Methods
| Improve this Doc View SourceExecuteAsync<TResult>(ICommand<TResult>, CancellationToken)
Executes the given command
Declaration
Task<TResult> ExecuteAsync<TResult>(ICommand<TResult> command, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
ICommand<TResult> | command | The command to execute |
CancellationToken | cancellationToken | Optional cancellation token |
Returns
Type | Description |
---|---|
Task<TResult> | Awaitable task |
Type Parameters
Name | Description |
---|---|
TResult | The type of the result |