2020-03-13 20:37:10 +01:00
|
|
|
|
using Umbraco.Core.Configuration;
|
2019-11-07 10:08:16 +01:00
|
|
|
|
using Umbraco.Core.Configuration.Grid;
|
2019-11-14 11:47:34 +01:00
|
|
|
|
using Umbraco.Core.Configuration.HealthChecks;
|
|
|
|
|
|
using Umbraco.Core.Configuration.UmbracoSettings;
|
2019-11-07 10:08:16 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Provides extension methods for the <see cref="Configs"/> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class ConfigsExtensions
|
|
|
|
|
|
{
|
2020-03-17 17:56:00 +01:00
|
|
|
|
|
|
|
|
|
|
public static IImagingSettings Imaging(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IImagingSettings>();
|
2019-11-14 11:47:34 +01:00
|
|
|
|
public static IGlobalSettings Global(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IGlobalSettings>();
|
|
|
|
|
|
|
2019-12-05 08:31:06 +01:00
|
|
|
|
public static IHostingSettings Hosting(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IHostingSettings>();
|
|
|
|
|
|
|
2019-11-15 11:07:37 +01:00
|
|
|
|
public static IConnectionStrings ConnectionStrings(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IConnectionStrings>();
|
|
|
|
|
|
|
2020-03-12 15:30:22 +01:00
|
|
|
|
public static IContentSettings Content(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IContentSettings>();
|
2019-11-14 11:47:34 +01:00
|
|
|
|
|
2020-03-12 14:36:25 +01:00
|
|
|
|
public static ISecuritySettings Security(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<ISecuritySettings>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static IUserPasswordConfiguration UserPasswordConfiguration(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IUserPasswordConfiguration>();
|
|
|
|
|
|
public static IMemberPasswordConfiguration MemberPasswordConfiguration(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IMemberPasswordConfiguration>();
|
|
|
|
|
|
|
2020-03-12 12:46:08 +01:00
|
|
|
|
public static IRequestHandlerSettings RequestHandler(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IRequestHandlerSettings>();
|
|
|
|
|
|
|
2020-03-12 09:52:34 +01:00
|
|
|
|
public static IWebRoutingSettings WebRouting(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IWebRoutingSettings>();
|
|
|
|
|
|
|
2020-03-16 14:02:08 +01:00
|
|
|
|
public static IHealthChecksSettings HealthChecks(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<IHealthChecksSettings>();
|
|
|
|
|
|
public static ICoreDebugSettings CoreDebug(this Configs configs)
|
|
|
|
|
|
=> configs.GetConfig<ICoreDebugSettings>();
|
2019-11-07 10:08:16 +01:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|