¿El montaje.la usa caché?
-
12-11-2019 - |
Pregunta
Tengo un conjunto de recursos que almacena muchos scripts, estilos y controles reutilizables.No estoy seguro de si debería almacenar en caché este montaje después de cargarlo.¿El montaje.la usa caché interno dentro de la misma aplicación-dominio?
¡Gracias!
Solución
Assemblies when loaded into an AppDomain remain loaded, so there is nothing for you to do, this is the default behaviour.
In fact you will have an issue if you want to unload an Assembly, in that case you need to unload the entire AppDomain, that's why you would often load an assembly into a new AppDomain in your case you wouldn't need to go to that effort.
Otros consejos
It is unclear what sort of "caching" you mean, but once assembly is loaded into AddDomain it remains loaded till AppDomain shut down. So likley you don't need to do any additional caching.