StandardHedgingHandlerBuilderExtensions.SelectPipelineBy 方法

定义

指示基础管道生成器通过自定义选择器选择管道实例。

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

参数

builder
IStandardHedgingHandlerBuilder

生成器实例。

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

返回键选择器的工厂。

返回

builder 的值。

注解

管道密钥用于指标和日志,因此不要返回任何敏感值。

适用于