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

ReactiveUI.Primitives.Advanced.ValueCaptureWitness<T>

public sealed class ValueCaptureWitness<T> : IObserver<T>
Observer that captures the last value seen during synchronous subscribe.
public T Value { get; }

Gets the captured value, or default if none.

public static T SubscribeGetValue(IObservable<T> source)

Subscribes to source and returns the last value emitted during the synchronous subscribe call.

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(T value)