Bump Autofac and Autofac.Extensions.DependencyInjection #10
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.
Updated Autofac from 6.4.0 to 8.1.0.
Release notes
Sourced from Autofac's releases.
8.1.0
What's Changed
requiredmember caching (#1415 - thanks @SergeiPavlov!)requiredinfrastructure attributes by (#1421 - thanks @DoctorVanGogh!)Full Changelog: autofac/Autofac@v8.0.0...v8.1.0
8.0.0
Breaking Changes
netcoreapp3.1support/testing (#1401).ResolveRequestinto areadonly struct(#1397 - thanks @SergeiPavlov!).Additional Changes
net8.0target (#1401).Full Changelog: autofac/Autofac@v7.1.0...v8.0.0
7.1.0
What's Changed
RegsiterTypesfiltering. This was an accidental behavior regression where theRegisterTypesmethod wouldn't filter out non-registerable types.RegisterType<T>andRegisterType(Type t)will now throw when non-registerable types are provided, for examplecontainerBuilder.RegisterType<IInterface>()(you can't register interfaces - you can register thingsAs<IInterface>). This used to throw at container build time; now it throws atRegisterTypetime and it has a more precise error message so you can handle these issues more proactively.Full Changelog: autofac/Autofac@v7.0.1...v7.1.0
7.0.1
What's Changed
LifetimeScope.CreateSharedInstance(thanks @botinko)Autofac.Features.OpenGenerics.OpenGenericServiceBinder.TryBindOpenGenericTypedService(thanks @SergeiPavlov)Full Changelog: autofac/Autofac@v7.0.0...v7.0.1
7.0.0
Version 7.0.0 is a major increment due to some changes in the target frameworks and some behavioral changes. We summarize these in the documentation, but included here as well:
New Features
requiredwill now be injected by default. As part of this, the default property injector usingPropertiesAutowired()will not inject properties markedrequired. The documentation has more explanation with examples.AssemblyLoadContextby lifetime scope. A new method,BeginLoadContextLifetimeScope, has been added that allows you to create a lifetime scope tied to a specificAssemblyLoadContext. When the scope is disposed, Autofac will perform a best-effort release of all references to types from that context so the assemblies can be unloaded. The documentation explains this in greater detail.Issues and PRs
Full Changelog: autofac/Autofac@v6.5.0...v7.0.0
Breaking Changes
net50no longer targeted. Autofac will still work with .NET 5 via thenetstandard2.1target, but we recommend you upgrade to a later, supported version of .NET.requiredwill now be injected by default. As noted above,requiredproperties will be injected. This is a behavioral change from Autofac 6.0.requiredproperties. UsingPropertiesAutowired()will ignorerequiredproperties because it's assumed they must be set during construction rather than post-object-creation.RegisterGeneratedFactoryis obsolete. This feature has been replaced by theFunc<X, Y, B>built-in relationship and delegate factories.ILifetimeScopehas a newBeginLoadContextLifetimeScopemethod. If you have mocks ofILifetimeScopethis method must now be implemented.6.5.0
Autofac.Core.ReflectionCacheSet(#1341). This is part of an effort to support unloadingAssemblyLoadContextsassociated with child scopes and enable better plugin support (#1324).IDecoratorContextnow extendsIComponentContextso decorator decisions can be made based on the constructed container (#1338, #1352).Full Changelog: autofac/Autofac@v6.4.0...v6.5.0
Commits viewable in compare view.
Updated Autofac.Extensions.DependencyInjection from 8.0.0 to 10.0.0.
Release notes
Sourced from Autofac.Extensions.DependencyInjection's releases.
10.0.0
Breaking Changes
All instance dependencies are now considered
ExternallyOwnedwhich 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.Additional Changes
Full Changelog: autofac/Autofac.Extensions.DependencyInjection@v9.0.0...v10.0.0
9.0.0
Breaking Changes
netcoreapp3.1andnet5.0Additional Changes
IKeyedServiceProvider,IServiceProviderIsKeyedService, support forAnyKey) to match Microsoft.Extensions.DependencyInjection feature updates for .NET 8. (#115)Full Changelog: autofac/Autofac.Extensions.DependencyInjection@v8.0.0...v9.0.0
Commits viewable in compare view.
You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)