Skip to content

IGrainFactory.GetGrain(Type, long, string)

GetGrain(Type, long, string)

abstract
public abstract IGrain GetGrain(Type grainInterfaceType, long grainPrimaryKey, string keyExtension)
Returns a reference to the grain which is the primary implementation of the provided interface type and has the provided primary key.

Parameters

grainInterfaceTypeType
The grain interface type which the returned grain reference must implement.
grainPrimaryKeylong
The primary key of the grain
keyExtensionstring
The grain key extension component.

Returns

A reference to the grain which is the primary implementation of the provided interface type and has the provided primary key.