C# 클래스 Hobsons.WebApiHelpers.CustomHeaderHttpMessageHandler

The custom header http message handler.
상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: HobsonsEMSTechnology/WebApiHelpers

보호된 메소드들

메소드 설명
CustomHeaderHttpMessageHandler ( string customHeaderName ) : System.Net.Http

Initialises a new instance of the CustomHeaderHttpMessageHandler class.

DoesHeaderExist ( HttpRequestMessage requestMessage ) : bool

Checks whether header exists.

ModifyResponse ( HttpResponseMessage responseMessage ) : void

Modify the response.

SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Overrides the default execution.

메소드 상세

CustomHeaderHttpMessageHandler() 보호된 메소드

Initialises a new instance of the CustomHeaderHttpMessageHandler class.
protected CustomHeaderHttpMessageHandler ( string customHeaderName ) : System.Net.Http
customHeaderName string /// The custom header name. ///
리턴 System.Net.Http

DoesHeaderExist() 보호된 메소드

Checks whether header exists.
protected DoesHeaderExist ( HttpRequestMessage requestMessage ) : bool
requestMessage System.Net.Http.HttpRequestMessage /// The request message. ///
리턴 bool

ModifyResponse() 보호된 추상적인 메소드

Modify the response.
protected abstract ModifyResponse ( HttpResponseMessage responseMessage ) : void
responseMessage System.Net.Http.HttpResponseMessage /// The response message. ///
리턴 void

SendAsync() 보호된 메소드

Overrides the default execution.
protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage /// The request. ///
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
리턴 Task