TargetingFilter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立目標功能篩選。
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
用於建立記錄器的記錄器處理站。