Table of Contents

Class WhenAllEventSource<TEvent>

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

Represents a generic disposable event source that can be listened to, that notifies its listeners once all inner event sources are disposed, with a sequence of last inner event source events, and then disposes the listener.

public sealed class WhenAllEventSource<TEvent> : EventSource<ReadOnlyMemory<TEvent?>>, IEventSource<ReadOnlyMemory<TEvent?>>, IEventStream<ReadOnlyMemory<TEvent?>>, IEventSource, IEventStream, IDisposable

Type Parameters

TEvent

Event type.

Inheritance
WhenAllEventSource<TEvent>
Implements
Inherited Members
Extension Methods

Methods

OnDispose()

Allows to provide custom disposal implementation.

protected override void OnDispose()

OverrideListener(IEventSubscriber, IEventListener<ReadOnlyMemory<TEvent?>>)

Allows to override the event listener.

protected override IEventListener<ReadOnlyMemory<TEvent?>> OverrideListener(IEventSubscriber subscriber, IEventListener<ReadOnlyMemory<TEvent?>> listener)

Parameters

subscriber IEventSubscriber

Event subscriber.

listener IEventListener<ReadOnlyMemory<TEvent>>

Event listener to override.

Returns

IEventListener<ReadOnlyMemory<TEvent>>

IEventListener<TEvent> instance.