Skip to content

IGrainFactory.GetGrain(Guid, string, string?)

GetGrain(Guid, string, string?)

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

Parameters

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