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

ReactiveUI.Primitives.Advanced.SliceCountWitness<T>

public sealed class SliceCountWitness<T> : IObserver<T>, IDisposable
Sink that hands out a window signal holding a fixed number of values, opening a new window every skip values.

Gets the subscription handed to the outer subscriber; the source stays subscribed while any window is.

public SliceCountWitness(IObserver<IObservable<T>> observer, int count, int skip)

Initializes a new instance of the SliceCountWitness<T> 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.

public void Start()

Opens the first window before the source is subscribed.