.NET Core Application Domains
summary
Explains that classic AppDomains are removed from .NET Core and that plugin isolation must use AssemblyLoadContext instead, showing why Assembly.LoadFrom fails to resolve dependent DLLs, how custom AssemblyLoadContext subclasses plus a dependency resolver reading deps.json handle resolution, and that unloading is hard (Unload is async, contexts stay alive if any external reference remains). Notes planned .NET Core 3.0 additions: named contexts, default Load implementation, APIs to list contexts and loaded assemblies, and better unload support via Unload()/Unloaded event.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker intro
- 1:08Purpose of application domains
- 3:56How application domains work
- 5:40Advantages of application domains
- 8:49Disadvantages of application domains
- 9:31Application domains in .NET Core
- 11:37Loading assemblies in .NET Core
- 14:48Assembly load contexts explained
- 17:32Assembly load contexts pros and cons
- 24:53.NET Core 3.0 improvements
- 27:19Q&A: Plugins and complex dependencies
- 28:43Q&A: Future of application domains
- 29:25Q&A: Process isolation alternatives
- 30:09Q&A: Production use cases
- 31:37Q&A: Reflection vs interfaces
- 33:42Q&A: Production reliability trade-offs
