DocumentUrlContext Class
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
Definition
Represents a disposable context that manages relative URL resolution within a document context.
public abstract class DocumentUrlContext : IDisposable
- Inheritance
- Implements
Thread Safety
Constructors
Properties
| Directory | Gets the current document directory path relative to the documentation root. |
| DocumentationRootUrl | Gets the absolute or document-relative URL to the documentation root for the current context. |
| IsDocumentationRoot | Gets a value indicating whether the current document is at the documentation root. |
| Model | Gets the document model associated with the current context. |
Methods
See Also
The concrete implementation of this class is responsible for managing the state of the URL adjustment context and ensuring that the base URL is correctly set based on the current document's location within the documentation site.
When the context is disposed, any state modifications related to the current document context should be reverted, restoring the previous URL adjustment context.