IdentityServer / IdentityServer4

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://identityserver.io
Apache License 2.0
9.23k stars 4.02k forks source link

How to register an EventSink? #5408

Closed Duke482132 closed 2 years ago

Duke482132 commented 2 years ago

Question

In IdS3 you just create EventService and register it using Factory. How to register properly register an EventSink in IdS4? I can't find a single example.

Minimal working example

    public void ConfigureServices(IServiceCollection services)
   {
          services.AddTransient<IEventSink, MyEventSink>(); // is this is a correct way to do it?
   }

   public class MyEventSink: IEventSink
   {
        public async Task PersistAsync(Event evt)
        {
        }
   }
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.