SiloLifecycleSubject
class
Namespace: Orleans.Runtime
Decorator over lifecycle subject for silo. Adds some logging and monitoring
public class SiloLifecycleSubject : LifecycleSubject, ILifecycleObservable, ILifecycleObserver, ISiloLifecycle, ISiloLifecycleSubjectConstructors
SiloLifecycleSubject(ILogger<SiloLifecycleSubject>)Initializes a new instance of theSiloLifecycleSubjectclass.SiloLifecycleSubject(ILogger<SiloLifecycleSubject>, ILocalSiloDetails?)Initializes a new instance of theSiloLifecycleSubjectclass.
Properties
HighestCompletedStageThe highest lifecycle stage which has completed starting.LowestStoppedStageThe lowest lifecycle stage which has completed stopping.
Methods
GetStageName(int)Gets the name of the specified numeric stage.OnStart(CancellationToken)Handle start notifications.OnStartStageCompleted(int)Signifies thatLifecycleSubjectcompleted.OnStop(CancellationToken)Handle stop notifications.OnStopStageCompleted(int)Signifies thatLifecycleSubjectcompleted.PerfMeasureOnStart(int, TimeSpan)Logs the observed performance of anLifecycleSubjectcall.PerfMeasureOnStop(int, TimeSpan)Logs the observed performance of anLifecycleSubjectcall.Subscribe(string, int, ILifecycleObserver)Subscribe for notification when a stage is reached while starting or stopping.
