Containing Assemblies Through the Use of Appdomains

The key to achieving these goals in the .NET Framework runtime is the use of application domains (usually referred to as appdomains). These are represented by the System.AppDomain managed class. Each appdomain is itself a container for zero or more assemblies and, while assemblies within the same appdomain can interact freely through method calls as we've come to expect, interaction between assemblies in different appdomains is more tightly controlled. This provides the isolation needed between assemblies or groups of assemblies. Figure 10.2 illustrates the relationship between appdomains and assemblies.

Figure 10.2. Containing assemblies within appdomains.

Additionally, evidence can be associated ...

Get .NET Framework Security 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.