Subscribes a new handler for the given TEvent type.
- Namespace
- Statiq
.Common - Containing Type
- I
Event Collection Extensions
Syntax
public static void Subscribe<TEvent>(this IEventCollection eventCollection, EventHandler<TEvent> handler)
Type Parameters
Name | Description |
---|---|
TEvent | The type of event to subscribe and handler for. |
Parameters
Name | Type | Description |
---|---|---|
eventCollection | IEventCollection | The event collections. |
handler | EventHandler |
The handler to subscribe to the event. |