Skip to content

IGrainFactory.GetGrain(long, string?)

GetGrain(long, string?)

abstract
public abstract TGrainInterface GetGrain<TGrainInterface>(long primaryKey, string? grainClassNamePrefix = null)
Gets a reference to a grain.

Parameters

primaryKeylong
The primary key of the grain.
grainClassNamePrefixstring?
An optional class name prefix used to find the runtime type of the grain.

Returns

A reference to the specified grain.