<PackageReference Include="ReactiveUI.Primitives.Core" Version="8.0.0" />
ReactiveUI.Primitives.Advanced.DistinctByWitness<T, TKey>
Sink that forwards the first value seen for each key the selector produces.
namespace ReactiveUI.
Primitives.
Advanced
{
public sealed class DistinctByWitness<[
Nullable(
2)]
T, [
Nullable(
2)]
TKey> :
IObserver<
T>,
IDisposable
{
public DistinctByWitness(
IObserver<
T>
observer,
Func<
T,
TKey>
keySelector,
IEqualityComparer<
TKey>
comparer);
public void OnNext(
T value);
public void OnError(
Exception error);
public void OnCompleted();
public void SetSubscription(
IDisposable subscription);
public void Dispose();
}
}