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. |
| IsRoot | Gets a value indicating whether the current document is at the root level of the documentation site. |
| Model | Gets the document model associated with the current context. |
| RootUrl | Gets the absolute or relative URL to the root of the documentation site for 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.