Class ConcurrentEventPublisher<TEvent, TPublisher>
Represents a concurrent version of an EventPublisher<TEvent>.
public class ConcurrentEventPublisher<TEvent, TPublisher> : ConcurrentEventSource<TEvent, TPublisher>, IEventPublisher<TEvent>, IEventSource<TEvent>, IEventStream<TEvent>, IEventPublisher, IEventSource, IEventStream, IDisposable where TPublisher : EventPublisher<TEvent>
Type Parameters
TEvent
Event type.
TPublisher
Underlying event publisher type.
- Inheritance
-
ConcurrentEventSource<TEvent, TPublisher>ConcurrentEventPublisher<TEvent, TPublisher>
- Implements
-
IEventPublisher<TEvent>IEventSource<TEvent>IEventStream<TEvent>
- Derived
- Inherited Members
- Extension Methods
Constructors
ConcurrentEventPublisher(TPublisher)
Creates a new ConcurrentEventPublisher<TEvent, TPublisher> instance.
protected ConcurrentEventPublisher(TPublisher @base)
Parameters
base
TPublisherUnderlying event publisher.
Methods
Publish(TEvent)
Publishes an event that notifies all current event listeners.
public void Publish(TEvent @event)
Parameters
event
TEventEvent to publish.