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); }
public BaseWrapperClass(QuarantinableAppDomain linkedQuarantinableAppDomainAppDomain) { LinkedAppDomainWrapper = linkedQuarantinableAppDomainAppDomain.CurrentAppDomainWrapper; }