C# Класс GuaranteedRate.Net.RequestStitching.MessageHandlers.RequestStitchingMessageHandler

Наследование: System.Net.Http.DelegatingHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
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