Edit

Share via


SiloLifecycleSubject.Subscribe(String, Int32, ILifecycleObserver) Method

Definition

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.

Implements

Applies to