LocalTzInfoFileReader Class

Reads tzinfo file data from a local disk file

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.2.9017.0
C#
public class LocalTzInfoFileReader : ITzInfoFileReader
Inheritance
Object    LocalTzInfoFileReader
Implements
ITzInfoFileReader

Remarks

This class uses two configuration keys:
C#
{
   "timeZoneSettings": {
      "TimeZoneRuleFileFull": "a comma-delimited list of files to load",
      "TimeZoneRuleFolder": "the location on the local computer or network share where the files are kept"
   }
}

Constructors

LocalTzInfoFileReader Creates a new instance of LocalTzInfoFileReader

Properties

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

Methods

Clear Clears the contents of the class
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
LoadAsync Parses the data from the input provided
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

DefaultTimeZoneRuleFileListSettingKey Gets the name of the setting in the app.config or web.config file containing the names of the files in the DefaultTimeZoneRuleFolderSettingKey folder to load by default.
DefaultTimeZoneRuleFolderSettingKey Gets the name of the setting in the app.config or web.config file containing the name of the folder containing all TzInfo Time Zone data.

See Also