Table of Contents

Class EventListener

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

Creates instances of IEventListener<TEvent> type.

public static class EventListener
Inheritance
EventListener
Inherited Members

Methods

Create<TEvent>(Action<TEvent>)

Creates a new IEventListener<TEvent> instance.

[Pure]
public static IEventListener<TEvent> Create<TEvent>(Action<TEvent> react)

Parameters

react Action<TEvent>

Reaction delegate.

Returns

IEventListener<TEvent>

New IEventListener<TEvent> instance.

Type Parameters

TEvent

Event type.

Create<TEvent>(Action<TEvent>, Action<DisposalSource>)

Creates a new IEventListener<TEvent> instance.

[Pure]
public static IEventListener<TEvent> Create<TEvent>(Action<TEvent> react, Action<DisposalSource> onDispose)

Parameters

react Action<TEvent>

Reaction delegate.

onDispose Action<DisposalSource>

Disposal delegate.

Returns

IEventListener<TEvent>

New IEventListener<TEvent> instance.

Type Parameters

TEvent

Event type.