AddressingStrategy.CreateAddressFromPath Method

Namespace
Kampute.DocToolkit.Routing
Assembly
  • Kampute.DocToolkit.dll

Definition

Builds the address for the specified path without extension and the optional URL suffix.
protected virtual IResourceAddress CreateAddressFromPath(string pathWithoutExtension, string fragmentIdentifier = null)

Parameters

pathWithoutExtension string
The path without the file extension.
fragmentIdentifier string optional
The optional fragment identifier to append to the URL.

Returns

IResourceAddress
A IResourceAddress instance representing the address.

Exceptions

ArgumentException
Thrown when pathWithoutExtension is null or empty.