Interface ILifecycleObservable
Observable lifecycle. Each stage of lifecycle is observable. All observers will be notified when the stage is reached when starting, and stopping. Stages are started in ascending order, and stopped in decending order.
Namespace: Orleans
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface ILifecycleObservable
Methods
| Improve this Doc View SourceSubscribe(String, Int32, ILifecycleObserver)
Subscribe for notification when a stage is reached while starting or stopping.
Declaration
IDisposable Subscribe(string observerName, int stage, ILifecycleObserver observer)
Parameters
Type | Name | Description |
---|---|---|
System.String | observerName | name of observer, for reporting purposes |
System.Int32 | stage | stage of interest |
ILifecycleObserver | observer | stage observer |
Returns
Type | Description |
---|---|
IDisposable | A disposable that can be disposed of to unsubscribe |