Class DelayedEventAggregator<T>
A class which aggregates events and uses a buffer to delay publication.
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Events
Assembly: GameStateTracker.Events.dll
Syntax
public class DelayedEventAggregator<T> : EventAggregator<T>, IEventAggregator<T>, IEventPublisher<T>, IEventProcessor where T : class
Type Parameters
Name | Description |
---|---|
T | The event type. |
Remarks
Initializes a new instance of the DelayedEventAggregator<T> class.
Constructors
View SourceDelayedEventAggregator(params IEventPublisher<T>[])
A class which aggregates events and uses a buffer to delay publication.
Declaration
public DelayedEventAggregator(params IEventPublisher<T>[] publishers)
Parameters
Type | Name | Description |
---|---|---|
IEventPublisher<T>[] | publishers | The event publishers to aggregate events from. |
Remarks
Initializes a new instance of the DelayedEventAggregator<T> class.
Methods
View SourceProcessEvents()
Publishes delayed events from the buffer and clears it.
Declaration
public void ProcessEvents()
Publish(object?, T)
Publishes an event.
Declaration
protected override void Publish(object? sender, T e)
Parameters
Type | Name | Description |
---|---|---|
object | sender | The event source. |
T | e | The event. |