Azure |
public class AzureTzInfoFileReader : ITzInfoFileReader
The AzureTzInfoFileReader type exposes the following members.
Name | Description | |
---|---|---|
![]() | AzureTzInfoFileReader | Creates a new instance of AzureTzInfoFileReader |
Name | Description | |
---|---|---|
![]() | 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 Load method |
Name | Description | |
---|---|---|
![]() | 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) |
![]() | Load | 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) |
Name | Description | |
---|---|---|
![]() ![]() | 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 |
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.