Good example of use of AppDomain

后端 未结 7 1638
傲寒
傲寒 2020-12-07 10:25

I keep getting asked about AppDomains in interviews, and I know the basics:

  • they are an isolation level within an application (making them different from appl
7条回答
  •  北海茫月
    2020-12-07 11:11

    Probably the most common one is to load assemblies that contain plug-in code from untrusted parties. The code runs in its own AppDomain, isolating the application.

    Also, it's not possible to unload a particular assembly, but you can unload AppDomains.

    For the full rundown, Chris Brumme had a massive blog entry on this:

    http://blogs.msdn.com/cbrumme/archive/2003/06/01/51466.aspx

    https://devblogs.microsoft.com/cbrumme/appdomains-application-domains/

提交回复
热议问题