C# Class TimeZoneMapper.TZMappers.OnlineValuesTZMapper

Provides TimeZoneID mapping based on a current ("dynamic") resource.
Inheritance: BaseTZMapper, TimeZoneMapper.TZMappers.ITZMapper
Datei anzeigen Open project: RobThree/TimeZoneMapper

Public Properties

Property Type Description
DEFAULTCACHETTL System.TimeSpan

Public Methods

Method Description
OnlineValuesTZMapper ( ) : System

Initializes a new instance of an OnlineValuesTZMapper with default timeout of 5 seconds and DEFAULTRESOURCEURL as resourceURL.

By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( System.TimeSpan timeout ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and DEFAULTRESOURCEURL as resourceURL.

By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( System.TimeSpan timeout, Uri resourceuri ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.

By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( System.TimeSpan timeout, Uri resourceuri, System.TimeSpan cachettl ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.

The default cache directory used is retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( System.TimeSpan timeout, Uri resourceuri, System.TimeSpan cachettl, string cachedirectory ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.

OnlineValuesTZMapper ( System.TimeSpan timeout, string resourceurl ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURL.

By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( int timeout ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and DEFAULTRESOURCEURL as resourceURL.

By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( int timeout, Uri resourceuri ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.

By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( int timeout, Uri resourceuri, System.TimeSpan cachettl ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.

The default cache directory used is retrieved from Path.GetTempPath.

OnlineValuesTZMapper ( int timeout, Uri resourceuri, System.TimeSpan cachettl, string cachedirectory ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.

OnlineValuesTZMapper ( int timeout, string resourceurl ) : System

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURL.

By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.

Method Details

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with default timeout of 5 seconds and DEFAULTRESOURCEURL as resourceURL.
By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( ) : System
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and DEFAULTRESOURCEURL as resourceURL.
By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( System.TimeSpan timeout ) : System
timeout System.TimeSpan The length of time before the request times out.
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.
By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( System.TimeSpan timeout, Uri resourceuri ) : System
timeout System.TimeSpan The length of time before the request times out.
resourceuri System.Uri The URI to use when retrieving CLDR data.
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.
The default cache directory used is retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( System.TimeSpan timeout, Uri resourceuri, System.TimeSpan cachettl ) : System
timeout System.TimeSpan The length of time before the request times out.
resourceuri System.Uri The URI to use when retrieving CLDR data.
cachettl System.TimeSpan /// Expiry time for downloaded data; unless this TTL has expired a cached version will be used. ///
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.
public OnlineValuesTZMapper ( System.TimeSpan timeout, Uri resourceuri, System.TimeSpan cachettl, string cachedirectory ) : System
timeout System.TimeSpan The length of time, in milliseconds, before the request times out.
resourceuri System.Uri The URI to use when retrieving CLDR data.
cachettl System.TimeSpan /// Expiry time for downloaded data; unless this TTL has expired a cached version will be used. ///
cachedirectory string The directory to use to store a cached version of the data.
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURL.
By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( System.TimeSpan timeout, string resourceurl ) : System
timeout System.TimeSpan The length of time before the request times out.
resourceurl string The URL to use when retrieving CLDR data.
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and DEFAULTRESOURCEURL as resourceURL.
By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( int timeout ) : System
timeout int The length of time, in milliseconds, before the request times out.
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.
By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( int timeout, Uri resourceuri ) : System
timeout int The length of time, in milliseconds, before the request times out.
resourceuri System.Uri The URI to use when retrieving CLDR data.
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.
The default cache directory used is retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( int timeout, Uri resourceuri, System.TimeSpan cachettl ) : System
timeout int The length of time, in milliseconds, before the request times out.
resourceuri System.Uri The URI to use when retrieving CLDR data.
cachettl System.TimeSpan /// Expiry time for downloaded data; unless this TTL has expired a cached version will be used. ///
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURI.
public OnlineValuesTZMapper ( int timeout, Uri resourceuri, System.TimeSpan cachettl, string cachedirectory ) : System
timeout int The length of time before the request times out.
resourceuri System.Uri The URI to use when retrieving CLDR data.
cachettl System.TimeSpan /// Expiry time for downloaded data; unless this TTL has expired a cached version will be used. ///
cachedirectory string The directory to use to store a cached version of the data.
return System

OnlineValuesTZMapper() public method

Initializes a new instance of an OnlineValuesTZMapper with the specified timeout and resourceURL.
By default, the data retrieved is cached for the default cache TTL time in the user's temporary folder retrieved from Path.GetTempPath.
public OnlineValuesTZMapper ( int timeout, string resourceurl ) : System
timeout int The length of time, in milliseconds, before the request times out.
resourceurl string The URL to use when retrieving CLDR data.
return System

Property Details

DEFAULTCACHETTL public_oe static_oe property

Default cache TTL time.
public static TimeSpan,System DEFAULTCACHETTL
return System.TimeSpan