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

Parameter for Require attribute and resources #655

Jand42 opened this Issue Feb 10, 2017 · 1 comment


None yet
1 participant
Copy link

Jand42 commented Feb 10, 2017

Add constructors to specify extra parameter on Require attribute class, same as Macro.
The value would be passed to the instance in the Resources.Context object, and different parameters would count as a different resource node when exploring dependency graph.

If we add support for it to BaseResource, defining a dependency would be possible without defining a separate class for it, like:

[<Require(typeof<Resources.BaseResource>, "//")>]

This comment has been minimized.

Copy link
Member Author

Jand42 commented Feb 10, 2017

Also RemotingProvider can take parameters, client-side instance will be initialized with these values.

@Jand42 Jand42 closed this in 3adf0be Feb 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.