Delegate CommandOperationMethod

Namespace
Cratis.Arc.Commands
Assembly
Cratis.Arc.Core.dll

A typed generated call into an operation method, after the pipeline has bound all arguments.

public delegate ValueTask CommandOperationMethod(ICommandOperation operation, object?[] arguments)

Parameters

operation ICommandOperation

The business declaration.

arguments object[]

Preflighted arguments in signature order.

Returns

ValueTask

Completion of the user method.

Extension Methods

Constructors

CommandOperationMethod(object, nint)

public CommandOperationMethod(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(ICommandOperation, object?[], AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ICommandOperation operation, object?[] arguments, AsyncCallback callback, object @object)

Parameters

operation ICommandOperation
arguments object[]
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual ValueTask EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

ValueTask

Invoke(ICommandOperation, object?[])

public virtual ValueTask Invoke(ICommandOperation operation, object?[] arguments)

Parameters

operation ICommandOperation
arguments object[]

Returns

ValueTask