Releases: autofac/Autofac
Releases · autofac/Autofac
v4.6.1
- Fixed #847: ScopeRestrictedRegistry now also applies ComponentRegistrationLifetimeDecorator to registrations from registration sources.
- Fixed #855: Fixed ACTNARS resolve on a closed generic type containing a generic type argument that doesn't match the type predicate passed to the registration source.
- Fixed #746: Registrations added to a nested lifetime scope were not being disposed.
- Fixed #780: Disposal tracking of provided instances is now consistent in root and nested lifetime scopes.
v4.6.0
v4.5.0
v4.4.0
Added conditional registration support (#469). This includes OnlyIf()
and IfNotRegistered()
registration extensions.
v4.3.0
v4.2.1
- Fixed #807: Improves lifetime scope cleanup for shared instances.
- Marked
ContainerBuilder.Update
obsolete
For people using ContainerBuilder.Update
, we have opened a discussion issue to help you try working around use of Update
, explain why we're looking at making it obsolete, and find out where gaps in functionality might be so we can fill those gaps prior to removal.
Fear not, it'll still be around for a while. We just want folks to start looking at fixing things up, or, if it turns out we can't remove Update
, find out why it's required so we can address those challenges.
v4.2.0
- Fixed #495: Improved generic handling in ACTNARS so it no longer interferes with implicit relationship types.
- Fixed #782: Removed the
SerializableAttribute
polyfill from the Autofac assembly. - Added a string/object "properties" dictionary on the
ContainerBuilder
to enable sharing of data across component and module registrations.
v4.1.1
- Fixed #728: AnyConcreteTypeNotAlreadyRegisteredSource now ignores string parameters.
- Fixed #790: ContravariantRegistrationSource now correctly ignores value types.
- Fixed #794: Incorrect handling of generic parameter constraints.
- Fixed #799: Inject unset properties now handles exceptions thrown during property get operations.