SiteAbsoluteUrl class
namespace: Serenity.Extensions assembly: Serenity.Extensions
Default implementation for ISiteAbsoluteUrl
public class SiteAbsoluteUrl : ISiteAbsoluteUrl
Public Members
| name | description |
|---|---|
| SiteAbsoluteUrl(…) | Default implementation for ISiteAbsoluteUrl |
| virtual GetExternalUrl() | Gets the external URL of the web site, throwing if it cannot be determined. |
| virtual GetInternalUrl() | Gets the internal URL of the web site, throwing if it cannot be determined. |
Protected Members
| name | description |
|---|---|
| readonly environmentSettings | The environment settings used to resolve the internal and external URLs. |
| readonly httpContextAccessor | The HTTP context accessor used to resolve the current request's base URI. |
| virtual TryGetExternalUrl() | Tries to get the external URL from the current request or the configured site external URL. |
| virtual TryGetInternalUrl() | Tries to get the internal URL, falling back to the external URL when no internal URL is configured. |
See Also
- interface ISiteAbsoluteUrl
- Source: SiteAbsoluteUrl.cs