Bagikan melalui


HttpResiliencePipelineBuilderExtensions.SelectPipelineBy Metode

Definisi

Menginstruksikan penyusun yang mendasar untuk memilih instans alur berdasarkan pemilih kustom.

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

Parameter

builder
IHttpResiliencePipelineBuilder

Instans penyusun.

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

Pabrik yang mengembalikan pemilih kunci.

Mengembalikan

Nilai dari builder.

Keterangan

Kunci alur digunakan dalam metrik dan log, jadi jangan mengembalikan nilai sensitif apa pun.

Berlaku untuk