![]() |
VOOZH | about |
dotnet add package Autofac.Extras.DynamicProxy --version 7.1.0
NuGet\Install-Package Autofac.Extras.DynamicProxy -Version 7.1.0
<PackageReference Include="Autofac.Extras.DynamicProxy" Version="7.1.0" />
<PackageVersion Include="Autofac.Extras.DynamicProxy" Version="7.1.0" />Directory.Packages.props
<PackageReference Include="Autofac.Extras.DynamicProxy" />Project file
paket add Autofac.Extras.DynamicProxy --version 7.1.0
#r "nuget: Autofac.Extras.DynamicProxy, 7.1.0"
#:package Autofac.Extras.DynamicProxy@7.1.0
#addin nuget:?package=Autofac.Extras.DynamicProxy&version=7.1.0Install as a Cake Addin
#tool nuget:?package=Autofac.Extras.DynamicProxy&version=7.1.0Install as a Cake Tool
Interceptor and decorator support for Autofac via Castle DynamicProxy.
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.
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.
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.
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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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
摩赫基础框架 |
|
|
Mooho.WMS
摩赫仓库管理系统 |
Showing the top 20 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. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
|
anjoy8/Blog.Core
💖 ASP.NET Core 8.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!
|
|
|
CoreUnion/CoreShop
基于 Asp.Net Core 9.0、Uni-App开发,支持可视化布局的小程序商城系统,前后端分离,支持分布式部署,跨平台运行,拥有分销、代理、团购、拼团、秒杀、直播、优惠券、自定义表单等众多营销功能,拥有完整SKU、下单、售后、物流流程。支持一套代码编译发布微信小程序版、H5版、Android版、iOS版、支付宝小程序版、字节跳动小程序版、QQ小程序版等共10个平台。
|
|
| engindemirog/NetCoreBackend | |
|
xianhc/ape-volo-admin
基于.Net 8 、SqlSugar ORM、Vue 3、RBAC 面向企业场景的权限管理/后台管理系统解决方案
|
|
|
danielpalme/IocPerformance
Performance comparison of .NET IoC containers
|
|
|
luoyunchong/lin-cms-dotnetcore
😃A simple and practical CMS implemented by .NET + FreeSql;前后端分离、Docker部署、OAtuh2授权登录、自动化部署DevOps、自动同步至Gitee、代码生成器、仿掘金专栏
|
|
|
91270/Meiam.System
.NET 8 / .NET 5 WebAPI + Vue 2.0 + RBAC 企业级前后端分离权限框架
|
|
|
engindemirog/KampFinalProject
Yazılım Geliştirici Yetiştirme Kampı Büyük Proje
|
|
|
Coldairarrow/Colder.Fx.Core.AdminLTE
A Web Rapid Development Framework For .NETCore2.2 Based On AdminLTE
|
|
|
anjoy8/Student.Achieve.Manager
🎨学生教学教务管理系统:NetCore 3.1 + Vue + EleUI,(star100+,优化多表联查+录制视频+)
|
|
|
autofac/Examples
Example projects that consume and demonstrate Autofac IoC functionality and integration
|
|
| ergulkizilkaya/ReCapProject | |
| zhaopeiym/IoTClient.Examples | |
|
gulceselim/re-cap-project-with-csharp
Araba Kiralama Sistemi | Kodlama.io | Recap Project
|
|
|
Coldairarrow/Colder.Fx.Net.AdminLTE
A Web Rapid Development Framework For .NET4.472 Based On AdminLTE
|
|
|
guoming/Hummingbird
分布式锁,分布式ID,分布式消息队列、配置中心、注册中心、服务注册发现、超时、重试、熔断、负载均衡
|
|
|
liuhll/silky
The Silky framework is designed to help developers quickly build a microservice development framework through simple code and configuration under the .net platform.
|
|
|
yc-l/yc.boilerplate
YC. Boilerplate is a set of loose coupling, flexible combination, complete functions, convenient development, and reduces the workload of development.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 7.1.0 | 10,829,008 | 6/29/2023 |
| 7.0.0 | 318,610 | 5/26/2023 |
| 6.0.1 | 6,887,391 | 3/1/2022 |
| 6.0.0 | 8,196,474 | 9/29/2020 |
| 5.0.0 | 3,384,172 | 2/13/2020 |
| 4.5.0 | 5,074,094 | 8/29/2018 |
| 4.4.0 | 1,097,379 | 2/12/2018 |
| 4.3.0 | 29,239 | 2/9/2018 |
| 4.2.1 | 897,921 | 2/17/2017 |
| 4.2.0 | 263,977 | 1/26/2017 |
| 4.1.0 | 201,374 | 9/12/2016 |
| 4.0.1 | 9,503 | 9/1/2016 |
| 4.0.0 | 19,504 | 6/30/2016 |
| 4.0.0-beta8-231 | 2,251 | 10/29/2015 |
| 4.0.0-beta8-227 | 2,050 | 9/14/2015 |
Release notes are at https://github.com/autofac/Autofac.Extras.DynamicProxy/releases