FeatureSwitcher icon indicating copy to clipboard operation
FeatureSwitcher copied to clipboard

Please document on how to implement dependent features.

Open SleeperSmith opened this issue 11 years ago • 1 comments

I'm sure there's a way to have, say, Feature A to be active only if Feature B is active?

Thanks in advance.

SleeperSmith avatar Nov 14 '13 01:11 SleeperSmith

By now there is no build-in way to do this.

You can implement a behavior to check dependencies by your self. An example of an implementation: https://gist.github.com/mexx/7462904

Currently I don't faced a situation where I needed dependency management, but I thought about it already. A possible way to provide this functionality would be to use a marker interface IDependOn<T> and check the dependency tree when questioned about the state of the dependent feature automatically.

mexx avatar Nov 14 '13 07:11 mexx