Skip to content

Feature/extensible events#11

Open
lkimberrsk wants to merge 2 commits intomainfrom
feature/ExtensibleEvents
Open

Feature/extensible events#11
lkimberrsk wants to merge 2 commits intomainfrom
feature/ExtensibleEvents

Conversation

@lkimberrsk
Copy link
Copy Markdown

Added ability to include custom Duende events.

This is done in DI when setting up the AuditSink to include an additional list of custom events and their respective adapters, e.g.:
builder.Services.AddSingleton<Duende.IdentityServer.Services.IEventSink>(_ => new AuditSink(auditRecorder, new Dictionary<Type, Func<Event, IAuditEventArguments>> { [typeof(UserCreatedEvent)] = evt => new UserCreatedEventAdapter((UserCreatedEvent)evt) }) );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants