共用方式為


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 的值。

備註

管線金鑰用於計量和記錄中,因此請勿傳回任何敏感性值。

適用於