Compartir a través de


HttpStandardResiliencePipelineBuilderExtensions.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::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

Parámetros

builder
IHttpStandardResiliencePipelineBuilder

Generador de canalizaciones.

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