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

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