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

ReactiveUI.Primitives.Advanced.TapWitness<T>

public sealed class TapWitness<T> : IObserver<T>, IDisposable
Sink that runs side-effects before forwarding each notification.
public TapWitness(IObserver<T> observer, Action<T> onNext, Action<Exception> onError, Action onCompleted)

Sink that runs side-effects before forwarding each notification.

public void Dispose()

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(T value)

public void SetSubscription(IDisposable subscription)

Assigns the upstream subscription, disposing it if one is already held.