C# 클래스 Raven.Client.Connection.HttpJsonRequest

A representation of an HTTP json request to the RavenDB server
파일 보기 프로젝트 열기: nhsevidence/ravendb 1 사용 예제들

공개 메소드들

메소드 설명
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