GrainServiceClient<TGrainService> Class

Definition

Proxies requests to the appropriate GrainService based on the appropriate Ring partitioning strategy.

public abstract class GrainServiceClient<TGrainService> : Orleans.Services.IGrainServiceClient<TGrainService> where TGrainService : IGrainService
type GrainServiceClient<'GrainService (requires 'GrainService :> IGrainService)> = class
    interface IGrainServiceClient<'GrainService (requires 'GrainService :> IGrainService)>
Public MustInherit Class GrainServiceClient(Of TGrainService)
Implements IGrainServiceClient(Of TGrainService)

Type Parameters

TGrainService
Inheritance
GrainServiceClient<TGrainService>
Implements

Constructors

GrainServiceClient<TGrainService>(IServiceProvider)

Currently we only support a single GrainService per Silo, when multiple are supported we will request the number of GrainServices to partition per silo here.

Properties

CallingGrainReference

Resolves the Grain Reference invoking this request.

CurrentGrainReference

Gets a reference to the the currently executing grain.

GrainService

Resolves the correct GrainService responsible for actioning the request based on the CallingGrainReference

Methods

GetGrainService(GrainId)

Get a reference to the GrainService responsible for actioning the request based on the callingGrainId.

GetGrainService(SiloAddress)

Get a reference to the GrainService responsible for actioning the request based on the destination.

GetGrainService(UInt32)

Get a reference to the GrainService responsible for actioning the request based on the key.

Applies to