public class AzureTzInfoFileReader : ITzInfoFileReader
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.
AzureTzInfoFileReader | Implements ITzInfoFileReader to retrieve tzinfo files from Microsoft Azure Blob storage |
FileContents | Returns the contents of the tzinfo file that the class has read |
FileName | Gets the name of the file currently being read |
Initialized | If true, the reader is initialized, and there is no need to call the LoadAsync method |
Clear | Clears the contents of the class |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
LoadAsync | Parses the data from the input provided |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
BlobNameConfigKey | Gets the name of the configuration item pointing to the blob containing the IANA time zone database files |
StorageSettingKey | Gets the name of the configuration item pointing to the Azure storage connection string to use |