6

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?

Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206

2 Answers2

1

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]

Robert Perry
  • 1,906
  • 1
  • 14
  • 14
0

This question is obsolete because I could solve the issue integrating Castle Core 4.x which already provided support to .NET Core!

Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206