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

ReactiveUI.Primitives.Advanced.AggregateWitness<T, TResult, TAggregator>

public sealed class AggregateWitness<T, TResult, TAggregator> : IObserver<T>, IDisposable where TAggregator : struct, IAggregator<T, TResult, TAggregator>
Folds source values through an immutable accumulator and emits the result when the source completes.
public AggregateWitness(IObserver<TResult> observer, TAggregator aggregator)

Folds source values through an immutable accumulator and emits the result when the source completes.

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.