From d78fed3b1cdec6f578b0b17f9e2b79a9074c0191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20N=C3=A9meth?= Date: Tue, 7 Nov 2023 21:21:32 +0100 Subject: [PATCH] Using new approach --- src/Lombiq.OSOCE.Web/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Lombiq.OSOCE.Web/Program.cs b/src/Lombiq.OSOCE.Web/Program.cs index ad05149ed..d35b7a69c 100644 --- a/src/Lombiq.OSOCE.Web/Program.cs +++ b/src/Lombiq.OSOCE.Web/Program.cs @@ -16,10 +16,11 @@ // create UI tests check out the project. builder.Services .AddSingleton(configuration) - .AddOrchardCoreApplicationInsightsTelemetry(configuration) .AddOrchardCms(orchardCoreBuilder => { - orchardCoreBuilder.ConfigureFeaturesGuard( + orchardCoreBuilder + .AddOrchardCoreApplicationInsightsTelemetry(builder.Services, configuration) + .ConfigureFeaturesGuard( new Dictionary> { ["OrchardCore.Twitter"] = new[] { "Lombiq.UIKit", "Lombiq.ChartJs" },