From 850d976d02334ef2c5c8fa975365f6dff2b272de Mon Sep 17 00:00:00 2001 From: PascalSenn Date: Wed, 15 May 2024 17:45:52 +0200 Subject: [PATCH] Adds more telemetry --- .../IdentityServer.Core/IdentityServerBuilderExtensions.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/IdentityServer/src/IdentityServer.Core/IdentityServerBuilderExtensions.cs b/src/IdentityServer/src/IdentityServer.Core/IdentityServerBuilderExtensions.cs index a71ac20..7831440 100644 --- a/src/IdentityServer/src/IdentityServer.Core/IdentityServerBuilderExtensions.cs +++ b/src/IdentityServer/src/IdentityServer.Core/IdentityServerBuilderExtensions.cs @@ -72,11 +72,10 @@ private static IIdentityServerBuilder AddIdOps( SingleReader = true, AllowSynchronousContinuations = false }); - + builder.Services.AddSingleton(channel.Reader); builder.Services.AddSingleton(channel.Writer); - builder.Services.AddHostedService(); - builder.Services.AddSingleton(); + builder.Services.AddHostedService(sp => sp.GetRequiredService()); builder.Services.AddSingleton(); builder.Services.AddResources(); builder.Services.AddSingleton(builder.Options);