Autofac.Extras.DynamicProxy 7.1.0
Autofac.Extras.DynamicProxy
Interceptor and decorator support for Autofac via Castle DynamicProxy.
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.
Showing the top 20 packages that depend on Autofac.Extras.DynamicProxy.
Packages | Downloads |
---|---|
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
44 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
45 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
46 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
48 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
49 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
50 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
51 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
52 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
53 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
57 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
61 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
68 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
73 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
106 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
147 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
157 |
Quantum.Framework.Infrastructure
负责提供Ioc, AutoMapper, ScmRuntimeInfo, WorkContext, QuantumContext等核心组件, 不参与非核心组件的功能
|
161 |
.NET 6.0
- Autofac (>= 6.5.0)
- Castle.Core (>= 5.1.1)
.NET Standard 2.0
- Autofac (>= 6.5.0)
- Castle.Core (>= 5.1.1)
.NET Standard 2.1
- Autofac (>= 6.5.0)
- Castle.Core (>= 5.1.1)
Version | Downloads | Last updated |
---|---|---|
7.1.0 | 240 | 02/04/2024 |
7.0.0 | 4 | 06/03/2023 |
6.0.1 | 14,175 | 10/28/2022 |
6.0.0 | 5 | 11/15/2022 |
5.0.0 | 5 | 05/25/2024 |
4.5.0 | 4 | 05/13/2024 |
4.4.0 | 2 | 06/13/2023 |
4.3.0 | 6 | 05/25/2024 |
4.2.1 | 2 | 05/25/2024 |
4.2.0 | 2 | 05/25/2024 |
4.1.0 | 4 | 05/25/2024 |
4.0.1 | 5 | 05/25/2024 |
4.0.0 | 5 | 05/25/2024 |
4.0.0-beta8-231 | 5 | 05/25/2024 |
4.0.0-beta8-227 | 4 | 05/25/2024 |