NanoByte.Common  2.6.1
NanoByte.Common.Net.WebClientTimeout Class Reference

Adds a customizable timout to WebClient. More...

Inheritance diagram for NanoByte.Common.Net.WebClientTimeout:

Public Member Functions

 WebClientTimeout ()
 Creates a new WebClient using DefaultTimeout. More...
 
 WebClientTimeout (int timeout)
 Creates a new WebClient. More...
 

Static Public Attributes

const int DefaultTimeout = 20000
 The default timeout value, in milliseconds, used when no explicit value is specified. More...
 

Protected Member Functions

override WebRequest GetWebRequest (Uri address)
 

Detailed Description

Adds a customizable timout to WebClient.

Constructor & Destructor Documentation

◆ WebClientTimeout() [1/2]

NanoByte.Common.Net.WebClientTimeout.WebClientTimeout ( )
inline

Creates a new WebClient using DefaultTimeout.

◆ WebClientTimeout() [2/2]

NanoByte.Common.Net.WebClientTimeout.WebClientTimeout ( int  timeout)
inline

Creates a new WebClient.

Parameters
timeoutThe length of time, in milliseconds, before requests made by this WebClient time out.

Member Data Documentation

◆ DefaultTimeout

const int NanoByte.Common.Net.WebClientTimeout.DefaultTimeout = 20000
static

The default timeout value, in milliseconds, used when no explicit value is specified.


The documentation for this class was generated from the following file: