C# Class Pomona.Common.RequestDispatcher

Inheritance: IRequestDispatcher
ファイルを表示 Open project: Pomona/Pomona

Public Methods

Method Description
RequestDispatcher ( ClientTypeMapper typeMapper, IWebClient webClient, ITextSerializerFactory serializerFactory, IEnumerable defaultHeaders = null ) : System
SendRequest ( string uri, string httpMethod, object body, ISerializationContextProvider provider, RequestOptions options = null ) : object
SendRequestAsync ( string uri, string httpMethod, object body, ISerializationContextProvider provider, RequestOptions options = null ) : Task

Private Methods

Method Description
AddDefaultHeaders ( HttpRequestMessage request ) : void
Deserialize ( string jsonString, Type expectedType, ISerializationContextProvider serializationContextProvider ) : object
SendHttpRequestAsync ( ISerializationContextProvider serializationContextProvider, string uri, string httpMethod, object requestBodyEntity, TypeSpec requestBodyBaseType, RequestOptions options ) : Task
SendRequestInnerAsync ( string uri, string httpMethod, object body, ISerializationContextProvider provider, RequestOptions options ) : Task

Method Details

RequestDispatcher() public method

public RequestDispatcher ( ClientTypeMapper typeMapper, IWebClient webClient, ITextSerializerFactory serializerFactory, IEnumerable defaultHeaders = null ) : System
typeMapper ClientTypeMapper
webClient IWebClient
serializerFactory ITextSerializerFactory
defaultHeaders IEnumerable
return System

SendRequest() public method

public SendRequest ( string uri, string httpMethod, object body, ISerializationContextProvider provider, RequestOptions options = null ) : object
uri string
httpMethod string
body object
provider ISerializationContextProvider
options RequestOptions
return object

SendRequestAsync() public method

public SendRequestAsync ( string uri, string httpMethod, object body, ISerializationContextProvider provider, RequestOptions options = null ) : Task
uri string
httpMethod string
body object
provider ISerializationContextProvider
options RequestOptions
return Task