Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Duende.​IdentityServer.​Services.​IEventService

Assembly: Duende.IdentityServer

Provides the ability to raise IdentityServer events, such as successful or failed logins, token issuance, and consent decisions. Events are dispatched to the registered <see cref="T:Duende.IdentityServer.Services.IEventSink" /> for persistence or forwarding to external systems. Use <see cref="M:Duende.IdentityServer.Services.IEventService.CanRaiseEventType(Duende.IdentityServer.Events.EventTypes)" /> to check whether a given event category is enabled before constructing and raising an event.

Methods

RaiseAsync​(Events.​Event evt, System.​Threading.​CancellationToken ct)
Raises the specified event and dispatches it to the registered <see cref="T:Duende.IdentityServer.Services.IEventSink" /> .
evt The event to raise.
ct The cancellation token.
bool
CanRaiseEventType​(Events.​EventTypes evtType)
Indicates whether events of the specified type will be persisted by the current configuration. Use this to avoid constructing event objects for event categories that are disabled.
Returns <c>true</c> if events of the given <paramref name="evtType" /> are enabled and will be forwarded to the <see cref="T:Duende.IdentityServer.Services.IEventSink" /> ; otherwise <c>false</c> .
evtType The event category to check.