C# Класс 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).
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
TimeZoneMap ( ) : System

Описание методов

CreateOnlineWithSpecificFallbackValuesTZMapper() публичный статический Метод

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. ///
Результат ITZMapper

CreateOnlineWithSpecificFallbackValuesTZMapper() публичный статический Метод

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. ///
Результат ITZMapper