C# Class TimeZoneMapper.TimeZoneMap

Provides easy access to different "built-in" types of ITZMappers.
The static properties and/or methods on this class are mostly convenience methods/properties; if you need more control (such as using a specific uri, cache TTL or timeout value for the OnlineValuesTZMapper or other options not provided by the "built-in" TZMappers/resources returned here) then you will need to instantiate your own instance (and maybe even implement your own ITZMapper).
Mostrar archivo Open project: RobThree/TimeZoneMapper

Public Methods

Method Description
CreateOnlineWithSpecificFallbackValuesTZMapper ( ITZMapper fallbacktzmapper ) : ITZMapper

Creates a ITZMapper that tries to use the online resource and, when unreachable or otherwise problematic, uses the specified ITZMapper as fallback.

CreateOnlineWithSpecificFallbackValuesTZMapper ( Uri resourceuri, ITZMapper fallbacktzmapper ) : ITZMapper

Creates a ITZMapper that tries to use the online resource and, when unreachable or otherwise problematic, uses the specified ITZMapper as fallback.

Private Methods

Method Description
TimeZoneMap ( ) : System

Method Details

CreateOnlineWithSpecificFallbackValuesTZMapper() public static method

Creates a ITZMapper that tries to use the online resource and, when unreachable or otherwise problematic, uses the specified ITZMapper as fallback.
public static CreateOnlineWithSpecificFallbackValuesTZMapper ( ITZMapper fallbacktzmapper ) : ITZMapper
fallbacktzmapper ITZMapper /// The to use when the default fails for any /// reason. ///
return ITZMapper

CreateOnlineWithSpecificFallbackValuesTZMapper() public static method

Creates a ITZMapper that tries to use the online resource and, when unreachable or otherwise problematic, uses the specified ITZMapper as fallback.
public static CreateOnlineWithSpecificFallbackValuesTZMapper ( Uri resourceuri, ITZMapper fallbacktzmapper ) : ITZMapper
resourceuri System.Uri The URI to use when retrieving CLDR data.
fallbacktzmapper ITZMapper /// The to use when the default fails for any /// reason. ///
return ITZMapper