Skip to content

EnvironmentSettings class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Settings related to the environment the application runs in, such as the externally and internally accessible URLs of the web site.

public class EnvironmentSettings

Public Members

name description
EnvironmentSettings() The default constructor.
InjectMarkupToHead { get; set; } Optional markup to inject into head, can be used for analytics tags etc.
IsPublicDemo { get; set; } This was a flag used by Serenity Demo, but as it is using C# preprocessor directives now, this flag is obsolete
SiteExternalUrl { get; set; } The externally accessible, public url of the web site, used for link generation in emails etc. The default implementation for ISiteAbsoluteUrl.GetExternalUrl() uses this value only when an HTTP request is not available
SiteInternalUrl { get; set; } The internally accessible, local network url of the web site, used for URL generation for report tools to call back into the web site locally. If set, the default implementation for ISiteAbsoluteUrl.GetInternalUrl() will prefer this over the current request's base uri, and external URL setting.
const SectionKey Default section key for environment settings.

See Also