Should the DynamicProxy IInterceptor or ProxyGenerator lock be cached?

I use StructureMap to enrich some of my objects with an instance call

ProxyGenerator.CreateInterfaceProxyWithTarget(myObject, MYInterceptor)

I currently have MYInterceptorinside my container, should I implement any type of caching for an interceptor?

Second question: should I register mine ProxyGeneratorinside my container, and if so, should I apply any type of caching to it?

+3
source share
1 answer

you will most likely want to reuse the same ProxyGenerator to take advantage of the caching capabilities of your proxy server.

- . ? ? , , , ( , )

+8

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


All Articles