Flagsmith / flagsmith-dotnet-client

.NET Standard Client for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://www.flagsmith.com/
https://www.flagsmith.com/
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

fix: ensure environment is retrieved on startup #74

Closed matthewelwell closed 8 months ago

matthewelwell commented 10 months ago

Ensures that, when the client is run in local evaluation mode, the environment is retrieved synchronously on the initialisation of the client.

This avoids issues where external requests are made to retrieve the flags from the Flagsmith API because the checks in the SDK to determine how to evaluate the flags rely on the existence of the local environment, not the enableLocalEvaluation attribute.