Interface IGrainRuntime
The gateway of the Grain to the Orleans runtime. The Grain should only interact with the runtime through this interface.
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IGrainRuntime
Properties
|
Improve this Doc
View Source
GrainFactory
Declaration
IGrainFactory GrainFactory { get; }
Property Value
|
Improve this Doc
View Source
ReminderRegistry
Declaration
IReminderRegistry ReminderRegistry { get; }
Property Value
|
Improve this Doc
View Source
ServiceId
Provides the ServiceId this cluster is running as.
ServiceId's are intended to be long lived Id values for a particular service which will remain constant
even if the service is started / redeployed multiple times during its operations life.
Declaration
Property Value
Type |
Description |
Guid |
ServiceID Guid for this service.
|
|
Improve this Doc
View Source
ServiceProvider
Declaration
IServiceProvider ServiceProvider { get; }
Property Value
Type |
Description |
IServiceProvider |
|
|
Improve this Doc
View Source
SiloAddress
Declaration
SiloAddress SiloAddress { get; }
Property Value
|
Improve this Doc
View Source
SiloIdentity
A unique identifier for the current silo.
There is no semantic content to this string, but it may be useful for logging.
Declaration
string SiloIdentity { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TimerRegistry
Declaration
ITimerRegistry TimerRegistry { get; }
Property Value
Methods
|
Improve this Doc
View Source
DeactivateOnIdle(Grain)
Declaration
void DeactivateOnIdle(Grain grain)
Parameters
Type |
Name |
Description |
Grain |
grain |
|
|
Improve this Doc
View Source
DelayDeactivation(Grain, TimeSpan)
Declaration
void DelayDeactivation(Grain grain, TimeSpan timeSpan)
Parameters
Type |
Name |
Description |
Grain |
grain |
|
TimeSpan |
timeSpan |
|
|
Improve this Doc
View Source
GetStorage<TGrainState>(Grain)
Declaration
IStorage<TGrainState> GetStorage<TGrainState>(Grain grain)where TGrainState : new ()
Parameters
Type |
Name |
Description |
Grain |
grain |
|
Returns
Type Parameters
Name |
Description |
TGrainState |
|
Extension Methods