Class BufferedEventSource<TEventArgs>
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
TEventArgsThe type of the event's payload.
- Inheritance
-
System.ObjectBufferedEventSource<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()