Xabaril / Esquio

Esquio is a Feature Toggle Library for .NET Developers.
Apache License 2.0
429 stars 49 forks source link

Improve Toggle executions #86

Closed Xabaril closed 4 years ago

Xabaril commented 4 years ago

At this moment, the base contract for IToggle depends on IRuntimeFeatureStore to get all the configuration data from the store. This is a hard dependency for implementors and also imply many store queries for each feature. DefaultFeatureService do this query and can get all the execution context to check if toggle is active or not.

The proposal is create a new abstraction like ToggleExecutionContext and pass this to all IToggle with the enought information to evaluate toggles.