Appearance
HVC Storage — Configuration & Providers
- Project:
hvc-storage
Store types
Consumers provide a StorageConfig section plus an IConfigProvider that resolves the active store type and connection string at runtime:
| Store type | Backend |
|---|---|
file | LocalFileSystem (a local path) |
azure / azure-storage | AzureBlobFileSystem (Azure Blob connection string) |
s3 / minio | MinioFileSystem (MinIO/S3 connection string) |
The HvcStorageFactory.getClientStore() switches on the resolved storeType:
csharp
return storeType switch
{
"file" => new LocalFileSystem(config, hashProvider, connectionString),
"azure" => new AzureBlobFileSystem(config with { connectionString = connectionString }),
"azure-storage" => new AzureBlobFileSystem(config with { connectionString = connectionString }),
"s3" => new MinioFileSystem(config with { connectionString = connectionString }, hashProvider),
"minio" => new MinioFileSystem(config with { connectionString = connectionString }, hashProvider),
_ => throw new Exception($"Unknown store type: {storeType}")
};