StandardHedgingHandlerBuilderExtensions.SelectPipelineBy 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指示基礎管線產生器依自定義選取器選取管線實例。
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
的值。
備註
管線金鑰用於計量和記錄中,因此請勿傳回任何敏感性值。