IGrainRuntime Interface

Definition

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

public interface IGrainRuntime
type IGrainRuntime = interface
Public Interface IGrainRuntime

Properties

GrainFactory

Gets the grain factory.

ReminderRegistry
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.

ServiceProvider

Gets the service provider.

SiloAddress

Gets the silo address associated with this instance.

SiloIdentity

Gets a unique identifier for the current silo. There is no semantic content to this string, but it may be useful for logging.

StreamProviderManager
TimerRegistry

Gets the timer registry.

Methods

DeactivateOnIdle(Grain)
DeactivateOnIdle(IGrainContext)

Deactivates the provided grain when it becomes idle.

DelayDeactivation(Grain, TimeSpan)
DelayDeactivation(IGrainContext, TimeSpan)

Delays idle activation collection of the provided grain due to inactivity until at least the specified time has elapsed.

GetLogger(String)
GetStorage<TGrainState>(Grain)
GetStorage<TGrainState>(IGrainContext)

Gets grain storage for the provided grain.

Extension Methods

GetLogger(IGrainRuntime, String)

Extension method GetLogger for IGrainRuntime

Applies to