-
-
Notifications
You must be signed in to change notification settings - Fork 838
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
Mark RegisterGeneratedFactory obsolete #1366
Conversation
This includes: - GeneratedFactoryActivatorData being obsolete - Suppressing the obsolete warnings around unit tests temporarily until it's removed.
Codecov ReportBase: 78.22% // Head: 78.15% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #1366 +/- ##
===========================================
- Coverage 78.22% 78.15% -0.07%
===========================================
Files 197 197
Lines 5653 5636 -17
Branches 1147 1149 +2
===========================================
- Hits 4422 4405 -17
Misses 716 716
Partials 515 515
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. |
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.
Looks great, only thing I noticed was a possible instance of a missing static
on two of the new local methods.
src/Autofac/Features/Scanning/ScanningRegistrationExtensions.cs
Outdated
Show resolved
Hide resolved
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.
👩🚀
Fix #1297.
This marks
RegisterGeneratedFactory
extensions andGeneratedFactoryActivatorData
with an[Obsolete]
attribute indicating folks should upgrade to useFunc<T>
or delegate factories. Tests for the feature remain, but the obsolete warnings are suppressed around the tests so we don't see them during the build.While I was here I picked up a couple of optimizations based on Roslyn analyzers: