.net - Type Caching -


I have this scenario:

I have an assembly with my business object type and this assembly With loads of known typespayayware, with a reflection on the runtime in WCF, but this assembly probably (some developers add a new method or new property, even some functionality might change the bugfix) but the assembly.LoadFile Using the assembly file is locked and I And I can not replace the assembly.

Is there a framework for type caching? View Assembly or Assembly Mod Date? Or is there a way to load without lock assembly?

THX !!!!!!!!

You can not exchange an assembly while the application is running. Even if you use ReflectionOnlyLoad, it gets locked. I think you can not unload the assembly. You need to restart your application.

If you are important to automatically reload assemblies, then you can put everything in an app dotman based on this assembly, and restart the app domain.

P> If you are using GAC, you can install another version of the assembly, you can redirect it and restart the application.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -