Table of Contents

Class EventPublisher<TEvent>

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

Represents a generic disposable event source that can be listened to.

public class EventPublisher<TEvent> : EventSource<TEvent>, IEventPublisher<TEvent>, IEventSource<TEvent>, IEventStream<TEvent>, IEventPublisher, IEventSource, IEventStream, IDisposable

Type Parameters

TEvent

Event type.

Inheritance
EventSource<TEvent>
EventPublisher<TEvent>
Implements
IEventSource<TEvent>
IEventStream<TEvent>
Derived
Inherited Members
Extension Methods

Methods

OnPublish(TEvent)

Allows to react to event publishing.

protected virtual void OnPublish(TEvent @event)

Parameters

event TEvent

Event to publish.

Publish(TEvent)

Publishes an event that notifies all current event listeners.

public void Publish(TEvent @event)

Parameters

event TEvent

Event to publish.