共用方式為


TargetingFilter 建構函式

定義

建立目標功能篩選。

public TargetingFilter (Microsoft.Extensions.Options.IOptions<Microsoft.FeatureManagement.FeatureFilters.TargetingEvaluationOptions> options, Microsoft.FeatureManagement.FeatureFilters.ITargetingContextAccessor contextAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.FeatureManagement.FeatureFilters.TargetingFilter : Microsoft.Extensions.Options.IOptions<Microsoft.FeatureManagement.FeatureFilters.TargetingEvaluationOptions> * Microsoft.FeatureManagement.FeatureFilters.ITargetingContextAccessor * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.FeatureManagement.FeatureFilters.TargetingFilter
Public Sub New (options As IOptions(Of TargetingEvaluationOptions), contextAccessor As ITargetingContextAccessor, loggerFactory As ILoggerFactory)

參數

options
IOptions<TargetingEvaluationOptions>

控制篩選準則所執行之目標評估行為的選項。

contextAccessor
ITargetingContextAccessor

用來取得目標內容以用於特徵評估的存取子。

loggerFactory
ILoggerFactory

用於建立記錄器的記錄器處理站。

適用於