ISiteAbsoluteUrl interface

namespace: Serenity.Abstractions   assemblySerenity.Net.Core

Interface to access absolute base URL for current site, including the PathBase. Useful for reporting callbacks, or emails etc.

public interface ISiteAbsoluteUrl

Members

name description
GetExternalUrl() Returns the absolute external/public url of the current site, used to generate links for activation emails etc. The default implementation builds it from one of these in this order: 1) The current http request base url if available, 2) EnvironmentSettings:SiteExternalUrl setting
GetInternalUrl() Returns the absolute internal/local url of the current site, used to generate URLs for report tools like WKHTML, Puppeteer etc. The default implementation builds it from one of these in this order: 1) EnvironmentSettings:SiteInternalUrl setting, 2) The current http request base url if available, 3) EnvironmentSettings:SiteExternalUrl setting

See Also