Share via


IContextualFeatureFilter<TContext>.EvaluateAsync Method

Definition

Evaluates the feature filter to see if the filter's criteria for being enabled has been satisfied.

public System.Threading.Tasks.Task<bool> EvaluateAsync (Microsoft.FeatureManagement.FeatureFilterEvaluationContext featureFilterContext, TContext appContext);
abstract member EvaluateAsync : Microsoft.FeatureManagement.FeatureFilterEvaluationContext * 'Context -> System.Threading.Tasks.Task<bool>
Public Function EvaluateAsync (featureFilterContext As FeatureFilterEvaluationContext, appContext As TContext) As Task(Of Boolean)

Parameters

featureFilterContext
FeatureFilterEvaluationContext

A feature filter evaluation context that contains information that may be needed to evaluate the filter. This context includes configuration, if any, for this filter for the feature being evaluated.

appContext
TContext

A context defined by the application that is passed in to the feature management system to provide contextual information for evaluating a feature's state.

Returns

True if the filter's criteria has been met, false otherwise.

Applies to