You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a full list of options see the [ConfigCat documentation](https://configcat.com/docs/sdk-reference/dotnet/).
93
88
94
-
## EvaluationContext and ConfigCat User relationship
89
+
### Cleaning up
90
+
91
+
On application shutdown, clean up the OpenFeature provider and the underlying ConfigCat client.
92
+
93
+
```csharp
94
+
awaitOpenFeature.Api.Instance.ShutdownAsync();
95
+
```
96
+
97
+
## EvaluationContext and ConfigCat User Object relationship
95
98
96
-
ConfigCat has the concept of Users where you can evaluate a flag based on properties. The OpenFeature SDK has the concept of an EvaluationContext which is a dictionary of string keys and values. The ConfigCat provider will map the EvaluationContext to a ConfigCat User.
99
+
An <ahref="https://openfeature.dev/docs/reference/concepts/evaluation-context"target="_blank">evaluation context</a> in the OpenFeature specification is a container for arbitrary contextual data that can be used as a basis for feature flag evaluation.
100
+
The ConfigCat provider translates these evaluation contexts to ConfigCat [User Objects](https://configcat.com/docs/targeting/user-object/).
97
101
98
-
The ConfigCat User has a few pre-defined parameters that can be used to evaluate a flag. These are:
102
+
The ConfigCat User Object has a few pre-defined attributes that can be used to evaluate a flag. These are:
|`Identifier`|*REQUIRED*. Unique identifier of a user in your application. Can be any `string` value, even an email address. |
107
+
|`Email`| The email address of the user. |
108
+
|`Country`| The country of the user. |
106
109
107
-
Since EvaluationContext is a simple dictionary, the provider will try to match the keys to the ConfigCat User parameters following the table below in a case-insensitive manner.
110
+
Since `EvaluationContext` is a simple dictionary, the provider will try to match the keys to ConfigCat user attributes following the table below in a case-insensitive manner.
108
111
109
-
| EvaluationContext Key | ConfigCat User Parameter|
112
+
| EvaluationContext Key | ConfigCat User Attribute|
0 commit comments