Bagikan melalui


HeaderPropagationApplicationBuilderExtensions.UseHeaderPropagation Metode

Definisi

Menambahkan middleware yang mengumpulkan header yang akan disebarluaskan ke 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

Parameter

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan middleware.

Mengembalikan

Referensi ke app setelah operasi selesai.

Berlaku untuk