Autofac.WebApi2 4.0.0

ASP.NET Web API 2.2 Integration for Autofac

There is a newer version of this package available.
See the version list below for details.
Install-Package Autofac.WebApi2 -Version 4.0.0
dotnet add package Autofac.WebApi2 --version 4.0.0
<PackageReference Include="Autofac.WebApi2" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Autofac.WebApi2 --version 4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Autofac.WebApi2, 4.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Autofac.WebApi2 as a Cake Addin
#addin nuget:?package=Autofac.WebApi2&version=4.0.0

// Install Autofac.WebApi2 as a Cake Tool
#tool nuget:?package=Autofac.WebApi2&version=4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Fixed #6 and #14: The Autofac filter interfaces now use Task/async based method signatures rather than synchronous signatures. This avoids using Task.Run or other methods to convert async to synchronous where HttpContext.Current could sometimes get lost.

Fixed #8: Marked RegisterModelBinders as obsolete since it doesn't actually register the model binders such that they hook into dependency injection. Use the AsModelBinderForTypes() extension on binder registrations instead.

Fixed #10: Controller types that derive from base controllers can add action filters to non-virtual methods.

Switched to .NET 4.5 security model (no more AllowPartiallyTrustedCallersAttribute).

NuGet packages (80)

Showing the top 5 NuGet packages that depend on Autofac.WebApi2:

Package Downloads
Autofac Web API Owin Integration
Productivity enhancements to Autofac WebApi Integration
Framework for BumperLane API sites
Data transfer objects for TouchConvert version one APIs.

GitHub repositories (27)

Showing the top 5 popular GitHub repositories that depend on Autofac.WebApi2:

Repository Stars
Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
OpenID Connect Provider and OAuth 2.0 Authorization Server Framework for ASP.NET 4.x/Katana
NuGet Gallery is a package repository that powers Use this repo for reporting issues.
ASP.NET Web API CacheOutput - library to allow you to cache the output of ApiControllers
Fluent testing framework for ASP.NET Web API 2.

Version History

Version Downloads Last updated
6.0.1 198,809 12/1/2020
6.0.0 143,447 9/30/2020
5.0.0 1,048,078 1/30/2020
4.3.1 1,108,282 9/5/2019
4.3.0 121,922 8/15/2019
4.2.1 1,031,062 3/26/2019
4.2.0 1,945,524 6/21/2018
4.1.0 2,661,902 8/2/2017
4.0.1 2,323,453 10/24/2016
4.0.0 1,688,865 8/17/2016
4.0.0-rc3-225 3,045 8/3/2016
4.0.0-beta7-215 31,827 9/23/2015
3.4.0 3,033,931 8/17/2014
3.3.3 137,470 7/2/2014
3.3.0 43,120 5/9/2014
3.2.1 22,415 3/27/2014
3.2.0 52,226 1/28/2014
3.1.0 34,378 12/28/2013
3.0.0 30,752 10/24/2013
Show less