Show / Hide Table of Contents

Interface IDataCommand<TOperationContext, TResult>

Contract for data commands, with typed operationContext and result.

Inherited Members
IDataCommand.ExecuteAsync(IDataOperationContext, CancellationToken)
IAsyncOperation.ExecuteAsync(IContext, CancellationToken)
Namespace: Kephas.Data.Commands
Assembly: Kephas.Data.dll
Syntax
public interface IDataCommand<in TOperationContext, TResult> : IDataCommand, IAsyncOperation where TOperationContext : IDataOperationContext where TResult : IDataCommandResult
Type Parameters
Name Description
TOperationContext

Type of the operation context.

TResult

Type of the result.

Methods

| Improve this Doc View Source

ExecuteAsync(TOperationContext, CancellationToken)

Executes the data command asynchronously.

Declaration
Task<TResult> ExecuteAsync(TOperationContext operationContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
TOperationContext operationContext

The operation context.

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task<TResult>

A promise of a IDataCommandResult.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX