16.5. Creating New Application Domains

Recall that a single process is capable of hosting multiple application domains via the static AppDomain.CreateDomain() method. While creating new app domains on the fly is a rather infrequent task for most .NET applications, it is important to understand the basics of doing so. For example, as you will see later in this text, when you build dynamic assemblies (see Chapter 17) you will need to install them into a custom app domain. As well, several .NET security APIs require you to understand how to construct new app domains to isolate assemblies based on supplied security credentials.

To investigate how to create new application domains on the fly (and how to load new assemblies into these custom homes), ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth 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.