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

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