<PackageReference Include="ReactiveUI.Primitives" Version="8.1.0" />

ReactiveUI.Primitives.Advanced.EventHandlerScope

public static class EventHandlerScope
Owns one subscription's event-handler attachment for the event bridge signals.
public static IDisposable Attach<TEventHandler>(TEventHandler handler, Action<TEventHandler> addHandler, Action<TEventHandler> removeHandler, ISequencer scheduler)

Attaches a handler and returns the disposable that detaches that same handler.