Application Domain Creation
This feature lets you isolate your application safely from others. Load assemblies into your application domain and if it dies it wont kill anything else!
Use SystemAppDomain.CreateDomain.
Sample Code:
----AppDomainSetup sup = new AppDomainSetup();
----sup.ApplicationBase = @"c:\RootDir";
----sup.ConfigurationFile = "test.Config";
----sup.PrivateBinPath = "bin;external;";
----AppDomain newDom = AppDomain.CreateDomain("A new domain", null, setupInfo);
** Once you've created the application domain you need to keep a reference to it as there is no known method of getting a list of created application domains.
No comments:
Post a Comment