Chapter 22. CLR Hosting and AppDomains

In this chapter:

CLR Hosting

AppDomains

AppDomain Unloading

AppDomain Monitoring

AppDomain First-Chance Exception Notifications

How Hosts Use AppDomains

Advanced Host Control

In this chapter, I’ll discuss two main topics that really show off the incredible value provided by the Microsoft .NET Framework: hosting and AppDomains. Hosting allows any application to use the features of the common language runtime (CLR). In particular, this allows existing applications to be at least partially written using managed code. Furthermore, hosting allows applications the ability to offer customization and extensibility via programming.

Allowing extensibility means that third-party code will be running inside your process. In Windows, ...

Get CLR via C#, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.