open-feature / dotnet-sdk

.NET implementation of the OpenFeature SDK
https://openfeature.dev
Apache License 2.0
61 stars 17 forks source link

[BUG] Add `targeting key` to evaluation context #230

Closed toddbaert closed 6 months ago

toddbaert commented 6 months ago

We need a targeting key in the evaluation context. It should be added to the builder, and should be immutable (like all the props in the current implementation).


The evaluation context also lacks the required 'targeting key` field

https://github.com/open-feature/dotnet-sdk/blob/2c237df6e0ad278ddd8a51add202b797bf81374e/test/OpenFeature.Tests/OpenFeatureEvaluationContextTests.cs#L46

Originally posted by @roelofb in https://github.com/open-feature/dotnet-sdk/issues/204#issuecomment-1925910926