Class AppDirectoryLayoutFactory
Creates executable-rooted application directory layouts and ensures the configured directories exist.
Inherited Members
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.DirectoryLayout
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public static class AppDirectoryLayoutFactory
Methods
| Edit this page View SourceCreate(IReadOnlyDictionary<string, string>, string?, bool)
Creates an application directory layout from custom semantic keys and direct-child folder names.
Declaration
public static AppDirectoryLayout Create(IReadOnlyDictionary<string, string> folderMap, string? rootPath = null, bool verifyWritable = true)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyDictionary<string, string> | folderMap | Semantic keys and direct-child folder names. |
| string | rootPath | Optional root path. When omitted, BaseDirectory is used. |
| bool | verifyWritable | Whether each resolved directory is verified with a write probe. |
Returns
| Type | Description |
|---|---|
| AppDirectoryLayout | The resolved directory layout. |
CreateDefault(IReadOnlyDictionary<DefaultDirectory, string>?, string?, bool)
Creates the standard application directory layout with optional folder-name overrides.
Declaration
public static AppDirectoryLayout CreateDefault(IReadOnlyDictionary<DefaultDirectory, string>? directoryOverrides = null, string? rootPath = null, bool verifyWritable = true)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyDictionary<DefaultDirectory, string> | directoryOverrides | Optional folder-name overrides for standard directories. |
| string | rootPath | Optional root path. When omitted, BaseDirectory is used. |
| bool | verifyWritable | Whether each resolved directory is verified with a write probe. |
Returns
| Type | Description |
|---|---|
| AppDirectoryLayout | The resolved directory layout. |