Imaging settings

This commit is contained in:
Bjarke Berg
2020-03-17 17:56:00 +01:00
parent 0efc335e4f
commit 3e75c889ab
8 changed files with 84 additions and 15 deletions

View File

@@ -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>();

View 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; }
}
}