HeaderPropagationApplicationBuilderExtensions.UseHeaderPropagation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增中介軟體,以收集要傳播至 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
參數
要 IApplicationBuilder 加入中介軟體的 。
傳回
作業完成之後的 app
參考。