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

ReactiveUI.Primitives.Extensions.CurrentValueSubject<T>

public sealed class CurrentValueSubject<T> : IObservable<T>, IObserver<T>, IDisposable
Stores the latest value, replays it to new subscribers, and broadcasts updates outside the state lock.
public T Value { get; }

Gets the most recently emitted value.

public CurrentValueSubject(T initialValue)

Initializes a new instance of the CurrentValueSubject<T> class with the supplied current value.

Returns an IObservable<T> view that hides the IObserver<T> side.

public void Dispose()

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(T value)

public IDisposable Subscribe(IObserver<T> observer)