Skip to content

IGrainFactory.GetGrain(long, string, string?)

GetGrain(long, string, string?)

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

Parameters

primaryKeylong
The primary key of the grain.
keyExtensionstring
The key extension 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.