public AzureTzInfoFileReader(
IConfiguration configuration,
ISecretProvider? secretProvider = null
)
Key | Description |
---|---|
storageConnectionString | The Azure storage connection string to use |
timeZoneSettings:timeZoneBlobName | The Blob containing tzinfo database files |
Here is a typical configuration section in appSettings.json, including settings used in the TimeZoneFactory:
{
"storageConnectionString": "Super secret Azure storage connection string",
"timeZoneSettings": {
"defaultTimeZoneHomeZone": "America/Chicago",
"throwOnLoadFailure": "false",
"timeZoneBlobName": "TimeZoneData"
}
}
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.