C# Class EventStore.Transport.Http.Client.HttpAsyncClient

Inheritance: IHttpClient
显示文件 Open project: EventStore/EventStore Class Usage Examples

Public Methods

Method Description
Delete ( string url, Action onSuccess, Action onException ) : void
Get ( string url, Action onSuccess, Action onException ) : void
Get ( string url, string>.IEnumerable headers, Action onSuccess, Action onException ) : void
HttpAsyncClient ( System.TimeSpan timeout ) : System
Post ( string url, string body, string contentType, Action onSuccess, Action onException ) : void
Post ( string url, string body, string contentType, string>.IEnumerable headers, Action onSuccess, Action onException ) : void
Put ( string url, string body, string contentType, Action onSuccess, Action onException ) : void

Private Methods

Method Description
HttpAsyncClient ( ) : System
Receive ( string method, string url, string>.IEnumerable headers, Action onSuccess, Action onException ) : void
RequestSent ( EventStore.Transport.Http.Client.ClientOperationState state ) : Action>
ResponseRead ( EventStore.Transport.Http.Client.ClientOperationState state ) : Action>
Send ( string method, string url, string body, string contentType, string>.IEnumerable headers, Action onSuccess, Action onException ) : void

Method Details

Delete() public method

public Delete ( string url, Action onSuccess, Action onException ) : void
url string
onSuccess Action
onException Action
return void

Get() public method

public Get ( string url, Action onSuccess, Action onException ) : void
url string
onSuccess Action
onException Action
return void

Get() public method

public Get ( string url, string>.IEnumerable headers, Action onSuccess, Action onException ) : void
url string
headers string>.IEnumerable
onSuccess Action
onException Action
return void

HttpAsyncClient() public method

public HttpAsyncClient ( System.TimeSpan timeout ) : System
timeout System.TimeSpan
return System

Post() public method

public Post ( string url, string body, string contentType, Action onSuccess, Action onException ) : void
url string
body string
contentType string
onSuccess Action
onException Action
return void

Post() public method

public Post ( string url, string body, string contentType, string>.IEnumerable headers, Action onSuccess, Action onException ) : void
url string
body string
contentType string
headers string>.IEnumerable
onSuccess Action
onException Action
return void

Put() public method

public Put ( string url, string body, string contentType, Action onSuccess, Action onException ) : void
url string
body string
contentType string
onSuccess Action
onException Action
return void