Skip to content

IGrainFactory.GetGrain(Type, Guid, string)

GetGrain(Type, Guid, string)

abstract
public abstract IGrain GetGrain(Type grainInterfaceType, Guid 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.
grainPrimaryKeyGuid
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.