<PackageReference Include="ReactiveUI.Primitives.Core" Version="8.3.0" />

ReactiveUI.Primitives.Extensions.Operators.DoOnDisposeObservable<T>

public sealed class DoOnDisposeObservable<T> : IObservable<T>
Forwards the source and runs an action exactly once when the subscription is disposed, after the upstream subscription is released.
public DoOnDisposeObservable(IObservable<T> source, Action disposeAction)

Forwards the source and runs an action exactly once when the subscription is disposed, after the upstream subscription is released.

public IDisposable Subscribe(IObserver<T> observer)