This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
Autofac (source) | nuget | major |
6.5.0 -> 7.0.0
|
v7.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:
required
will now be injected by default. As part of this, the default property injector using PropertiesAutowired()
will not inject properties marked required
. The documentation has more explanation with examples.
AssemblyLoadContext
by lifetime scope. A new method, BeginLoadContextLifetimeScope
, has been added that allows you to create a lifetime scope tied to a specific AssemblyLoadContext
. 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.
Full Changelog: https://github.com/autofac/Autofac/compare/v6.5.0...v7.0.0
net50
no longer targeted. Autofac will still work with .NET 5 via the netstandard2.1
target, but we recommend you upgrade to a later, supported version of .NET.required
will now be injected by default. As noted above, required
properties will be injected. This is a behavioral change from Autofac 6.0.required
properties. Using PropertiesAutowired()
will ignore required
properties because it's assumed they must be set during construction rather than post-object-creation.RegisterGeneratedFactory
is obsolete. This feature has been replaced by the Func<X, Y, B>
built-in relationship and delegate factories.ILifetimeScope
has a new BeginLoadContextLifetimeScope
method. If you have mocks of ILifetimeScope
this method must now be implemented.This MR has been generated by Renovate Bot.