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.
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.