public AppDomainWrapper(string name, QuarantinableAppDomain parent)
        {
            Parent = parent;
            var appDomainSetup = new AppDomainSetup()
            {
                ApplicationBase    = AppDomain.CurrentDomain.BaseDirectory,
                LoaderOptimization = LoaderOptimization.MultiDomainHost
            };

            LinkedDomain   = AppDomain.CreateDomain(name + Interlocked.Increment(ref _instanceCounter), AppDomain.CurrentDomain.Evidence, appDomainSetup);
            LinkedAssembly = LinkedDomain.Load(name);
        }
Esempio n. 2
0
 public BaseWrapperClass(QuarantinableAppDomain linkedQuarantinableAppDomainAppDomain)
 {
     LinkedAppDomainWrapper = linkedQuarantinableAppDomainAppDomain.CurrentAppDomainWrapper;
 }