# ILifecycleObservable Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.ilifecycleobservable/)

## Subscribe(string, int, ILifecycleObserver) {#subscribe-string-int-orleans-ilifecycleobserver-5ceba0de}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.ilifecycleobservable/methods/subscribe-string-int-orleans-ilifecycleobserver-5ceba0de/)

```csharp
public abstract IDisposable Subscribe(string observerName, int stage, ILifecycleObserver observer)
```

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

### Parameters

- `observerName` (`string`): The name of the observer, for reporting purposes.
- `stage` (`int`): The stage of to subscribe to.
- `observer` (`ILifecycleObserver`): The observer.

### Returns

A disposable that can be disposed of to unsubscribe.
