dotnet-sdk
dotnet-sdk copied to clipboard
[FEATURE] Consider exposing TargetingKey with all value exporters
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