C# 클래스 Pomona.Common.RequestDispatcher

상속: IRequestDispatcher
파일 보기 프로젝트 열기: Pomona/Pomona

공개 메소드들

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

비공개 메소드들

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

메소드 상세

RequestDispatcher() 공개 메소드

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

SendRequest() 공개 메소드

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

SendRequestAsync() 공개 메소드

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