Compartilhar via


StandardHedgingHandlerBuilderExtensions.SelectPipelineBy Método

Definição

Instrui o construtor de pipeline subjacente a selecionar a instância de pipeline por seletor personalizado.

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

Parâmetros

builder
IStandardHedgingHandlerBuilder

A instância do construtor.

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

A fábrica que retorna o seletor de chave.

Retornos

O valor de builder.

Comentários

A chave de pipeline é usada em métricas e logs, portanto, não retorne nenhum valor confidencial.

Aplica-se a