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
optionsIdentityServerOptionsThe options.
contextIHttpContextAccessorThe context.
sinkIEventSinkThe sink.
clockIClockThe 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
evtEventThe evt.
Returns
- bool
trueif 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
evtTypeEventTypes
Returns
Exceptions
- See Also
PrepareEventAsync(Event)
Prepares the event.
protected virtual Task PrepareEventAsync(Event evt)
Parameters
evtEventThe evt.
Returns
- See Also
RaiseAsync(Event)
Raises the specified event.
public Task RaiseAsync(Event evt)
Parameters
evtEventThe event.
Returns
Exceptions
- See Also