-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathProviderStatus.cs
31 lines (27 loc) · 970 Bytes
/
ProviderStatus.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
}
}