C# Класс Raven.Client.Connection.HttpJsonRequest

A representation of an HTTP json request to the RavenDB server
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddOperationHeaders ( string>.IDictionary operationsHeaders ) : void

Adds the operation headers.

AddOperationHeaders ( NameValueCollection operationsHeaders ) : void

Adds the operation headers.

BeginWrite ( string dataToWrite, AsyncCallback callback, object state ) : IAsyncResult

Begins the write operation

CalculateDuration ( ) : double
EndWrite ( IAsyncResult result ) : void

Ends the write operation.

HandleUnauthorizedResponse ( HttpWebResponse unauthorizedResponse ) : bool
HandleUnauthorizedResponseAsync ( HttpWebResponse unauthorizedResponse ) : Task
ReadResponseString ( ) : string

Reads the response string.

ReadResponseStringAsync ( ) : Task

Begins the read response string.

Write ( string data ) : void

Writes the specified data.

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

Метод Описание
HttpJsonRequest ( string url, string method, RavenJObject metadata, ICredentials credentials, HttpJsonRequestFactory factory, IHoldProfilingInformation owner, DocumentConvention conventions ) : System
InternalReadResponseStringAsync ( int retries ) : Task
ReadStringInternal ( Func getResponse ) : string
RecreateWebRequest ( Action action ) : void
WriteMetadata ( RavenJObject metadata ) : void

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

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

Adds the operation headers.
public AddOperationHeaders ( string>.IDictionary operationsHeaders ) : void
operationsHeaders string>.IDictionary The operations headers.
Результат void

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

Adds the operation headers.
public AddOperationHeaders ( NameValueCollection operationsHeaders ) : void
operationsHeaders NameValueCollection The operations headers.
Результат void

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

Begins the write operation
public BeginWrite ( string dataToWrite, AsyncCallback callback, object state ) : IAsyncResult
dataToWrite string The byte array.
callback AsyncCallback The callback.
state object The state.
Результат IAsyncResult

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

public CalculateDuration ( ) : double
Результат double

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

Ends the write operation.
public EndWrite ( IAsyncResult result ) : void
result IAsyncResult The result.
Результат void

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

public HandleUnauthorizedResponse ( HttpWebResponse unauthorizedResponse ) : bool
unauthorizedResponse System.Net.HttpWebResponse
Результат bool

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

public HandleUnauthorizedResponseAsync ( HttpWebResponse unauthorizedResponse ) : Task
unauthorizedResponse System.Net.HttpWebResponse
Результат Task

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

Reads the response string.
public ReadResponseString ( ) : string
Результат string

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

Begins the read response string.
public ReadResponseStringAsync ( ) : Task
Результат Task

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

Writes the specified data.
public Write ( string data ) : void
data string The data.
Результат void