Subscribe(ILifecycleObservable, int, ILifecycleObserver)
staticextension
public static IDisposable Subscribe(this ILifecycleObservable observable, int stage, ILifecycleObserver observer) Creates a disposable subscription to the lifecycle.
Parameters
observableILifecycleObservable- The lifecycle observable.
stageint- The stage to participate in.
observerILifecycleObserver- The observer.
Returns
A
System.IDisposable instance which can be disposed to unsubscribe the observer from the lifecycle.