Class TagHelperOptions
- Namespace
- Cuemon.AspNetCore.Razor.TagHelpers
- Assembly
- Cuemon.AspNetCore.Razor.TagHelpers.dll
Configuration options for CacheBustingTagHelper<TOptions>.
public abstract class TagHelperOptions : IParameterObject
- Inheritance
-
TagHelperOptions
- Implements
- Derived
Constructors
TagHelperOptions()
Initializes a new instance of the TagHelperOptions class.
protected TagHelperOptions()
Remarks
The following table shows the initial property values for an instance of TagHelperOptions.
| Property | Initial Value |
|---|---|
| Scheme | Relative |
| BaseUrlMode | Configured |
| BaseUrl | null |
Properties
BaseUrl
Gets or sets the base URL of these options.
public string BaseUrl { get; set; }
Property Value
- string
The base URL of these options.
BaseUrlMode
Gets or sets the base URL resolution mode of these options.
public TagHelperBaseUrlMode BaseUrlMode { get; set; }
Property Value
- TagHelperBaseUrlMode
The base URL resolution mode of these options.
Scheme
Gets or sets the ProtocolUriScheme of these options.
public ProtocolUriScheme Scheme { get; set; }
Property Value
- ProtocolUriScheme
The ProtocolUriScheme of these options.
Methods
GetFormattedBaseUrl()
Gets the base URL of this instance, formatted according to the defined Scheme.
public string GetFormattedBaseUrl()
Returns
GetFormattedBaseUrl(HttpRequest)
Gets the base URL of this instance, resolved from the configured values of this instance or the specified request.
public string GetFormattedBaseUrl(HttpRequest request)
Parameters
requestHttpRequestThe current HTTP request that may provide the effective scheme, host and application base path when BaseUrlMode is Automatic and BaseUrl is not configured.
Returns
- string
The base URL of this instance, resolved from the configured values of this instance or the specified
request.