GrainServiceClient<TGrainService>
class
Namespace: Orleans.Runtime.Services
Proxies requests to the appropriate GrainService based on the appropriate Ring partitioning strategy.
public abstract class GrainServiceClient<TGrainService> : IGrainServiceClient<TGrainService> where TGrainService : Orleans.Services.IGrainServiceConstructors
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
CurrentGrainReferenceGets a reference to the the currently executing grain.
Methods
GetGrainService(GrainId)Get a reference to theGrainServiceresponsible for actioning the request based on thecallingGrainId.GetGrainService(SiloAddress)Get a reference to theGrainServiceresponsible for actioning the request based on thedestination.GetGrainService(uint)Get a reference to theGrainServiceresponsible for actioning the request based on thekey.
