Skip to content

IGrainFactory.GetGrain(string, string?)

GetGrain(string, string?)

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

Parameters

primaryKeystring
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.