Share via


TargetingFilter.EvaluateAsync(FeatureFilterEvaluationContext) Method

Definition

Performs a targeting evaluation using the current TargetingContext to determine if a feature should be enabled.

public System.Threading.Tasks.Task<bool> EvaluateAsync (Microsoft.FeatureManagement.FeatureFilterEvaluationContext context);
abstract member EvaluateAsync : Microsoft.FeatureManagement.FeatureFilterEvaluationContext -> System.Threading.Tasks.Task<bool>
override this.EvaluateAsync : Microsoft.FeatureManagement.FeatureFilterEvaluationContext -> System.Threading.Tasks.Task<bool>
Public Function EvaluateAsync (context As FeatureFilterEvaluationContext) As Task(Of Boolean)

Parameters

context
FeatureFilterEvaluationContext

The feature evaluation context.

Returns

True if the feature is enabled, false otherwise.

Implements

Exceptions

Thrown if context is null.

Applies to