TargetingFilter Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET