Partager via


HeaderPropagationApplicationBuilderExtensions.UseHeaderPropagation Méthode

Définition

Ajoute un intergiciel qui collecte les en-têtes à propager à un 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

Paramètres

app
IApplicationBuilder

IApplicationBuilder à laquelle ajouter le middleware.

Retours

Référence à une app fois l’opération terminée.

S’applique à