From 097a0531811719a5f2d491394b770a47960f0269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Thu, 2 May 2024 08:08:43 -0700 Subject: [PATCH] Fix eagerly executed task in CustomSettingService (#15942) --- .../Services/CustomSettingsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore.Modules/OrchardCore.CustomSettings/Services/CustomSettingsService.cs b/src/OrchardCore.Modules/OrchardCore.CustomSettings/Services/CustomSettingsService.cs index 319fe4684f4..04253bb2826 100644 --- a/src/OrchardCore.Modules/OrchardCore.CustomSettings/Services/CustomSettingsService.cs +++ b/src/OrchardCore.Modules/OrchardCore.CustomSettings/Services/CustomSettingsService.cs @@ -33,7 +33,7 @@ public CustomSettingsService( _httpContextAccessor = httpContextAccessor; _authorizationService = authorizationService; _contentDefinitionManager = contentDefinitionManager; - _settingsTypes = new Lazy>>(GetContentTypeAsync()); + _settingsTypes = new Lazy>>(GetContentTypeAsync); } public async Task> GetAllSettingsTypeNamesAsync()