PathHelper
Last updated
Last updated
PathHelper
class provides methods for combine and format ContentDirectory
paths.
Configure PathOptions
in composition root of your application and then use Format() and Combine() methods.
PathOptions
properties:
Property name | Property type | Description |
---|---|---|
Configure PathOptions
in Program.cs
file of ASP.NET application:
After configuring PathOptions
you can simply combine ContentDirectory
absolute path and relative path into a common path.
After configuring PathOptions
you can simply replace content directory templates from path to content directory absolute paths.
Template
Func<ContentDirectory, string>
Determines templates for content directories.
Directories
Dictionary<ContentDirectory, string>
Determines absolute paths for content directories.