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

chore(deps): update dependency autofac.extensions.dependencyinjection to v10 #830

Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 2, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Autofac.Extensions.DependencyInjection (source) 9.0.0 -> 10.0.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

autofac/Autofac.Extensions.DependencyInjection (Autofac.Extensions.DependencyInjection)

v10.0.0

Breaking Changes

All instance dependencies are now considered ExternallyOwned which means if you register an object instance in the dependency injection container through this package, when you dispose of the container it will not dispose of the provided instance. This is different than default Autofac behavior. Autofac normally assumes control of registered instances, where the Microsoft DI container does not. This change only affects instances registered using the Microsoft syntax and then populated into Autofac; it does not change the underlying Autofac container.

public class Startup
{
  public void ConfigureServices(IServiceCollection services)
  {
      // The instance `item` here WILL NOT be disposed when the container is disposed
      // because it's registered using Microsoft syntax and will be imported into Autofac.
      var item = new MyDisposableItem();
      services.AddSingleton(item);
  }

  public void ConfigureContainer(ContainerBuilder builder)
  {
      // The instance `item` here WILL be disposed when the container is disposed
      // because it's registered using Autofac syntax directly with Autofac.
      var item = new MyDisposableItem();
      builder.RegisterInstance(item);
  }
}
Additional Changes
  • Optimization for reflection-activated components to avoid adding a parameter in the resolve path if possible. (@​alistairjevans #​119)
  • Updated Autofac dependency to 8.1.0.

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


Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from tnotheis as a code owner September 2, 2024 13:01
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Sep 2, 2024
@tnotheis tnotheis merged commit 7378857 into main Sep 2, 2024
25 checks passed
@tnotheis tnotheis deleted the renovate/autofac.extensions.dependencyinjection-10.x branch September 2, 2024 13:34
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.

1 participant