C# Класс ADBaseLibrary.Helpers.WebStream

Наследование: Stream, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateStream ( string url, string postData, string encoding, string postencoding = "application/x-www-form-urlencoded", string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
Dispose ( ) : void
Flush ( ) : void
Get ( string url, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
GetAllCookiesFromHeader ( IEnumerable headers, string strHost ) : CookieCollection
Post ( string url, string>.Dictionary postdata, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Метод Описание
ConvertCookieArraysToCookieCollection ( ArrayList al, string strHost ) : CookieCollection
ConvertCookieHeaderToArrayList ( IEnumerable headers ) : ArrayList
PopulateHeaders ( HttpRequestMessage msg, NameValueCollection headers ) : void

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

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

public static CreateStream ( string url, string postData, string encoding, string postencoding = "application/x-www-form-urlencoded", string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
url string
postData string
encoding string
postencoding string
uagent string
headers System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieCollection
timeout int
redirect bool
referer string
proxy IWebProxy
Результат Task

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

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

public static Get ( string url, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
url string
encoding string
uagent string
headers System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieCollection
timeout int
redirect bool
referer string
proxy IWebProxy
Результат Task

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

public static GetAllCookiesFromHeader ( IEnumerable headers, string strHost ) : CookieCollection
headers IEnumerable
strHost string
Результат System.Net.CookieCollection

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

public static Post ( string url, string>.Dictionary postdata, string encoding, string uagent = null, NameValueCollection headers = null, CookieCollection cookies = null, int timeout = 10000, bool redirect = true, string referer = null, IWebProxy proxy = null ) : Task
url string
postdata string>.Dictionary
encoding string
uagent string
headers System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieCollection
timeout int
redirect bool
referer string
proxy IWebProxy
Результат Task

Read() публичный Метод

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

Seek() публичный Метод

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Результат long

SetLength() публичный Метод

public SetLength ( long value ) : void
value long
Результат void

Write() публичный Метод

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void