AzureCldrFileReader Constructor

Implements ICldrFileReader to retrieve CLDR files from Microsoft Azure Blob storage

Definition

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.3.9728.0
C#
public AzureCldrFileReader(
	IConfiguration configuration,
	ISecretProvider? secretProvider = null
)

Parameters

configuration  IConfiguration
The configuration information to use
secretProvider  ISecretProvider  (Optional)
The secret-enabled configuration provider to use

Remarks

The AzureCldrFileReader expects two configuration settings:
KeyDescription
storageConnectionStringThe Azure storage connection string to use
timeZoneSettings:cldrBlobNameThe Blob container holding the staged CLDR data files

Blob names follow the same layout as LocalCldrFileReader: metaZones.json at the container root, and {locale}/timeZoneNames.json per staged locale (e.g. fr-CA/timeZoneNames.json); Azure Blob names may contain / to represent this virtual folder structure.

Here is a typical configuration section in appSettings.json:

{ "storageConnectionString": "Super secret Azure storage connection string", "timeZoneSettings": { "cldrBlobName": "CldrData" } }

Note that the storage connection string can be set up as a secret that the ISecretProvider instance can retrieve. For example, to store it in Microsoft Azure Key Vault, you can use the KeyVaultSecretProvider class.

See Also