RelativeToAbsoluteUrlNormalizer Constructors

Namespace
Kampute.DocToolkit.Routing
Assembly
  • Kampute.DocToolkit.dll
RelativeToAbsoluteUrlNormalizer(Uri)Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL.
RelativeToAbsoluteUrlNormalizer(string)Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL string.

RelativeToAbsoluteUrlNormalizer(Uri)

Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL.
public RelativeToAbsoluteUrlNormalizer(Uri baseUrl)

Parameters

baseUrl Uri
The base URL to use for creating absolute URLs from relative URLs.

Exceptions

ArgumentNullException
Thrown when baseUrl is null.
ArgumentException
Thrown when baseUrl is not an absolute URL.

RelativeToAbsoluteUrlNormalizer(string)

Initializes a new instance of the RelativeToAbsoluteUrlNormalizer class with the specified base URL string.
public RelativeToAbsoluteUrlNormalizer(string baseUrlString)

Parameters

baseUrlString string
The base URL to use for creating absolute URLs from relative URLs.

Exceptions

ArgumentNullException
Thrown when baseUrlString is null.
ArgumentException
Thrown when baseUrlString is not an absolute URL.