SiloLifecycleSubject Class

Definition

Decorator over lifecycle subject for silo. Adds some logging and monitoring

C#
public class SiloLifecycleSubject : Orleans.LifecycleSubject, Orleans.Runtime.ISiloLifecycleSubject
Inheritance
SiloLifecycleSubject
Implements

Constructors

Fields

logger (Inherited from LifecycleSubject)
Logger (Inherited from LifecycleSubject)

Properties

HighestCompletedStage

The highest lifecycle stage which has completed starting.

LowestStoppedStage

The lowest lifecycle stage which has completed stopping.

Methods

CallObserverStopAsync(ILifecycleObserver, CancellationToken) (Inherited from LifecycleSubject)
GetStageName(Int32)

Gets the name of the specified numeric stage.

OnStart(CancellationToken)

Handle start notifications.

OnStartStageCompleted(Int32)

Signifies that OnStart(CancellationToken) completed.

OnStop(CancellationToken)

Handle stop notifications.

(Inherited from LifecycleSubject)
OnStopStageCompleted(Int32)

Signifies that OnStop(CancellationToken) completed.

PerfMeasureOnStart(Int32, TimeSpan)

Logs the observed performance of an OnStart(CancellationToken) call.

PerfMeasureOnStop(Int32, TimeSpan)

Logs the observed performance of an OnStop(CancellationToken) call.

Subscribe(String, Int32, ILifecycleObserver)

Subscribe for notification when a stage is reached while starting or stopping.

Extension Methods

Applies to

Toode Versioonid
.NET Orleans 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0