C# Class TimeZoneMapper.TZMappers.OnlineValuesTZMapper.TimedWebClient

Simple "wrapper class" providing timeouts.
Inheritance: System.Net.WebClient
Exibir arquivo Open project: RobThree/TimeZoneMapper

Public Methods

Method Description
RetrieveCachedString ( Uri uri ) : string
TimedWebClient ( System.TimeSpan timeout, System.TimeSpan ttl, string cachedirectory ) : System

Protected Methods

Method Description
GetWebRequest ( Uri address ) : WebRequest

Private Methods

Method Description
IsFileExpired ( string path, System.TimeSpan ttl ) : bool

Method Details

GetWebRequest() protected method

protected GetWebRequest ( Uri address ) : WebRequest
address System.Uri
return System.Net.WebRequest

RetrieveCachedString() public method

public RetrieveCachedString ( Uri uri ) : string
uri System.Uri
return string

TimedWebClient() public method

public TimedWebClient ( System.TimeSpan timeout, System.TimeSpan ttl, string cachedirectory ) : System
timeout System.TimeSpan
ttl System.TimeSpan
cachedirectory string
return System