namespace Nop.Core.Configuration; /// /// Represents common configuration parameters /// public partial class CommonConfig : IConfig { /// /// Gets or sets a value indicating whether to display the full error in production environment. It's ignored (always enabled) in development environment /// public bool DisplayFullErrorStack { get; protected set; } = false; /// /// Gets or sets path to database with user agent strings /// public string UserAgentStringsPath { get; protected set; } = "~/App_Data/browscap.xml"; /// /// Gets or sets path to database with crawler only user agent strings /// public string CrawlerOnlyUserAgentStringsPath { get; protected set; } = "~/App_Data/browscap.crawlersonly.xml"; /// /// Gets or sets path to additional database with crawler only user agent strings /// public string CrawlerOnlyAdditionalUserAgentStringsPath { get; protected set; } = "~/App_Data/additional.crawlers.xml"; /// /// Gets or sets a value indicating whether to store TempData in the session state. By default the cookie-based TempData provider is used to store TempData in cookies. /// public bool UseSessionStateTempDataProvider { get; protected set; } = false; /// /// The length of time, in milliseconds, before the running schedule task times out. Set null to use default value /// public int? ScheduleTaskRunTimeout { get; protected set; } = null; /// /// Gets or sets a value of "Cache-Control" header value for static content (in seconds) /// public string StaticFilesCacheControl { get; protected set; } = "public,max-age=31536000"; /// /// Get or set the blacklist of static file extension for plugin directories /// public string PluginStaticFileExtensionsBlacklist { get; protected set; } = ""; /// /// Get or set a value indicating whether to serve files that don't have a recognized content-type /// public bool ServeUnknownFileTypes { get; protected set; } = false; /// /// Get or set a value indicating whether to use Autofac IoC container /// /// If value is set to false then the default .Net IoC container will be use /// public bool UseAutofac { get; set; } = true; /// /// Maximum number of permit counters that can be allowed in a window (1 minute). /// Must be set to a value > 0 by the time these options are passed to the constructor of . /// If set to 0 than limitation is off /// public int PermitLimit { get; set; } = 0; /// /// Maximum cumulative permit count of queued acquisition requests. /// Must be set to a value >= 0 by the time these options are passed to the constructor of . /// If set to 0 than Queue is off /// public int QueueCount { get; set; } = 0; /// /// Default status code to set on the response when a request is rejected. /// public int RejectionStatusCode { get; set; } = 503; }