Hi there,
I can see I can implement my own feature toggles by inheriting FeatureBase. I can see the feature show up in the backend, which is nice.
What is the best way to use it? I am looking for options in both backend code as well as Razor templates. Is that even supported? Is there a static FeatureManager or so? Code I found so far seems to use the DI container to resolve the manager:
var featureManager = DependencyResolver.Current.GetRequiredService<FeatureManager>();
if (featureManager.IsActive<MyNewFeature>()) { ... do something }
Is that the correct approach?
The docs bot suggests Feature<T>IsActive() but I can see it's marked as obsolete...
Imar