共用方式為


HttpStandardResiliencePipelineBuilderExtensions.SelectPipelineBy 方法

定義

指示基礎產生器依自定義選取器選取管線實例。

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

參數

builder
IHttpStandardResiliencePipelineBuilder

管線產生器。

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

傳回金鑰選取器的處理站。

傳回

builder 的值。

備註

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

適用於