FeatureFlagClient Class
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.
The FeatureFlagClient allows you to create, retrieve, update, and delete FeatureFlag entities in an Azure App Configuration store. It is created directly, just like a ConfigurationClient.
public class FeatureFlagClient
type FeatureFlagClient = class
Public Class FeatureFlagClient
- Inheritance
-
FeatureFlagClient
Constructors
| Name | Description |
|---|---|
| FeatureFlagClient() |
Initializes a new instance of the FeatureFlagClient class for mocking. |
| FeatureFlagClient(String, FeatureFlagClientOptions) |
Initializes a new instance of the FeatureFlagClient class. |
| FeatureFlagClient(String) |
Initializes a new instance of the FeatureFlagClient class. |
| FeatureFlagClient(Uri, TokenCredential, FeatureFlagClientOptions) |
Initializes a new instance of the FeatureFlagClient class. |
| FeatureFlagClient(Uri, TokenCredential) |
Initializes a new instance of the FeatureFlagClient class. |
Properties
| Name | Description |
|---|---|
| Pipeline |
The HTTP pipeline for sending and receiving REST requests and responses. |
Methods
| Name | Description |
|---|---|
| AddFeatureFlag(FeatureFlag, CancellationToken) |
Creates a FeatureFlag only if the feature flag does not already exist in the configuration store. |
| AddFeatureFlag(String, Boolean, String, CancellationToken) |
Creates a FeatureFlag if the feature flag, uniquely identified by name and label, does not already exist in the configuration store. |
| AddFeatureFlagAsync(FeatureFlag, CancellationToken) |
Creates a FeatureFlag only if the feature flag does not already exist in the configuration store. |
| AddFeatureFlagAsync(String, Boolean, String, CancellationToken) |
Creates a FeatureFlag if the feature flag, uniquely identified by name and label, does not already exist in the configuration store. |
| DeleteFeatureFlag(FeatureFlag, Boolean, CancellationToken) |
Delete a FeatureFlag from the configuration store. |
| DeleteFeatureFlag(String, String, CancellationToken) |
Delete a FeatureFlag from the configuration store. |
| DeleteFeatureFlagAsync(FeatureFlag, Boolean, CancellationToken) |
Delete a FeatureFlag from the configuration store. |
| DeleteFeatureFlagAsync(String, String, CancellationToken) |
Delete a FeatureFlag from the configuration store. |
| GetFeatureFlag(FeatureFlag, Boolean, CancellationToken) |
Retrieve an existing FeatureFlag from the configuration store. |
| GetFeatureFlag(FeatureFlag, DateTimeOffset, CancellationToken) |
Retrieve an existing FeatureFlag from the configuration store. |
| GetFeatureFlag(String, String, CancellationToken) |
Retrieve an existing FeatureFlag, uniquely identified by name and label, from the configuration store. |
| GetFeatureFlagAsync(FeatureFlag, Boolean, CancellationToken) |
Retrieve an existing FeatureFlag from the configuration store. |
| GetFeatureFlagAsync(FeatureFlag, DateTimeOffset, CancellationToken) |
Retrieve an existing FeatureFlag from the configuration store. |
| GetFeatureFlagAsync(String, String, CancellationToken) |
Retrieve an existing FeatureFlag, uniquely identified by name and label, from the configuration store. |
| GetFeatureFlagRevisions(FeatureFlagSelector, CancellationToken) |
Retrieves the revisions of one or more FeatureFlag entities that match the options specified in the passed-in FeatureFlagSelector. |
| GetFeatureFlagRevisionsAsync(FeatureFlagSelector, CancellationToken) |
Retrieves the revisions of one or more FeatureFlag entities that match the options specified in the passed-in FeatureFlagSelector. |
| GetFeatureFlags(FeatureFlagSelector, CancellationToken) |
Retrieves one or more FeatureFlag entities that match the options specified in the passed-in FeatureFlagSelector. |
| GetFeatureFlagsAsync(FeatureFlagSelector, CancellationToken) |
Retrieves one or more FeatureFlag entities that match the options specified in the passed-in FeatureFlagSelector. |
| GetLabels(FeatureFlagLabelSelector, CancellationToken) |
Gets a list of feature flag labels that match the options specified in the passed-in FeatureFlagLabelSelector. |
| GetLabelsAsync(FeatureFlagLabelSelector, CancellationToken) |
Gets a list of feature flag labels that match the options specified in the passed-in FeatureFlagLabelSelector. |
| SetFeatureFlag(FeatureFlag, Boolean, CancellationToken) |
Creates a FeatureFlag if it doesn't exist or overwrites the existing feature flag in the configuration store. |
| SetFeatureFlag(String, Boolean, String, CancellationToken) |
Creates a FeatureFlag, uniquely identified by name and label, if it doesn't exist or overwrites the existing feature flag in the configuration store. |
| SetFeatureFlagAsync(FeatureFlag, Boolean, CancellationToken) |
Creates a FeatureFlag if it doesn't exist or overwrites the existing feature flag in the configuration store. |
| SetFeatureFlagAsync(String, Boolean, String, CancellationToken) |
Creates a FeatureFlag, uniquely identified by name and label, if it doesn't exist or overwrites the existing feature flag in the configuration store. |