Show / Hide Table of Contents

Class WebClientTimeout

Adds a customizable timout to WebClient.

Inheritance
Object
WebClientTimeout
Namespace: NanoByte.Common.Net
Assembly: NanoByte.Common.dll
Syntax
public class WebClientTimeout : WebClient

Constructors

WebClientTimeout()

Creates a new WebClient using DefaultTimeout.

Declaration
public WebClientTimeout()

WebClientTimeout(Int32)

Creates a new WebClient.

Declaration
public WebClientTimeout(int timeout)
Parameters
Type Name Description
Int32 timeout

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

Fields

DefaultTimeout

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

Declaration
public const int DefaultTimeout = 20000
Field Value
Type Description
Int32

Methods

GetWebRequest(Uri)

Declaration
protected override WebRequest GetWebRequest(Uri address)
Parameters
Type Name Description
Uri address
Returns
Type Description
WebRequest

Extension Methods

UpdateUtils.To<TIn, TOut>(TIn, Func<TIn, TOut>)
JsonStorage.SaveJson<T>(T, Stream)
JsonStorage.SaveJson<T>(T, String)
JsonStorage.ToJsonString<T>(T)
JsonStorage.ReparseAsJson<T>(Object)
JsonStorage.ReparseAsJson<T>(Object, T)
XmlStorage.SaveXml(Object, Stream, String)
XmlStorage.SaveXml<T>(T, String, String)
XmlStorage.ToXmlString(Object, String)
ConversionUtils.ConvertToString<TType>(TType)
In This Article
Back to top Copyright Bastian Eicher