Class WhenAllEventSource<TEvent>
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
-
EventSource<ReadOnlyMemory<TEvent>>WhenAllEventSource<TEvent>
- Implements
-
IEventSource<ReadOnlyMemory<TEvent>>IEventStream<ReadOnlyMemory<TEvent>>
- 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
IEventSubscriberEvent subscriber.
listener
IEventListener<ReadOnlyMemory<TEvent>>Event listener to override.
Returns
- IEventListener<ReadOnlyMemory<TEvent>>
IEventListener<TEvent> instance.