Skip to content

Releases: autofac/Autofac.WebApi

v6.1.1

02 Aug 19:22
Compare
Choose a tag to compare

What's Changed

  • Removed finalizer from AutofacWebApiDependencyScope so it doesn't stick in the finalizer queue (thanks @srogovtsev! #69)
  • Bump Newtonsoft.Json from 5.0.8 to 13.0.1 for security fix

Full Changelog: v6.1.0...v6.1.1

v6.1.0

18 Nov 19:30
Compare
Choose a tag to compare

What's Changed

  • The current HttpRequestMessage is now held internally using AsyncLocal instead of direct call context access to help with Code Access Security issues - by @pengweiqhca in #65

New Contributors

Full Changelog: v6.0.1...v6.1.0

v6.0.1

01 Dec 13:15
Compare
Choose a tag to compare
  • Fix #59: HttpRequestMessage is disposed after the filters are resolved

v6.0.0

30 Sep 17:20
Compare
Choose a tag to compare

Version 6.0.0 is a compatibility release for Autofac v6.

Breaking change: Starting with Autofac 6.0, we now only target netstandard2.0 and netstandard2.1; we have removed the explicit target for net461.

The impact to you is that, while Autofac will still work on .NET Framework 4.6.1 as it did before, we strongly encourage you to upgrade to .NET Framework 4.7.2 or higher, as per the .NET Standard Documentation, to avoid any of the known dependency issues when using .NET Standard packages in .NET Framework 4.6.1.

v5.0.0

30 Jan 23:14
Compare
Choose a tag to compare

This release is an update for compatibility with Autofac 5.0.0 and requires that new version. Autofac 5.0.0 does have some breaking changes - see the Autofac release notes for more information.

  • Minimum framework updated to .NET 4.6.1.
  • Fix #49: New overloads support async filters.

v4.3.1

05 Sep 19:50
e56de19
Compare
Choose a tag to compare

Fix #45: Registration of filters on base controller classes should work again.

v4.3.0

15 Aug 21:01
d4506ad
Compare
Choose a tag to compare

Fixes:

  • #9: Filters can now be applied via predicate to allow more control over controllers that should use the filter.
  • #17: You can now register a filter for multiple controllers in a single statement.
  • #30: OnActionExecutedAsync no longer calls subsequent filters if the response has been set by a previous filter.
  • #34: Updated the async/await handling of filters to use continuations so context won't be lost.

Autofac.WebApi now includes some code from the open source ASP.NET web stack, licensed under Apache 2.0. While this should not affect consumers of the package from a licensing perspective, if you have forked this repo and/or are distributing your own version of Autofac.WebApi or its components, you should be aware of this update.

v4.2.1

26 Mar 15:39
Compare
Choose a tag to compare

Minor perf improvements.

v4.2.0

21 Jun 18:32
Compare
Choose a tag to compare
  • #28: Removed usage of obsolete ContainerBuilder.Update() to get the current request message into the request lifetime scope.
  • Updated AutofacWebApiDependencyResolver with virtual methods for extensibility.
  • Enabled SourceLink support.

v4.1.0

02 Aug 18:34
Compare
Choose a tag to compare
  • Resolved #16: OnActionExecuted happens in reverse order of filters in OnActionExecuting.
  • Resolved #22: Added HttpConfiguration.RegisterHttpRequestMessage() extension so it can be used without a ContainerBuilder.
  • New feature: Ability for AutofacWebApiDependencyResolver to execute a scope configuration action when creating a request lifetime scope.