-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
Make IDecoratorContext extend IComponentContext. #1352
Conversation
Codecov ReportBase: 77.93% // Head: 77.98% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #1352 +/- ##
===========================================
+ Coverage 77.93% 77.98% +0.05%
===========================================
Files 195 195
Lines 5583 5587 +4
Branches 1119 1119
===========================================
+ Hits 4351 4357 +6
+ Misses 717 716 -1
+ Partials 515 514 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
The only question I have on this one is whether it's actually interesting to have That is, instead of I don't really feel strongly one way or the other, just thought it reasonable to ask the question. Having it derive does provide a shorter syntax for resolution, but it also sort of breaks down the "composability" notion - instead of composing two things together, the two things are sort of merged. Reminds me a little of how ASP.NET has things like |
I do understand your point; I was trying to match the form of I think there are two differences between this and First is perhaps about the complexity/size of the Second, |
Sold. Seems like a reasonable way to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐻❄️
I'll let you delete the feature branch so it doesn't disappear out from under you. |
Fairly simple change this one; added a test to prove resolve from decorator conditional is possible.
Also added a test to prove that if a decorator resolves itself from inside the conditional, it throws a circular dependency exception (rather than stack-overflowing or something).
Closes #1338.