Skip to content

Merge branch dev with rel-10.3 - #25191

Merged
voloagent merged 4 commits into
devfrom
auto-merge/rel-10-3/4465
Apr 1, 2026
Merged

Merge branch dev with rel-10.3#25191
voloagent merged 4 commits into
devfrom
auto-merge/rel-10-3/4465

Conversation

@github-actions

@github-actions github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

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.

maliming and others added 4 commits April 1, 2026 09:53
- 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
…ency.11

Upgrade `Autofac.Extensions.DependencyInjection` to 11.0.0
@voloagent
voloagent marked this pull request as ready for review April 1, 2026 06:35
Copilot AI review requested due to automatic review settings April 1, 2026 06:35
@voloagent
voloagent merged commit 5be7169 into dev Apr 1, 2026
2 checks passed
@voloagent
voloagent deleted the auto-merge/rel-10-3/4465 branch April 1, 2026 06:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants