Merge branch dev with rel-10.3 - #25191
Merged
Merged
Conversation
- Upgrade Autofac from 8.4.0 to 9.1.0 - Upgrade Autofac.Extensions.DependencyInjection from 10.0.0 to 11.0.0 - Upgrade Microsoft.Bcl.AsyncInterfaces from 10.0.2 to 10.0.4 - Remove AnyKeyRegistrationSource (now native in Autofac 9.1.0) - Add MSDI KeyedService.AnyKey to Autofac KeyedService.AnyKey translation - Use Parameters.KeyedServiceKey<object>() for keyed factory key retrieval - Add ExternallyOwned() to instance registrations - Add unit tests for keyed services and AnyKey support
Agent-Logs-Url: https://github.com/abpframework/abp/sessions/c39209b8-1bd6-4fae-b77b-ca167d8098b9 Co-authored-by: maliming <6908465+maliming@users.noreply.github.com>
…ency.11 Upgrade `Autofac.Extensions.DependencyInjection` to 11.0.0
voloagent
marked this pull request as ready for review
April 1, 2026 06:35
voloagent
approved these changes
Apr 1, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Automated merge PR from dev into rel-10.3, bringing in the Autofac upgrade work (including keyed-service compatibility adjustments) plus associated tests and documentation updates.
Changes:
- Upgraded Autofac-related package versions (Autofac 8.4.0 → 9.1.0; Autofac.Extensions.DependencyInjection 10.0.0 → 11.0.0) and Microsoft.Bcl.AsyncInterfaces (10.0.2 → 10.0.4).
- Updated Autofac service-population logic to better handle keyed services (including
AnyKey) and instance ownership/disposal semantics. - Added integration tests covering keyed service resolution (
AnyKey, factories, standard keyed services) and disposal behavior; documented version changes.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
framework/test/Volo.Abp.Autofac.Tests/Volo/Abp/Autofac/AutofacRegistration_Tests.cs |
Adds integration tests for Autofac keyed service behaviors and disposal expectations. |
framework/src/Volo.Abp.Autofac/Autofac/Extensions/DependencyInjection/AutofacRegistration.cs |
Adjusts keyed-service registration/resolve plumbing (notably AnyKey handling and instance ownership). |
docs/en/package-version-changes.md |
Documents package bumps for 10.3.0-rc.1. |
Directory.Packages.props |
Central package version updates for Autofac + related dependencies. |
| @@ -0,0 +1,157 @@ | |||
| using System; | |||
| using System.Threading.Tasks; | |||
There was a problem hiding this comment.
System.Threading.Tasks is not used in this test file; please remove the unused using to avoid build warnings (and potential warnings-as-errors).
Suggested change
| using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR generated automatically to merge dev with rel-10.3. Please review the changed files before merging to prevent any errors that may occur.