Skip to content

IGrainFactory.GetGrain(Type, Guid)

GetGrain(Type, Guid)

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

Returns

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