Condividi tramite


HttpStandardResiliencePipelineBuilderExtensions.SelectPipelineBy Metodo

Definizione

Indica al generatore sottostante di selezionare l'istanza della pipeline in base al selettore personalizzato.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Http::Resilience::IHttpStandardResiliencePipelineBuilder ^ SelectPipelineBy(Microsoft::Extensions::Http::Resilience::IHttpStandardResiliencePipelineBuilder ^ builder, Func<IServiceProvider ^, Func<System::Net::Http::HttpRequestMessage ^, System::String ^> ^> ^ selectorFactory);
public static Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder SelectPipelineBy (this Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder builder, Func<IServiceProvider,Func<System.Net.Http.HttpRequestMessage,string>> selectorFactory);
static member SelectPipelineBy : Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder * Func<IServiceProvider, Func<System.Net.Http.HttpRequestMessage, string>> -> Microsoft.Extensions.Http.Resilience.IHttpStandardResiliencePipelineBuilder
<Extension()>
Public Function SelectPipelineBy (builder As IHttpStandardResiliencePipelineBuilder, selectorFactory As Func(Of IServiceProvider, Func(Of HttpRequestMessage, String))) As IHttpStandardResiliencePipelineBuilder

Parametri

builder
IHttpStandardResiliencePipelineBuilder

Generatore di pipeline.

selectorFactory
Func<IServiceProvider,Func<HttpRequestMessage,String>>

Factory che restituisce un selettore di chiavi.

Restituisce

Valore di builder.

Commenti

La chiave della pipeline viene usata nelle metriche e nei log, quindi non restituisce valori sensibili.

Si applica a