Show / Hide Table of Contents

Interface IGrainRuntime

The gateway of the Grain to the Orleans runtime. The Grain should only interact with the runtime through this interface.

Namespace: Orleans.Runtime
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IGrainRuntime

Properties

| Improve this Doc View Source

GrainFactory

Declaration
IGrainFactory GrainFactory { get; }
Property Value
Type Description
IGrainFactory
| Improve this Doc View Source

ReminderRegistry

Declaration
IReminderRegistry ReminderRegistry { get; }
Property Value
Type Description
IReminderRegistry
| 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
Guid ServiceId { get; }
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
Type Description
SiloAddress
| 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
Type Description
ITimerRegistry

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 Description
IStorage<TGrainState>
Type Parameters
Name Description
TGrainState

Extension Methods

LoggerExtensionMethods.GetLogger(IGrainRuntime, String)
ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX