Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document on how to implement dependent features. #1

Open
SleeperSmith opened this issue Nov 14, 2013 · 1 comment
Open

Please document on how to implement dependent features. #1

SleeperSmith opened this issue Nov 14, 2013 · 1 comment

Comments

@SleeperSmith
Copy link

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

Thanks in advance.

@mexx
Copy link
Owner

mexx commented Nov 14, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants