StandardHedgingHandlerBuilderExtensions.SelectPipelineBy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instructs the underlying pipeline builder to select the pipeline instance by custom selector.
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
Parameters
- builder
- IStandardHedgingHandlerBuilder
The builder instance.
- selectorFactory
- Func<IServiceProvider,Func<HttpRequestMessage,String>>
The factory that returns 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
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.