SiloLifecycleSubject.Subscribe(String, Int32, ILifecycleObserver) Method
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.
Subscribe for notification when a stage is reached while starting or stopping.
public override IDisposable Subscribe (string observerName, int stage, Orleans.ILifecycleObserver observer);
override this.Subscribe : string * int * Orleans.ILifecycleObserver -> IDisposable
Public Overrides Function Subscribe (observerName As String, stage As Integer, observer As ILifecycleObserver) As IDisposable
Parameters
- observerName
- String
The name of the observer, for reporting purposes.
- stage
- Int32
The stage of to subscribe to.
- observer
- ILifecycleObserver
The observer.
Returns
A disposable that can be disposed of to unsubscribe.