Autofac.Extras.DynamicProxy 6.0.1

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET Standard 2.0
dotnet add package Autofac.Extras.DynamicProxy --version 6.0.1
NuGet\Install-Package Autofac.Extras.DynamicProxy -Version 6.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Autofac.Extras.DynamicProxy" Version="6.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Autofac.Extras.DynamicProxy --version 6.0.1
#r "nuget: Autofac.Extras.DynamicProxy, 6.0.1"
#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.Extras.DynamicProxy as a Cake Addin
#addin nuget:?package=Autofac.Extras.DynamicProxy&version=6.0.1

// Install Autofac.Extras.DynamicProxy as a Cake Tool
#tool nuget:?package=Autofac.Extras.DynamicProxy&version=6.0.1


Interceptor and decorator support for Autofac via Castle DynamicProxy.

Build status codecov

Autofac on Stack Overflow

Get Packages

You can get Autofac.Extras.DynamicProxy by grabbing the latest NuGet packages. If you're feeling adventurous, continuous integration builds are on MyGet.

Release notes are available on GitHub.

Get Help

Need help with Autofac? We have a documentation site as well as API documentation. We're ready to answer your questions on Stack Overflow or check out the discussion forum.

If you find a bug with Autofac.Extras.DynamicProxy please file it in that repo.

Get Started

First, create your interceptor:

public class CallLogger : IInterceptor
  TextWriter _output;

  public CallLogger(TextWriter output)
    _output = output;

  public void Intercept(IInvocation invocation)
    _output.Write("Calling method {0}.", invocation.Method.Name);
    _output.WriteLine("Done: result was {0}.", invocation.ReturnValue);

Then register your type to be intercepted:

var builder = new ContainerBuilder();
builder.Register(c => new CallLogger(Console.Out));
var container = builder.Build();
var willBeIntercepted = container.Resolve<ISomeInterface>();

You can read more details in the documentation.

Contributing / Pull Requests

Refer to the Contributor Guide for setting up and building Autofac source.

You can also open this repository right now in VS Code.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (226)

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

Package Downloads
Volo.Abp.Autofac The ID prefix of this package has been reserved for one of the owners of this package by

Package Description

Autofac.ServiceFabric The ID prefix of this package has been reserved for one of the owners of this package by

Autofac integration for Azure Service Fabric. Provides service factory implementations for Actors, Stateful Services and Stateless Services.







GitHub repositories (32)

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

Repository Stars
Open Source Web Application Framework for ASP.NET Core
💖 ASP.NET Core 6.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
:boom: EasyCaching is an open source caching library that contains basic usages and some advanced usages of caching which can help us to handle caching more easier!
Performance comparison of .NET IoC containers
Version Downloads Last updated
6.0.1 1,072,213 3/1/2022
6.0.0 4,240,208 9/29/2020
5.0.0 2,184,799 2/13/2020
4.5.0 3,612,285 8/29/2018
4.4.0 714,572 2/12/2018
4.3.0 12,870 2/9/2018
4.2.1 604,277 2/17/2017
4.2.0 22,483 1/26/2017
4.1.0 131,539 9/12/2016
4.0.1 4,523 9/1/2016
4.0.0 6,596 6/30/2016
4.0.0-beta8-231 1,389 10/29/2015
4.0.0-beta8-227 1,152 9/14/2015