Compartir a través de


HttpResiliencePipelineBuilderExtensions.SelectPipelineBy Método

Definición

Indica al generador subyacente que seleccione la instancia de canalización por selector personalizado.

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

Parámetros

builder
IHttpResiliencePipelineBuilder

Instancia del generador.

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

Generador que devuelve un selector de claves.

Devoluciones

El valor de builder.

Comentarios

La clave de canalización se usa en métricas y registros, por lo que no devuelve ningún valor confidencial.

Se aplica a