Skip to content

IGrainFactory.GetGrain(Type, IdSpan)

GetGrain(Type, IdSpan)

abstract
public abstract IAddressable GetGrain(Type interfaceType, IdSpan grainKey)
Returns a reference for the provided grain id which implements the specified interface type.

Parameters

interfaceTypeType
The grain interface type which the returned grain reference must implement.
grainKeyIdSpan
The primary key of the grain

Returns

A reference for the provided grain id which implements the specified interface type.