Show / Hide Table of Contents

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 Source

Subscribe(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

Extension Methods

LifecycleExtensions.Subscribe(ILifecycleObservable, String, Int32, Func<CancellationToken, Task>, Func<CancellationToken, Task>)
LifecycleExtensions.Subscribe(ILifecycleObservable, String, Int32, Func<CancellationToken, Task>)
LifecycleExtensions.Subscribe<TObserver>(ILifecycleObservable, Int32, ILifecycleObserver)
LifecycleExtensions.Subscribe<TObserver>(ILifecycleObservable, Int32, Func<CancellationToken, Task>, Func<CancellationToken, Task>)
LifecycleExtensions.Subscribe<TObserver>(ILifecycleObservable, Int32, Func<CancellationToken, Task>)
LifecycleExtensions.Subscribe(ILifecycleObservable, Int32, ILifecycleObserver)
ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX