Interface IGrainMethodInvoker
An implementation of this interface is generated for every grain interface as part of the client-side code generation.
Namespace: Orleans.CodeGeneration
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IGrainMethodInvoker
Properties
| Improve this Doc View SourceInterfaceId
The interface id that this invoker supports.
Declaration
int InterfaceId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
InterfaceVersion
Declaration
ushort InterfaceVersion { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt16 |
Methods
| Improve this Doc View SourceInvoke(IAddressable, InvokeMethodRequest)
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.
Declaration
Task<object> Invoke(IAddressable grain, InvokeMethodRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| IAddressable | grain | Reference to the grain to be invoked. |
| InvokeMethodRequest | request | The request being invoked. |
Returns
| Type | Description |
|---|---|
| Task<System.Object> | Value promise for the result of the method invoke. |