Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How DispatchProxy compare to Castle DynamicProxy?

Some time ago I published an open source library which heavily relies on Castle DynamicProxy. Now that .NET Core 1.x RTM is out, I don't find how I could support .NET Core (Castle DynamicProxy still doesn't work on .NET Core...), until I met DispatchProxy class.

Actually there's no comprehensive documentation about the whole class, and it seems like it's too limited compared to Castle DynamicProxy.

In my case, I would need to intercept property setters, and implement some interfaces in generated proxies during run-time.

Does DispatchProxy meet these requirements? Or, what could be a working alternative to generate proxies during run-time on .NET Core?

like image 930
Matías Fidemraizer Avatar asked Nov 09 '22 08:11

Matías Fidemraizer


1 Answers

For anyone else wanting to work with Castle Core and Net Core for generating proxies - there is a GitHub project that simplifies the whole process. SimpleProxy

[Disclaimer: I am the developer of this project]

like image 62
Robert Perry Avatar answered Nov 14 '22 21:11

Robert Perry