Share via


TargetingFilter Constructor

Definition

Creates a targeting feature filter.

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)

Parameters

options
IOptions<TargetingEvaluationOptions>

Options controlling the behavior of the targeting evaluation performed by the filter.

contextAccessor
ITargetingContextAccessor

An accessor used to acquire the targeting context for use in feature evaluation.

loggerFactory
ILoggerFactory

A logger factory for creating loggers.

Applies to