Skip to content
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

Bump Autofac.Extensions.DependencyInjection from 6.0.0 to 9.0.0 in /src #34

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 22, 2024

Bumps Autofac.Extensions.DependencyInjection from 6.0.0 to 9.0.0.

Release notes

Sourced from Autofac.Extensions.DependencyInjection's releases.

v9.0.0

Breaking Changes

Additional Changes

  • Added keyed service support (IKeyedServiceProvider, IServiceProviderIsKeyedService, support for AnyKey) to match Microsoft.Extensions.DependencyInjection feature updates for .NET 8. (#115)

Full Changelog: autofac/Autofac.Extensions.DependencyInjection@v8.0.0...v9.0.0

v8.0.0

BREAKING CHANGE: IServiceScopeFactory is now a singleton and child scopes are flat, not hierarchical. Based on #83 and dotnet/runtime#67391, the IServiceScopeFactory is now registered as a singleton. Any scope you create from it is a peer, not a hierarchy like you might see in core Autofac. Even if you create a scope from a scope, it'll use the singleton factory under the covers and all scopes will be peers.

If you are using scopes to isolate units of work, be aware that this breaks the parent/child lifetime scope relationship.

// Based on an IServiceProvider...
IServiceProvider provider = CreateServiceProvider();
// You might want to create nested scopes to track work...
var unitOfWorkOutside = provider.CreateScope();
// And later have a sub-unit-of-work scope inside that...
var unitOfWorkInside = unitOfWorkOutside.ServiceProvider.CreateScope();
// But they're NOT RELATED! They don't share a resolution hierarchy
// so cached instances in the outer scope won't be seen in the inner
// scope. You can dispose that "outer scope" without affecting the
// "inner scope" at all because they're peers, not parent/child.
unitOfWorkOutside.Dispose();
// Still works because it's not a hierarchy!
unitOfWorkInside.ServiceProvider.GetRequiredService<MyService>();

If you need to create hierarchical scopes, you will need to use native Autofac constructs.

// Based on an IServiceProvider...
IServiceProvider provider = CreateServiceProvider();
// You'll need to get an Autofac lifetime scope.
var autofacScope = provider.GetService<ILifetimeScope>();
// Use the Autofac constructs to create hierarchical lifetimes.
var unitOfWorkOutside = autofacScope.BeginLifetimeScope();
// And later have a sub-unit-of-work scope inside that...
</tr></table>

... (truncated)

Commits
  • c4bf6e1 Use latest released Autofac.
  • cd71427 Merge pull request #115 from autofac/feature/keyed-services
  • e04af7c Remove unused resources.
  • 2a52c95 Use latest .NET SDKs.
  • 01eb5b5 Updated dependencies to latest releases.
  • 008ac65 Drop temporary debuggable test fixture.
  • b3872a9 Remove namespace causing an error.
  • ead6ad1 Another comment update.
  • 4a900e5 Comment tidy up.
  • 11d55d5 AnyKey registrations should be included in the results when querying the li...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 22, 2024
@ryjones
Copy link
Contributor

ryjones commented Feb 5, 2024

@dependabot rebase

Bumps [Autofac.Extensions.DependencyInjection](https://github.com/autofac/Autofac.Extensions.DependencyInjection) from 6.0.0 to 9.0.0.
- [Release notes](https://github.com/autofac/Autofac.Extensions.DependencyInjection/releases)
- [Commits](autofac/Autofac.Extensions.DependencyInjection@v6.0.0...v9.0.0)

---
updated-dependencies:
- dependency-name: Autofac.Extensions.DependencyInjection
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/nuget/src/Autofac.Extensions.DependencyInjection-9.0.0 branch from e8f7a9d to 1632d5f Compare February 5, 2024 14:02
@ryjones ryjones requested review from JoTiTu and ntsbs February 5, 2024 14:03
@ryjones ryjones requested review from a team and removed request for ntsbs and JoTiTu February 5, 2024 14:09
@JoTiTu JoTiTu closed this Feb 5, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 5, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/nuget/src/Autofac.Extensions.DependencyInjection-9.0.0 branch February 5, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants