TestEventCollection Class
Namespace
Statiq.Testing
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IEventCollection"] click Interface0 "/api/Statiq.Common/IEventCollection" Type-.->Interface1["IReadOnlyEventCollection"] click Interface1 "/api/Statiq.Common/IReadOnlyEventCollection" Type["TestEventCollection"] class Type type-node

Syntax

public class TestEventCollection : IEventCollection, IReadOnlyEventCollection

Methods

Name Return Value Summary
RaiseAsync<TEvent>(TEvent) Task<bool>
Raises all handlers for a registered event (as indicated by the TEvent type).
Subscribe<TEvent>(AsyncEventHandler<TEvent>) void
Subscribes a new handler for the given TEvent type.

Extension Methods