Parameter for Require attribute and resources #655

Closed
Jand42 opened this Issue Feb 10, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@Jand42
Member

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>, "//myurl.com/mylib.js")>]
@Jand42

This comment has been minimized.

Show comment
Hide comment
@Jand42

Jand42 Feb 10, 2017

Member

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

Member

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