From b8bdcd69f6b1fff9a901b6ee3c3a810b6a4f10cd Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Thu, 30 May 2024 21:53:58 -0700 Subject: [PATCH] comments --- .../Settings/SiteServiceExtensions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OrchardCore/OrchardCore.Infrastructure.Abstractions/Settings/SiteServiceExtensions.cs b/src/OrchardCore/OrchardCore.Infrastructure.Abstractions/Settings/SiteServiceExtensions.cs index 088e13e1c4a..4ac36da4716 100644 --- a/src/OrchardCore/OrchardCore.Infrastructure.Abstractions/Settings/SiteServiceExtensions.cs +++ b/src/OrchardCore/OrchardCore.Infrastructure.Abstractions/Settings/SiteServiceExtensions.cs @@ -4,6 +4,12 @@ namespace OrchardCore.Settings; public static class SiteServiceExtensions { + /// + /// Gets an instance of the specified settings if it exists. + /// + /// The type of the settings to attempt to get. + /// The site service. + /// An instance of the given type if one exists. public static async Task GetSettingsAsync(this ISiteService siteService) where T : new() => (await siteService.GetSiteSettingsAsync()).As(); }