C# Class Pomona.Common.RequestDispatcher

Inheritance: IRequestDispatcher
Afficher le fichier Open project: Pomona/Pomona

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

SendRequest() public méthode

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

SendRequestAsync() public méthode

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