IEventSink

Namespace: SnowBank.Messaging.Events · interface

Properties

Async

bool Async { get; }

If true, this event sinks requires async dispatching. If false, it will always run inline and will not block the calling thread

Methods

Dispatch

Task Dispatch(IEvent evt, CancellationToken ct)

Dispatch an event to this log sink

Task Dispatch(ReadOnlyMemory<IEvent> batch, CancellationToken ct)

Dispatch a batch of events to this log sink