Replies: 1 comment 6 replies
-
The only way to achieve non-cooperative isolation like this is to run in a separate process. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Coming from here #69899.
Currently the AssemblyLoadContext (ALC) has no complete isolation from the default ALC. In detail, if you have static fields in your default ALC (e.g. logging), the user-created ALC "inherits" already existing static fields.
The get around this you have to load the assembly that contains the static field explicitly in the user-created ALC . The problem is that it is mostly unknown which assemblies have static fields and one has to find out until every assembly needs to be loaded until it works.
As far as I remember AppDomains provided a better isolation. So my question is if there is a way to completely isolate the user-created ALC and to force the ALC to not "inherit" already loaded assemblies, but to really isolate the user-created ALC such that all required assemblies are loaded into the user-created ALC?
Beta Was this translation helpful? Give feedback.
All reactions