How to use POCOs to run?

I would like to be able to create a runtime proxy for POCO in the same style as in Java using the JRE or cglib proxy libraries.

I saw Castle DynamicProxy that looks like it fits the bill, but the documentation is small. I am also surprised that this kind of thing is not in the .Net Framework itself.

Someone:

  • Do you know about good resources for Castle DynamicProxy?
  • Do you know about alternative approaches?

Thanks!

+3
source share
2 answers

, , , .NET, - , .NET(#, VB.NET) Java :

Java , .

# ( VB.NET IIRC) , .

, - .NET, Java. .NET- "", - .NET "".

.NET DI, - , Castle.

, " " .NET - , .NET, " ", Java. , , . , .

+2

" , .Net Framework".

. , . , RealProxy , , , . -, wrapee ( ?). . - Invoke (IMessage msg) RealProxy. (wrapee) , .

Cavets: MarshalByRef. . . . ILgen - , , .

+1

Source: https://habr.com/ru/post/1711919/


All Articles