GetGrain(IGrainFactory, IdSpan)
staticextension
public static TGrainInterface GetGrain<TGrainInterface>(this IGrainFactory grainFactory, IdSpan grainPrimaryKey) Returns a reference for the provided grain id which implements the specified interface type.
Parameters
grainFactoryIGrainFactory- The grain factory.
grainPrimaryKeyIdSpan- The primary key of the grain
Returns
A reference for the provided grain id which implements the specified interface type.
