AsReference(IAddressable)
staticextension
public static TGrainInterface AsReference<TGrainInterface>(this IAddressable grain) Returns a typed reference to the provided grain.
Parameters
grainIAddressable- The grain to convert.
Returns
A strongly typed reference to the provided grain which implements
TGrainInterface.