Interface IAsyncOperation
Defines the contract of an executable asynchronous operation.
Namespace: Kephas.Operations
Assembly: Kephas.Core.dll
Syntax
public interface IAsyncOperation
Methods
| Improve this Doc View SourceExecuteAsync(IContext, CancellationToken)
Executes the operation asynchronously in the given context.
Declaration
Task<object> ExecuteAsync(IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IContext | context | Optional. The context. |
System.Threading.CancellationToken | cancellationToken | Optional. A token that allows processing to be cancelled. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | An object. |