Show / Hide Table of Contents

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 Source

InterfaceId

The interface id that this invoker supports.

Declaration
int InterfaceId { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

InterfaceVersion

Declaration
ushort InterfaceVersion { get; }
Property Value
Type Description
System.UInt16

Methods

| Improve this Doc View Source

Invoke(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.

Extension Methods

ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX