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