你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FeatureFilter Interface

public interface FeatureFilter

A Filter for Feature Management that is attached to Features. The filter needs to have @Component set to be found by feature management.

Method Summary

Modifier and Type Method and Description
abstract boolean evaluate(FeatureFilterEvaluationContext context)

Evaluates if the filter is on or off.

Method Details

evaluate

public abstract boolean evaluate(FeatureFilterEvaluationContext context)

Evaluates if the filter is on or off. Returning true results in Feature evaluation ending and returning true. Returning false results in the next Feature evaluation to continue.

Parameters:

context - The context for whether or not the filter is passed.

Returns:

True if the feature is enabled, false otherwise.

Applies to