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