Skip to content

IGrainFactory.GetGrain(GrainId, GrainInterfaceType)

GetGrain(GrainId, GrainInterfaceType)

abstract
public abstract IAddressable GetGrain(GrainId grainId, GrainInterfaceType interfaceType)
Returns a reference for the provided grain id which implements the specified interface type.

Parameters

grainIdGrainId
The grain id.
interfaceTypeGrainInterfaceType
The interface type which the returned grain reference must implement.

Returns

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