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 = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand<TResult> | command | The command to execute |
| System.Threading.CancellationToken | cancellationToken | Optional cancellation token |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult> | Awaitable task |
Type Parameters
| Name | Description |
|---|---|
| TResult | The type of the result |