Düzenle

Aracılığıyla paylaş


IGrainReferenceRuntime.InvokeMethodAsync Method

Definition

Overloads

InvokeMethodAsync(GrainReference, IInvokable, InvokeMethodOptions)

Invokes the specified method on the provided grain interface.

InvokeMethodAsync<T>(GrainReference, IInvokable, InvokeMethodOptions)

Invokes the specified method on the provided grain interface.

InvokeMethodAsync<T>(GrainReference, Int32, Object[], InvokeMethodOptions, SiloAddress)

Invokes a method on a remote object.

InvokeMethodAsync(GrainReference, IInvokable, InvokeMethodOptions)

Invokes the specified method on the provided grain interface.

public System.Threading.Tasks.ValueTask InvokeMethodAsync (Orleans.Runtime.GrainReference reference, Orleans.Serialization.Invocation.IInvokable request, Orleans.CodeGeneration.InvokeMethodOptions options);
abstract member InvokeMethodAsync : Orleans.Runtime.GrainReference * Orleans.Serialization.Invocation.IInvokable * Orleans.CodeGeneration.InvokeMethodOptions -> System.Threading.Tasks.ValueTask
Public Function InvokeMethodAsync (reference As GrainReference, request As IInvokable, options As InvokeMethodOptions) As ValueTask

Parameters

reference
GrainReference

The grain reference.

request
IInvokable

The method description.

options
InvokeMethodOptions

The invocation options.

Returns

A ValueTask representing the operation

Applies to

InvokeMethodAsync<T>(GrainReference, IInvokable, InvokeMethodOptions)

Invokes the specified method on the provided grain interface.

public System.Threading.Tasks.ValueTask<T> InvokeMethodAsync<T> (Orleans.Runtime.GrainReference reference, Orleans.Serialization.Invocation.IInvokable request, Orleans.CodeGeneration.InvokeMethodOptions options);
abstract member InvokeMethodAsync : Orleans.Runtime.GrainReference * Orleans.Serialization.Invocation.IInvokable * Orleans.CodeGeneration.InvokeMethodOptions -> System.Threading.Tasks.ValueTask<'T>
Public Function InvokeMethodAsync(Of T) (reference As GrainReference, request As IInvokable, options As InvokeMethodOptions) As ValueTask(Of T)

Type Parameters

T

The underlying return type of the method.

Parameters

reference
GrainReference

The grain reference.

request
IInvokable

The method description.

options
InvokeMethodOptions

The invocation options.

Returns

The result of invocation.

Applies to

InvokeMethodAsync<T>(GrainReference, Int32, Object[], InvokeMethodOptions, SiloAddress)

Source:
IGrainReferenceRuntime.cs

Invokes a method on a remote object.

public System.Threading.Tasks.Task<T> InvokeMethodAsync<T> (Orleans.Runtime.GrainReference reference, int methodId, object[] arguments, Orleans.CodeGeneration.InvokeMethodOptions options, Orleans.Runtime.SiloAddress silo);
abstract member InvokeMethodAsync : Orleans.Runtime.GrainReference * int * obj[] * Orleans.CodeGeneration.InvokeMethodOptions * Orleans.Runtime.SiloAddress -> System.Threading.Tasks.Task<'T>
Public Function InvokeMethodAsync(Of T) (reference As GrainReference, methodId As Integer, arguments As Object(), options As InvokeMethodOptions, silo As SiloAddress) As Task(Of T)

Type Parameters

T

The result type

Parameters

reference
GrainReference

The reference to the addressable target.

methodId
Int32

The method to invoke.

arguments
Object[]

The method payload.

options
InvokeMethodOptions

Invocation options.

silo
SiloAddress

The target silo.

Returns

Task<T>

Returns the response from the remote object.

Applies to