ResourceAddress Struct

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

Definition

Represents a resource address with support for both URL and file path representations.
public readonly struct ResourceAddress : IResourceAddress
Inheritance
Implements

Remarks

This class provides a unified implementation for addressing resources where the URL and file path may differ. Both representations are relative to the documentation root.
This class assumes that the path does not contain any character that has a reserved meaning in a URI or file path.

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Constructors

ResourceAddress(string, string)Initializes a new instance of the ResourceAddress struct with the specified URL and file path.

Properties

RelativeFilePathGets the address of the resource as a file path relative to the documentation root, if applicable.
RelativeUrlGets the address of the resource as a URL string relative to the documentation root.