November 2002
Intermediate to advanced
432 pages
9h 20m
English
One exposes AppDomains to programmers via the System.AppDomain type. Listing 8.1 shows a subset of the public signature of System.AppDomain. The most important member of this type is the CurrentDomain static property. This property simply fetches the AppDomain reference that is stored in the hard thread's TLS. As a point of interest, one can extract the current soft thread object from the hard thread's TLS via the Thread.CurrentThread property.
using System.Security.Policy; namespace System { public sealed class AppDomain : MarshalByRefObject, _AppDomain, // for COM-based hosting System.Security.IEvidenceFactory { // get "current" domain public static AppDomain CurrentDomain ... |
Read now
Unlock full access