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

ReactiveUI.Primitives.Advanced.SliceOpeningWitness<T, TOpening, TClosing>

public sealed class SliceOpeningWitness<T, TOpening, TClosing> : IObserver<T>, IDisposable
Sink that hands out a window signal each time an opening signal emits, and ends each window when its closing signal fires.
public IObserver<TOpening> Openings { get; }

Gets the observer to subscribe to the opening signal.

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

public SliceOpeningWitness(IObserver<IObservable<T>> observer, Func<TOpening, IObservable<TClosing>> closingSelector)

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

public void Dispose()

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(T value)

public void SetSubscription(IDisposable subscription)

Assigns an upstream subscription, disposing the incoming one when this sink has been disposed.