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

ReactiveUI.Primitives.Advanced.UniqueByWitness<T, TKey>

public sealed class UniqueByWitness<T, TKey> : IObserver<T>, IDisposable
Sink that suppresses adjacent values whose projected key matches the previous one.
public UniqueByWitness(IObserver<T> observer, Func<T, TKey> keySelector, IEqualityComparer<TKey> comparer)

Sink that suppresses adjacent values whose projected key matches the previous one.

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 the incoming one when this sink holds a subscription or has been disposed.