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" } )