From cbe4d5eb704f34692947aefabfe818edf6fc5f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Herceg?= Date: Sun, 21 Apr 2024 18:02:56 +0200 Subject: [PATCH] Fixed too early initialization of view compilation service --- src/Framework/Hosting.AspNetCore/Hosting/DotvvmHealthCheck.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Framework/Hosting.AspNetCore/Hosting/DotvvmHealthCheck.cs b/src/Framework/Hosting.AspNetCore/Hosting/DotvvmHealthCheck.cs index 847f3c186b..de647fe0ae 100644 --- a/src/Framework/Hosting.AspNetCore/Hosting/DotvvmHealthCheck.cs +++ b/src/Framework/Hosting.AspNetCore/Hosting/DotvvmHealthCheck.cs @@ -47,14 +47,14 @@ public Task CheckHealthAsync(HealthCheckContext context, Canc public static void RegisterHealthCheck(IServiceCollection services) { - services.ConfigureWithServices((options, s) => { + services.Configure(options => { if (options.Registrations.Any(c => c.Name == "DotVVM")) return; options.Registrations.Add( new HealthCheckRegistration( "DotVVM", - ActivatorUtilities.CreateInstance(s), + s => ActivatorUtilities.CreateInstance(s), null, new [] { "dotvvm" } )