C# 클래스 GuaranteedRate.Net.RequestStitching.MessageHandlers.RequestStitchingMessageHandler

상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: Guaranteed-Rate/Net.RequestStiching

공개 메소드들

메소드 설명
RequestStitchingMessageHandler ( bool generateIfMissing ) : System

Extracts X-Session-Id and X-Request-Id from request header and stores them in the current HTTP context. Adds X-Session-Id and X-Request-Id to the response header.

Use RequestContext.RequestId and RequestContext.SessionId to retrieve the values.

보호된 메소드들

메소드 설명
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

비공개 메소드들

메소드 설명
SetResponseHeader ( HttpResponseMessage response, RequestHeader requestHeader, string value ) : void
StitchRequestHeader ( HttpRequestMessage request, RequestHeader requestHeader ) : string

메소드 상세

RequestStitchingMessageHandler() 공개 메소드

Extracts X-Session-Id and X-Request-Id from request header and stores them in the current HTTP context. Adds X-Session-Id and X-Request-Id to the response header.
Use RequestContext.RequestId and RequestContext.SessionId to retrieve the values.
public RequestStitchingMessageHandler ( bool generateIfMissing ) : System
generateIfMissing bool Sends a Bad Request response if X-Request-Id and X-Session-Id are not include in the request header
리턴 System

SendAsync() 보호된 메소드

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
리턴 Task