Autofac.Extras.DynamicProxy
7.0.0
See the version list below for details.
dotnet add package Autofac.Extras.DynamicProxy --version 7.0.0
NuGet\Install-Package Autofac.Extras.DynamicProxy -Version 7.0.0
<PackageReference Include="Autofac.Extras.DynamicProxy" Version="7.0.0" />
paket add Autofac.Extras.DynamicProxy --version 7.0.0
#r "nuget: Autofac.Extras.DynamicProxy, 7.0.0"
// Install Autofac.Extras.DynamicProxy as a Cake Addin
#addin nuget:?package=Autofac.Extras.DynamicProxy&version=7.0.0
// Install Autofac.Extras.DynamicProxy as a Cake Tool
#tool nuget:?package=Autofac.Extras.DynamicProxy&version=7.0.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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Autofac (>= 6.5.0)
- Castle.Core (>= 5.1.1)
-
.NETStandard 2.1
- Autofac (>= 6.5.0)
- Castle.Core (>= 5.1.1)
NuGet packages (263)
Showing the top 5 NuGet packages that depend on Autofac.Extras.DynamicProxy:
Package | Downloads |
---|---|
Volo.Abp.Autofac
Package Description |
|
Autofac.ServiceFabric
Autofac integration for Azure Service Fabric. Provides service factory implementations for Actors, Stateful Services and Stateless Services. |
|
DotFramework.Infra.ExceptionHandling
DotFramework.Infra.ExceptionHandling |
|
Mooho.Base
摩赫基础框架 |
|
Coder.Extension
Coder扩展程序,包含:AutoMapper,Log,CsRedis,Swagger(Knife4j),Cors,Autofac,Hangfire,TimedJob,CAP,SqlSugar,Polly(超时,重试,熔断,降级)等扩展服务和中间件。 |
GitHub repositories (34)
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. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
|
|
anjoy8/Blog.Core
💖 ASP.NET Core 6.0/7.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
|
|
zhontai/Admin.Core
Admin后端,前后端分离的权限管理系统。支持多租户、数据权限、动态Api、任务调度、OSS文件上传、滑块拼图验证、国内外主流数据库自由切换和动态高级查询。基于.Net跨平台开发的WebApi。集成统一认证授权、事件总线、数据验证、分布式缓存、分布式事务、Ip限流、全Api鉴权、集成测试、性能分析、健康检查、接口文档等。
|
Version | Downloads | Last updated |
---|---|---|
7.1.0 | 91,980 | 6/29/2023 |
7.0.0 | 63,025 | 5/26/2023 |
6.0.1 | 2,765,002 | 3/1/2022 |
6.0.0 | 5,475,718 | 9/29/2020 |
5.0.0 | 2,548,716 | 2/13/2020 |
4.5.0 | 3,967,524 | 8/29/2018 |
4.4.0 | 773,641 | 2/12/2018 |
4.3.0 | 15,434 | 2/9/2018 |
4.2.1 | 651,120 | 2/17/2017 |
4.2.0 | 24,157 | 1/26/2017 |
4.1.0 | 142,175 | 9/12/2016 |
4.0.1 | 4,959 | 9/1/2016 |
4.0.0 | 8,613 | 6/30/2016 |
4.0.0-beta8-231 | 1,525 | 10/29/2015 |
4.0.0-beta8-227 | 1,271 | 9/14/2015 |
Release notes are at https://github.com/autofac/Autofac.Extras.DynamicProxy/releases