-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffeat: Add support for provider shutdown and status.
- Loading branch information
1 parent
2cbdba8
commit 73c15d9
Showing
12 changed files
with
1,101 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.ComponentModel; | ||
|
||
namespace OpenFeature.Constant | ||
{ | ||
/// <summary> | ||
/// The state of the provider. | ||
/// </summary> | ||
/// <seealso href="https://github.com/open-feature/spec/blob/main/specification/sections/02-providers.md#requirement-242" /> | ||
public enum ProviderStatus | ||
{ | ||
/// <summary> | ||
/// The provider has not been initialized and cannot yet evaluate flags. | ||
/// </summary> | ||
[Description("NOT_READY")] NotReady, | ||
|
||
/// <summary> | ||
/// The provider is ready to resolve flags. | ||
/// </summary> | ||
[Description("READY")] Ready, | ||
|
||
/// <summary> | ||
/// The provider's cached state is no longer valid and may not be up-to-date with the source of truth. | ||
/// </summary> | ||
[Description("STALE")] Stale, | ||
|
||
/// <summary> | ||
/// The provider is in an error state and unable to evaluate flags. | ||
/// </summary> | ||
[Description("ERROR")] Error | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.