Edytuj

Udostępnij za pośrednictwem


ILifecycleObservable.Subscribe(String, Int32, ILifecycleObserver) Method

Definition

Subscribe for notification when a stage is reached while starting or stopping.

public IDisposable Subscribe (string observerName, int stage, Orleans.ILifecycleObserver observer);
abstract member Subscribe : string * int * Orleans.ILifecycleObserver -> IDisposable
Public 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.

Applies to