GrainExtensions
class
Namespace: Orleans
Extension methods for grains.
public static class GrainExtensionsMethods
AsReference(IAddressable)Returns a typed reference to the provided grain.AsReference(IAddressable, Type)Returns a typed reference to the provided grain.Cast(IAddressable)Returns a typed reference to the provided grain.Cast(IAddressable, Type)Returns a typed reference to the provided grain.GetGrainId(IAddressable)Returns the grain id corresponding to the provided grain.GetPrimaryKey(IAddressable)Returns theSystem.Guidrepresentation of a grain primary key.GetPrimaryKey(IAddressable, string?)Returns theSystem.Guidrepresentation of a grain primary key.GetPrimaryKeyLong(IAddressable)Returns thelongrepresentation of a grain primary key.GetPrimaryKeyLong(IAddressable, string?)Returns thelongrepresentation of a grain primary key.GetPrimaryKeyString(IAddressable)Returns thestringprimary key of the grain.IsPrimaryKeyBasedOnLong(IAddressable)Returns whether part of the primary key is of typelong.
