Skip to content

v4.0.0

Compare
Choose a tag to compare
@tillig tillig released this 03 Nov 16:07
· 1182 commits to develop since this release
  • New target platform set netstandard1.1. This includes support for .NET Core and UWP (Universal Windows Platform). You can read more about the new netstandard target framework monikers and the associated compatibility on the .NET Core documentation.
  • Implementation of the Microsoft.Extensions.DependencyInjection abstraction. This can be found in the Autofac.Extensions.DependencyInjection NuGet package.
  • The PreserveExistingDefaults option now works correctly across lifetime scopes when registrations are added during the creation of a child lifetime scope.
  • The ability to provide an IPropertySelector to choose which properties should be property injected.
  • More type and component registration descriptions to exception messages for easier debugging.
  • AsImplementedInterfaces now includes the actual interface being registered preventing the need to call AsSelf as well.
  • Performance improvements in a number of core components.
  • A backwards-compatibility polyfill for the Serializable attribute so that .NET 4.5.1 consumers can serialize DependencyResolutionException across AppDomain etc. as was possible prior to migrating to PCL.
  • Details are provided on the specific registration that fails when a tagged lifetime scope can't be found.
  • A DependencyResolutionException is thrown if an InstancePerLifetimeScope service attempts to create an instance of itself during its construction.
  • Added assembly scanning overloads of AsClosedTypesOf that accepts a serviceKey or serviceKeyMapping for keyed registrations.