RaiseAsync<TEvent>(TEvent) Method
Raises all handlers for a registered event (as indicated by the TEvent type).
Namespace
Statiq.Testing
Containing Type
TestEventCollection
Implements

Syntax

public Task<bool> RaiseAsync<TEvent>(TEvent evt)

Type Parameters

Name Description
TEvent The type of event to raise an event for.

Parameters

Name Type Description
evt TEvent The event instance.

Return Value

Type Description
Task<bool> true if registered handlers were found, false otherwise.