Skip to content

Filters

Vivek Maurya edited this page Nov 15, 2022 · 4 revisions

Introduction

A conditional feature flag allows the feature flag to be enabled or disabled dynamically. The application may behave differently, depending on the feature flag criteria. Suppose you want to show your new feature to a small subset of users at first. A conditional feature flag allows you to enable the feature flag for some users while disabling it for others. Feature filters determine the state of the feature flag each time it's evaluated.

The Microsoft.FeatureManagement library includes three feature filters:

  • PercentageFilter enables the feature flag based on a percentage.

  • TimeWindowFilter enables the feature flag during a specified window of time.

  • TargetingFilter enables the feature flag for specified users and groups.