Class AzureStoragePathMappingOptions
- Namespace
- Kentico.Xperience.AzureStorage
- Assembly
- Kentico.Xperience.AzureStorage.dll
Options controlling cloud runtime path mapping.
public sealed class AzureStoragePathMappingOptions
- Inheritance
-
objectAzureStoragePathMappingOptions
- Extension Methods
Constructors
AzureStoragePathMappingOptions()
public AzureStoragePathMappingOptions()
Fields
DEFAULT_CONTAINER_NAME
Default container name used for shared persistent paths. Matches the legacy fallback container name for backward compatibility.
public const string DEFAULT_CONTAINER_NAME = "cmsstorage"
Field Value
- string
Properties
ContainerName
Gets or sets the storage container name used for shared persistent paths.
public string ContainerName { get; set; }
Property Value
- string
CreateProviderForPath
Gets or sets a callback that can return a custom storage provider for a registered path.
public Func<PathRegistration, StorageProvider> CreateProviderForPath { get; set; }
Property Value
- Func<PathRegistration, StorageProvider>
Remarks
The callback receives the path registration and can inspect PathType
to apply per-type logic. Returning null falls back to the default provider for that path type:
- SharedPersistent: Azure Blob storage provider.
- SharedTemp: file system storage provider.
- LocalOnly: not mapped (skipped).
IsMappingEnabled
Gets or sets a value indicating whether Azure Blob storage path mapping is enabled.
public bool IsMappingEnabled { get; set; }
Property Value
- bool