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
IdentityServerOptionsThe options.
context
IHttpContextAccessorThe context.
sink
IEventSinkThe sink.
clock
IClockThe clock.
- See Also
Fields
Clock
The clock
protected readonly IClock Clock
Field Value
- See Also
Context
The context
protected readonly IHttpContextAccessor Context
Field Value
- See Also
Options
The options
protected readonly IdentityServerOptions Options
Field Value
- See Also
Sink
The sink
protected readonly IEventSink Sink
Field Value
- See Also
Methods
CanRaiseEvent(Event)
Determines whether this event would be persisted.
protected virtual bool CanRaiseEvent(Event evt)
Parameters
evt
EventThe 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
Exceptions
- See Also
PrepareEventAsync(Event)
Prepares the event.
protected virtual Task PrepareEventAsync(Event evt)
Parameters
evt
EventThe evt.
Returns
- See Also
RaiseAsync(Event)
Raises the specified event.
public Task RaiseAsync(Event evt)
Parameters
evt
EventThe event.
Returns
Exceptions
- See Also