HeaderPropagationApplicationBuilderExtensions.UseHeaderPropagation 方法

定义

添加一个中间件,用于收集要传播到 的 HttpClient标头。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHeaderPropagation(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHeaderPropagation (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseHeaderPropagation : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHeaderPropagation (app As IApplicationBuilder) As IApplicationBuilder

参数

app
IApplicationBuilder

IApplicationBuilder 向其添加中间件的 。

返回

操作完成后对 app 的引用。

适用于