TimeZoneFactory Constructor

Creates a new instance of TimeZoneFactory.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.3.9728.0
C#
public TimeZoneFactory(
	IConfiguration configuration,
	ITzInfoFileReader fileReader,
	ICldrFileReader? cldrFileReader = null
)

Parameters

configuration  IConfiguration
The configuration settings to use.
fileReader  ITzInfoFileReader
The tzinfo file reader to use.
cldrFileReader  ICldrFileReader  (Optional)
The optional CLDR file reader to use. If null (the default), the factory behaves exactly as it did before CLDR support was added: no localized names are available, and LocalizedName(DateTimeOffset, CultureInfo, TimeZoneNameStyle, CldrNameNotFoundBehavior) always falls back per its CldrNameNotFoundBehavior.

See Also