Redigera

Dela via


IGrainMethodInvoker.Invoke(IAddressable, InvokeMethodRequest) Method

Definition

Invoke a grain method. Invoker classes in generated code implement this method to provide a method call jump-table to map invoke data to a strongly typed call to the correct method on the correct interface.

public System.Threading.Tasks.Task<object> Invoke (Orleans.Runtime.IAddressable grain, Orleans.CodeGeneration.InvokeMethodRequest request);
abstract member Invoke : Orleans.Runtime.IAddressable * Orleans.CodeGeneration.InvokeMethodRequest -> System.Threading.Tasks.Task<obj>
Public Function Invoke (grain As IAddressable, request As InvokeMethodRequest) As Task(Of Object)

Parameters

grain
IAddressable

Reference to the grain to be invoked.

request
InvokeMethodRequest

The request being invoked.

Returns

Value promise for the result of the method invoke.

Applies to