Table of Contents

Class BufferedEventSource<TEventArgs>

Namespace
RxSharp.Extras
Assembly
RxSharp.dll

A handle to an eagerly-attached, buffered .NET event source created by FromEventBuffered<TDelegate, TEventArgs>(Action<TDelegate>, Action<TDelegate>, Func<Action<TEventArgs>, TDelegate>, int). Disposing detaches the underlying event handler.

public sealed class BufferedEventSource<TEventArgs> : IDisposable

Type Parameters

TEventArgs

The type of the event's payload.

Inheritance
System.Object
BufferedEventSource<TEventArgs>

Methods

AsObservable()

Exposes the buffered event payloads as an Observable<T>. Each subscriber first receives any payloads buffered since this source was created, then live payloads as they arrive - exactly like subscribing to a ReplaySubject<T> directly, because that is what this wraps.

public Observable<TEventArgs> AsObservable()

Returns

Observable<TEventArgs>

An observable over this source's buffered and live event payloads.

Dispose()

Detaches the underlying event handler and disposes the buffer. Safe to call more than once.

public void Dispose()