Subscribes a new handler for the given TEvent type.
- Namespace
- Statiq
.Testing - Containing Type
- TestEventCollection
- Implements
-
- IEventCollection.Subscribe
<TEvent> )
- IEventCollection.Subscribe
Syntax
public void Subscribe<TEvent>(AsyncEventHandler<TEvent> handler)
Type Parameters
| Name | Description |
|---|---|
| TEvent | The type of event to subscribe and handler for. |
Parameters
| Name | Type | Description |
|---|---|---|
| handler | AsyncEventHandler |
The handler to subscribe to the event. |