IGrainMethodInvoker.Invoke(IAddressable, InvokeMethodRequest) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.