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

Show file Open project: EventStore/EventStore Class Usage Examples

Public Methods

Method Description
Delete ( string url, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException ) : void
Get ( string url, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException, string hostHeader = "" ) : void
HttpAsyncClient ( System.TimeSpan timeout ) : System
Post ( string url, string body, string contentType, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException ) : void
Put ( string url, string body, string contentType, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException ) : void

Private Methods

Method Description
AddAuthenticationHeader ( HttpRequestMessage request, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : void
HttpAsyncClient ( ) : System
Receive ( string method, string url, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException, string hostHeader = "" ) : void
RequestSent ( EventStore.ClientAPI.Transport.Http.ClientOperationState state ) : Action>
ResponseRead ( EventStore.ClientAPI.Transport.Http.ClientOperationState state ) : Action>
Send ( string method, string url, string body, string contentType, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException ) : void

Method Details

Delete() public method

public Delete ( string url, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException ) : void
url string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
onSuccess Action
onException Action
return void

Get() public method

public Get ( string url, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException, string hostHeader = "" ) : void
url string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
onSuccess Action
onException Action
hostHeader string
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, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException ) : void
url string
body string
contentType string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
onSuccess Action
onException Action
return void

Put() public method

public Put ( string url, string body, string contentType, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, Action onSuccess, Action onException ) : void
url string
body string
contentType string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
onSuccess Action
onException Action
return void