dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

[FEATURE] Consider exposing TargetingKey with all value exporters

Open Kavindu-Dodan opened this issue 1 year ago • 0 comments

Requirements

Similar to the Java SDK [1], Dotnet SDK EvaluationContext should include targetingKey with bulk exporters.

Currently EvaluationContext exposes AsDictionary() [2] as well as GetEnumerator()[3], but they do not include the targetingKey, which is stored in a dedicated field.

AC

Include the targetingKey in bulk exporters and refactor of the property to match with this change

[1] - https://github.com/open-feature/java-sdk/issues/801 [2] - https://github.com/open-feature/dotnet-sdk/blob/v1.4.1/src/OpenFeature/Model/EvaluationContext.cs#L76 [3] - https://github.com/open-feature/dotnet-sdk/blob/v1.4.1/src/OpenFeature/Model/EvaluationContext.cs#L90

Kavindu-Dodan avatar Feb 14 '24 23:02 Kavindu-Dodan