Table of Contents

Class DefaultEventService

Namespace
Duende.IdentityServer.Events
Assembly
Duende.IdentityServer.dll

The default event service

public class DefaultEventService : IEventService
Inheritance
DefaultEventService
Implements
Inherited Members

Constructors

DefaultEventService(IdentityServerOptions, IHttpContextAccessor, IEventSink, IClock)

Initializes a new instance of the DefaultEventService class.

public DefaultEventService(IdentityServerOptions options, IHttpContextAccessor context, IEventSink sink, IClock clock)

Parameters

options IdentityServerOptions

The options.

context IHttpContextAccessor

The context.

sink IEventSink

The sink.

clock IClock

The clock.

See Also

Fields

Clock

The clock

protected readonly IClock Clock

Field Value

IClock
See Also

Context

The context

protected readonly IHttpContextAccessor Context

Field Value

IHttpContextAccessor
See Also

Options

The options

protected readonly IdentityServerOptions Options

Field Value

IdentityServerOptions
See Also

Sink

The sink

protected readonly IEventSink Sink

Field Value

IEventSink
See Also

Methods

CanRaiseEvent(Event)

Determines whether this event would be persisted.

protected virtual bool CanRaiseEvent(Event evt)

Parameters

evt Event

The evt.

Returns

bool

true if this event would be persisted; otherwise, false.

See Also

CanRaiseEventType(EventTypes)

Indicates if the type of event will be persisted.

public bool CanRaiseEventType(EventTypes evtType)

Parameters

evtType EventTypes

Returns

bool

Exceptions

ArgumentOutOfRangeException
See Also

PrepareEventAsync(Event)

Prepares the event.

protected virtual Task PrepareEventAsync(Event evt)

Parameters

evt Event

The evt.

Returns

Task
See Also

RaiseAsync(Event)

Raises the specified event.

public Task RaiseAsync(Event evt)

Parameters

evt Event

The event.

Returns

Task

Exceptions

ArgumentNullException

evt

See Also

See Also