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

ReactiveUI.Primitives.Advanced.DistinctWitness<T>

public sealed class DistinctWitness<T> : IObserver<T>, IDisposable
Sink that forwards the first occurrence of each value.
public DistinctWitness(IObserver<T> observer, HashSet<T> seen)

Sink that forwards the first occurrence of each value.

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.