Skip to content

IGrainFactory.GetGrain(Type, IdSpan, string)

GetGrain(Type, IdSpan, string)

abstract
public abstract IAddressable GetGrain(Type interfaceType, IdSpan grainKey, string grainClassNamePrefix)
Returns a reference for the provided grain id which implements the specified interface type.

Parameters

interfaceTypeType
The grain interface type which the returned grain reference must implement.
grainKeyIdSpan
The primary key of the grain
grainClassNamePrefixstring
A class name prefix used to find the runtime type of the grain.

Returns

A reference for the provided grain id which implements the specified interface type.