public LocalLoader(AppDomain appDomain) { this.appDomain = appDomain; string name = Assembly.GetExecutingAssembly().GetName().FullName; remoteLoader = (RemoteLoader)appDomain.CreateInstanceAndUnwrap( name, typeof(RemoteLoader).FullName); }
public LocalLoader(AppDomain appDomain) { this.appDomain = appDomain; /*AppDomainSetup setup = new AppDomainSetup(); * setup.ApplicationName = "Test"; * setup.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory; * setup.PrivateBinPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "private"); * setup.CachePath = setup.ApplicationBase; * setup.ShadowCopyFiles = "true"; * setup.ShadowCopyDirectories = setup.ApplicationBase;*/ //appDomain = AppDomain.CreateDomain("TestDomain", null, setup); string name = Assembly.GetExecutingAssembly().GetName().FullName; remoteLoader = (RemoteLoader)appDomain.CreateInstanceAndUnwrap( name, typeof(RemoteLoader).FullName); }