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

ReactiveUI.Primitives.Signals.TapWithSignal<T, TState>

public sealed class TapWithSignal<T, TState> : IRequireCurrentThread<T>, IObservable<T>
Invokes the supplied action with each source value and state, then forwards the value unchanged.
public TapWithSignal(IObservable<T> source, TState state, Action<TState, T> onNext)

Initializes a new instance of the TapWithSignal<T, U> class.

public static IObservable<T> Create(IObservable<T> source, TState state, Action<TState, T> onNext)

Creates a stateful side-effect sequence with empty/never short-circuiting.

Determines whether the sink must subscribe on the current thread.

public IDisposable Subscribe(IObserver<T> observer)

Subscribes the observer to the tapped sequence.