Changeset 997 for trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
- Timestamp:
- 12/16/08 22:20:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r993 r997 45 45 46 46 namespace HeuristicLab.Hive.Client.Core { 47 public class Core { 48 47 public class Core: MarshalByRefObject { 49 48 public delegate string GetASnapshotDelegate(); 50 49 51 50 Dictionary<long, Executor> engines = new Dictionary<long, Executor>(); 52 51 Dictionary<long, AppDomain> appDomains = new Dictionary<long, AppDomain>(); 53 54 private ClientCommunicatorClient ccc; 52 55 53 private WcfService wcfService; 56 54 … … 146 144 void wcfService_PullJobCompleted(object sender, PullJobCompletedEventArgs e) { 147 145 if (e.Result.StatusMessage != ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT) { 148 bool sandboxed = false;146 bool sandboxed = true; 149 147 150 148 PluginManager.Manager.Initialize(); 151 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.JobId.ToString(), sandboxed, typeof(TestJob)); 149 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.JobId.ToString(), sandboxed, typeof(TestJob)); 150 appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException); 151 152 152 appDomains.Add(e.Result.JobId, appDomain); 153 153 … … 190 190 return engines; 191 191 } 192 193 void appDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { 194 Logging.GetInstance().Error(this.ToString(), " Exception: " + e.ExceptionObject.ToString()); 195 } 192 196 } 193 197 }
Note: See TracChangeset
for help on using the changeset viewer.