Jaa


HttpStandardResiliencePipelineBuilderExtensions.SelectPipelineBy Method

Definition

Instructs the underlying builder to select the pipeline instance by custom selector.

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

Parameters

builder
IHttpStandardResiliencePipelineBuilder

The pipeline builder.

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

The factory that returns a key selector.

Returns

The value of builder.

Remarks

The pipeline key is used in metrics and logs, so don't return any sensitive values.

Applies to