From 65e21767ede6ea809012b5302164101d5bb84feb Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Wed, 1 May 2024 18:46:05 -0700 Subject: [PATCH] Fix eagerly executed task in CustomSettingService --- .../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()