Table of Contents

Class EventHandlerSource<TEvent>

Namespace
LfrlAnvil.Reactive
Assembly
LfrlAnvil.Reactive.Core.dll

Represents a generic disposable event source that can be listened to created from an EventHandler<TEventArgs>.

public sealed class EventHandlerSource<TEvent> : EventSource<WithSender<TEvent>>, IEventSource<WithSender<TEvent>>, IEventStream<WithSender<TEvent>>, IEventSource, IEventStream, IDisposable

Type Parameters

TEvent

Event type.

Inheritance
EventHandlerSource<TEvent>
Implements
Inherited Members
Extension Methods

Constructors

EventHandlerSource(Action<EventHandler<TEvent>>, Action<EventHandler<TEvent>>)

Creates a new EventHandlerSource<TEvent> instance.

public EventHandlerSource(Action<EventHandler<TEvent>> setup, Action<EventHandler<TEvent>> teardown)

Parameters

setup Action<EventHandler<TEvent>>

Delegate that handles initialization of this event source.

teardown Action<EventHandler<TEvent>>

Delegate that handles disposal of this event source.

Methods

OnDispose()

Allows to provide custom disposal implementation.

protected override void OnDispose()