public override async Task ProcessAsync(HttpMessage message, ReadOnlyMemory <PipelinePolicy> pipeline) { message.AddHeader("User-Agent", "ConfiguraingPipelineSample"); await ProcessNextAsync(pipeline, message).ConfigureAwait(false); }
static void AddClientRequestID(HttpMessage message) { message.AddHeader(ClientRequestIdHeader, Guid.NewGuid().ToString()); message.AddHeader(EchoClientRequestId, "true"); }