-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Add support for provider shutdown and status. (#158)
Signed-off-by: Ryan Lamb <[email protected]> Co-authored-by: Todd Baert <[email protected]>
- Loading branch information
1 parent
a2f70eb
commit 24c3441
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.