Skip to content

Grain Properties

The abstract base class for all grain classes.

GrainFactory

get
View source
protected IGrainFactory GrainFactory
Gets an object which can be used to access other grains. Null if this grain is not associated with a Runtime, such as when created directly for unit testing.

IdentityString

get
View source
public string IdentityString
String representation of grain's SiloIdentity including type and primary key.

RuntimeIdentity

get
View source
public string RuntimeIdentity
A unique identifier for the current silo. There is no semantic content to this string, but it may be useful for logging.

ServiceProvider

get
View source
protected internal IServiceProvider ServiceProvider
Gets the IServiceProvider managed by the runtime. Null if this grain is not associated with a Runtime, such as when created directly for unit testing.