SiloLifecycleSubject Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Decorator over lifecycle subject for silo. Adds some logging and monitoring
public class SiloLifecycleSubject : Orleans.LifecycleSubject, Orleans.Runtime.ISiloLifecycleSubject
type SiloLifecycleSubject = class
inherit LifecycleSubject
interface ISiloLifecycleSubject
interface ISiloLifecycle
interface ILifecycleObservable
interface ILifecycleObserver
Public Class SiloLifecycleSubject
Inherits LifecycleSubject
Implements ISiloLifecycleSubject
- Inheritance
- Implements
Constructors
SiloLifecycleSubject(ILogger<SiloLifecycleSubject>) |
Initializes a new instance of the SiloLifecycleSubject class. |
Fields
logger | (Inherited from LifecycleSubject) |
Properties
HighestCompletedStage |
The highest lifecycle stage which has completed starting. |
LowestStoppedStage |
The lowest lifecycle stage which has completed stopping. |
Methods
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
OnStart(ILifecycleObserver) | |
OnStop(ILifecycleObserver) | |
Subscribe(ILifecycleObservable, Int32, ILifecycleObserver) |
Creates a disposable subscription to the lifecycle. |
Subscribe(ILifecycleObservable, String, Int32, Func<CancellationToken,Task>) |
Creates a disposable subscription to the lifecycle. |
Subscribe(ILifecycleObservable, String, Int32, Func<CancellationToken,Task>, Func<CancellationToken,Task>) |
Creates a disposable subscription to the lifecycle. |
Subscribe<TObserver>(ILifecycleObservable, Int32, ILifecycleObserver) |
Creates a disposable subscription to the lifecycle. |
Subscribe<TObserver>(ILifecycleObservable, Int32, Func<CancellationToken,Task>) |
Creates a disposable subscription to the lifecycle. |
Subscribe<TObserver>(ILifecycleObservable, Int32, Func<CancellationToken,Task>, Func<CancellationToken,Task>) |
Creates a disposable subscription to the lifecycle. |