Skip to content

IPublisher interface

Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll

Publishes notifications to all registered handlers using the configured fan-out strategy (default: sequential, fail-fast).

public interface IPublisher

Publish<TNotification>(TNotification, CancellationToken)

Section titled “ Publish<TNotification>(TNotification, CancellationToken)”

Publishes a notification to all registered INotificationHandler<TNotification> instances.

ValueTask Publish<TNotification>(TNotification notification, CancellationToken ct = default) where TNotification : INotification

notification TNotification

ct CancellationToken

ValueTask

TNotification