Table of Contents

Interface IEventSink

Namespace
Fdyay.IdentityServer.Events
Assembly
Fdyay.IdentityServer.Core.dll

Where a raised event goes.

public interface IEventSink

Remarks

One method, because a sink's whole job is to take an event somewhere else — a log, a queue, a table — and every decision about whether an event is worth taking has already been made by the service before the sink is called.

Methods

PersistAsync(Event, CancellationToken)

Takes a raised event to wherever this sink sends events.

Task PersistAsync(Event evt, CancellationToken cancellationToken = default)

Parameters

evt Event

The event, already stamped with its time, process and request fields.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the event has been handed on.