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

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

public sealed class DistinctByWitness<T, TKey> : IObserver<T>, IDisposable
Sink that forwards the first value seen for each key the selector produces.
public DistinctByWitness(IObserver<T> observer, Func<T, TKey> keySelector, IEqualityComparer<TKey> comparer)

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

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.