Imaging settings
This commit is contained in:
@@ -10,6 +10,9 @@ namespace Umbraco.Core
|
||||
/// </summary>
|
||||
public static class ConfigsExtensions
|
||||
{
|
||||
|
||||
public static IImagingSettings Imaging(this Configs configs)
|
||||
=> configs.GetConfig<IImagingSettings>();
|
||||
public static IGlobalSettings Global(this Configs configs)
|
||||
=> configs.GetConfig<IGlobalSettings>();
|
||||
|
||||
|
||||
12
src/Umbraco.Core/Configuration/IImagingSettings.cs
Normal file
12
src/Umbraco.Core/Configuration/IImagingSettings.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Umbraco.Core.Configuration
|
||||
{
|
||||
public interface IImagingSettings
|
||||
{
|
||||
int MaxBrowserCacheDays { get;}
|
||||
int MaxCacheDays { get; }
|
||||
uint CachedNameLength { get; }
|
||||
int MaxResizeWidth { get; }
|
||||
int MaxResizeHeight { get; }
|
||||
string CacheFolder { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user