# SiloLifecycleSubject.Subscribe(string, int, ILifecycleObserver)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.silolifecyclesubject/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.silolifecyclesubject/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Lifecycle/SiloLifecycleSubject.cs#L102-L104)

```csharp
public override 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.
