Closed GoogleCodeExporter closed 8 years ago
Here's the commit:
https://code.google.com/r/daniel-keyedattribute/source/detail?r=a5aff121211b54bb
d0b92b3d3c2d0fe626d84cc1
Original comment by dan...@cazzulino.com
on 6 Jun 2013 at 5:29
I'll see about getting this in shortly.
Something I'm thinking about - if there was an abstract base attribute for
these parameter markings, you could use a single extension method to apply all
the constructor parameter filtering (keyed and metadata) all in one call.
builder.RegisterType<Foo>().WithAttributeFilter();
The attributes could be passed in the lambda with the parameter info and
context and they would individually be responsible for doing the resolution
work. That would also make it so you could add more of these sorts of
attributes easier without adding new extensions - just new attributes.
Original comment by travis.illig
on 7 Jun 2013 at 3:09
YES, totally cool way to improve it!
Original comment by dan...@cazzulino.com
on 7 Jun 2013 at 4:44
I have it working with the mentioned refactor and it's pretty straightforward
to add new filters as needed. Will commit shortly.
Original comment by travis.illig
on 7 Jun 2013 at 5:48
This issue was closed by revision da1c220fbeb8.
Original comment by travis.illig
on 7 Jun 2013 at 6:07
I added the functionality but did not update the version on the
assembly/package since we haven't released since last version update. The same
semantic version change would apply to this new, backwards-compatible
functionality.
Original comment by travis.illig
on 7 Jun 2013 at 6:08
Looks great :)
Original comment by dan...@cazzulino.com
on 7 Jun 2013 at 6:35
Original issue reported on code.google.com by
dan...@cazzulino.com
on 6 Jun 2013 at 4:53