AddressingStrategy.CreateAddressFromPathSegments Method

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

Definition

Creates a resource address from the specified path segments and an optional URL suffix.
protected IResourceAddress CreateAddressFromPathSegments(IEnumerable<string> pathSegments, string fragmentIdentifier = null)

Parameters

pathSegments IEnumerable<string>
The segments that make up the path.
fragmentIdentifier string optional
The optional fragment identifier to append to the URL.

Returns

IResourceAddress
A IResourceAddress instance representing the address.

Exceptions

ArgumentNullException
Thrown when pathSegments is null.
ArgumentException
Thrown when pathSegments is empty or contains only empty segments.