NullEventSink

Namespace: SnowBank.Messaging.Events · class

Implements: IEventSink

Ignore all received messages

Constructors

NullEventSink

NullEventSink()

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

Create

static NullEventSink Create()

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