Skip to content

Releases: autofac/Autofac

v4.6.2

16 Oct 16:57
Compare
Choose a tag to compare
  • Fix #870: Error building container when class inherits from same generic interface twice.
  • Updated default parameter value handling to account for Core CLR issues:
    • dotnet/corefx#17943
    • dotnet/corefx#12338
    • dotnet/corefx#11797

v4.6.1

25 Jul 12:59
Compare
Choose a tag to compare
  • 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

16 May 12:42
Compare
Choose a tag to compare
  • Fixed #730: Added MatchingLifetimeScopeTags() extension to IComponentRegistration to get scope tags.
  • Fixed #849: Store build callbacks in property bag so modules can add to them.

v4.5.0

05 Apr 13:31
Compare
Choose a tag to compare
  • Added RegisterBuildCallback method to ContainerBuilder that is invoked when the container is built and passed the container instance.

v4.4.0

01 Mar 17:15
Compare
Choose a tag to compare

Added conditional registration support (#469). This includes OnlyIf() and IfNotRegistered() registration extensions.

v4.3.0

17 Jan 12:24
Compare
Choose a tag to compare
  • Fixed #816: Generics constrained with generic parameters do not resolve.
  • Improve #769: Reduced memory usage and resolution time for reflection based activations.
  • Added attribute filtering capability from Autofac.Extras.AttributedMetadata to core Autofac package making it available in .NET Core.

v4.2.1

23 Nov 23:26
Compare
Choose a tag to compare
  • 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

03 Nov 15:58
Compare
Choose a tag to compare
  • 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

18 Oct 16:33
Compare
Choose a tag to compare
  • 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.

v4.1.0

03 Nov 16:05
Compare
Choose a tag to compare

Fixed #789: Property injection was incorrectly considering parameters during resolution. InjectProperties now allows parameters to be passed if that functionality is required.