ICommandDataSource<(Of <(<'TCommand, TParameter>)>)>..::..ExecuteAsync Method
Executes the operation asynchronously.
Namespace:
Tortuga.Chain.DataSourcesAssembly: Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)
Syntax
Task<Nullable<int>> ExecuteAsync( CommandExecutionToken<TCommand, TParameter> executionToken, CommandImplementationAsync<TCommand> implementation, CancellationToken cancellationToken, Nullable<Object> state )
Function ExecuteAsync ( _ executionToken As CommandExecutionToken(Of TCommand, TParameter), _ implementation As CommandImplementationAsync(Of TCommand), _ cancellationToken As CancellationToken, _ state As Nullable(Of Object) _ ) As Task(Of Nullable(Of Integer))
Task<Nullable<int^>>^ ExecuteAsync( CommandExecutionToken<TCommand, TParameter>^ executionToken, CommandImplementationAsync<TCommand>^ implementation, CancellationToken^ cancellationToken, Nullable<Object^> state )
Parameters
- executionToken
- Type: Tortuga.Chain.Core..::..CommandExecutionToken<(Of <(<'TCommand, TParameter>)>)>
The execution token.
- implementation
- Type: Tortuga.Chain.Core..::..CommandImplementationAsync<(Of <(<'TCommand>)>)>
The implementation that handles processing the result of the command.
- cancellationToken
- Type: CancellationToken
The cancellation token.