Subscribe<TEvent>(AsyncEventHandler<TEvent>) Method
Subscribes a new handler for the given TEvent type.
Namespace
Statiq.Common
Containing Type
IEventCollection

Syntax

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<TEvent> The handler to subscribe to the event.