Autofac.Extras.DynamicProxy 6.0.1 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET Standard 2.0
Install-Package Autofac.Extras.DynamicProxy -Version 6.0.1
dotnet add package Autofac.Extras.DynamicProxy --version 6.0.1
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Autofac.Extras.DynamicProxy

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);
    invocation.Proceed();
    _output.WriteLine("Done: result was {0}.", invocation.ReturnValue);
  }
}

Then register your type to be intercepted:

var builder = new ContainerBuilder();
builder.RegisterType<SomeType>()
       .As<ISomeInterface>()
       .EnableInterfaceInterceptors();
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
.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
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 (193)

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 NuGet.org.

Package Description

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

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

DotFramework.Infra.ExceptionHandling

DotFramework.Infra.ExceptionHandling

Coder.Extension

Coder扩展程序,包含:AutoMapper,Log,CsRedis,Swagger(Knife4j),Cors,Autofac,Hangfire,TimedJob,CAP,SqlSugar,Polly(超时,重试,熔断,降级)等扩展服务和中间件。

Mooho.Base

摩赫基础框架

GitHub repositories (30)

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

Repository Stars
abpframework/abp
Open Source Web Application Framework for ASP.NET Core
anjoy8/Blog.Core
💖 ASP.NET Core 6.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
dotnetcore/EasyCaching
: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!
engindemirog/NetCoreBackend
danielpalme/IocPerformance
Performance comparison of .NET IoC containers
Version Downloads Last updated
6.0.1 44,826 3/1/2022
6.0.0 2,503,284 9/29/2020
5.0.0 1,773,510 2/13/2020
4.5.0 3,204,816 8/29/2018
4.4.0 658,026 2/12/2018
4.3.0 10,790 2/9/2018
4.2.1 549,740 2/17/2017
4.2.0 21,854 1/26/2017
4.1.0 115,227 9/12/2016
4.0.1 3,964 9/1/2016
4.0.0 5,315 6/30/2016
4.0.0-beta8-231 1,302 10/29/2015
4.0.0-beta8-227 1,079 9/14/2015