-
-
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
Add none generic service middleware registration methods in Autofac #1417
base: develop
Are you sure you want to change the base?
Conversation
These changes introduce new methods to register service middleware in the Autofac library. Also, a new test has been added to Autofac.Specification.Test to ensure that the middleware is getting invoked correctly when a service is registered. These methods allow for more precise control of the pipeline during the resolve request process.
Hi @idiotsky, can you please elaborate on the purpose of these new methods? What issue are you trying to address? Typically we'd raise an issue to discuss a feature request or bug before we open a PR. |
Ah, ok, this is for #1416. |
does my change broken the build, on my side all the test passed? looks the unit test failed not related to my code |
I mean, this isn't a question I can answer off the top of my head, it's just what we see:
Unclear if it's due to a problem in the test or something in this PR or what. But that's what I see - the same thing as you. I kicked off the build again to see if it consistently fails. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1417 +/- ##
===========================================
- Coverage 78.52% 78.51% -0.02%
===========================================
Files 200 200
Lines 5713 5719 +6
Branches 1168 1168
===========================================
+ Hits 4486 4490 +4
- Misses 714 716 +2
Partials 513 513 ☔ View full report in Codecov by Sentry. |
Build seems to be passing now, but it appears the coverage is unhappy. I haven't gotten around to reviewing this yet (but it looks like it's reasonable); I did see there was one unit test added to the Here's what I'd say:
That should take care of the coverage issue and give us a place where we can put additional tests as needed. |
It looks like this has been sitting for a while. My understanding of the status:
We'd love to get this into a new release, but it does need a little more work. If we don't hear back in, say, a month? By end of October 2024? Then we'll close it and not integrate it. |
These changes introduce new methods to register service middleware in the Autofac library. Also, a new test has been added to Autofac.Specification.Test to ensure that the middleware is getting invoked correctly when a service is registered. These methods allow for more precise control of the pipeline during the resolve request process.