Table of Contents

GetFormattedBaseUrl Method

Definition

Namespace
Cuemon.AspNetCore.Razor.TagHelpers
Assemblies
Cuemon.AspNetCore.Razor.TagHelpers.dll
Source
src/Cuemon.AspNetCore.Razor.TagHelpers/TagHelperOptions.cs

GetFormattedBaseUrl()

Gets the base URL of this instance, formatted according to the defined Scheme.

public string GetFormattedBaseUrl()

Returns

string

The base URL of this instance, formatted according to the defined Scheme.

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

request HttpRequest

The 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.