You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given you don't need to configure the timestamps to check against, I wouldn't add the additional functionality at the check side, it would still looks like Feature<Sample>.Is().Enabled. You can easily add a behavior function for temporal checks.
If you have to check against different timestamps, I would use FeatureSwitcher.Contexteer and put the timestamp to check against as a property into the IContext instance. You can reuse the same behavior function for temporal checks, parametrized by the timestamp from the context instead of DateTime.Now.
Hi Max,
I am wondering what the preferred method is for extending this framework to support Features that are enabled after some DateTime:
For example:
Configure the DateTime when the feature should start.
Check the feature is enabled.
The text was updated successfully, but these errors were encountered: