Interface IDataCommand
Contract for data commands.
Inherited Members
Namespace: Kephas.Data.Commands
Assembly: Kephas.Data.dll
Syntax
public interface IDataCommand : IAsyncOperation
Methods
| Improve this Doc View SourceExecuteAsync(IDataOperationContext, CancellationToken)
Executes the data command asynchronously.
Declaration
Task<IDataCommandResult> ExecuteAsync(IDataOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IDataOperationContext | operationContext | The operation context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IDataCommandResult> | A promise of a IDataCommandResult. |