Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/15/11 17:58:28 (13 years ago)
Author:
ascheibe
Message:

#1233

  • some gui additions
  • fix method name casing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs

    r5469 r5472  
    111111
    112112    private void RegisterServiceEvents() {
    113       WcfService.Instance.Connected += new EventHandler(wcfService_Connected);
    114       WcfService.Instance.ExceptionOccured += new EventHandler<EventArgs<Exception>>(wcfService_ExceptionOccured);
     113      WcfService.Instance.Connected += new EventHandler(WcfService_Connected);
     114      WcfService.Instance.ExceptionOccured += new EventHandler<EventArgs<Exception>>(WcfService_ExceptionOccured);
    115115    }
    116116
    117117    private void DeRegisterServiceEvents() {
    118       WcfService.Instance.Connected -= wcfService_Connected;
    119       WcfService.Instance.ExceptionOccured -= wcfService_ExceptionOccured;
    120     }
    121 
    122     void wcfService_ExceptionOccured(object sender, EventArgs<Exception> e) {
     118      WcfService.Instance.Connected -= WcfService_Connected;
     119      WcfService.Instance.ExceptionOccured -= WcfService_ExceptionOccured;
     120    }
     121
     122    void WcfService_ExceptionOccured(object sender, EventArgs<Exception> e) {
    123123      ClientCom.LogMessage("Connection to server interruped with exception: " + e.Value.Message);
    124124    }
    125125
    126     void wcfService_Connected(object sender, EventArgs e) {
     126    void WcfService_Connected(object sender, EventArgs e) {
    127127      ClientCom.LogMessage("Connected successfully to Hive server");
    128128    }
     
    299299        foreach (KeyValuePair<Guid, AppDomain> kvp in appDomains) {
    300300          ClientCom.LogMessage("Shutting down Appdomain for " + kvp.Key);
    301           appDomains[kvp.Key].UnhandledException -= new UnhandledExceptionEventHandler(appDomain_UnhandledException);
     301          appDomains[kvp.Key].UnhandledException -= new UnhandledExceptionEventHandler(AppDomain_UnhandledException);
    302302          AppDomain.Unload(kvp.Value);
    303303        }
     
    417417        try {
    418418          AppDomain appDomain = HeuristicLab.PluginInfrastructure.Sandboxing.SandboxManager.CreateAndInitSandbox(myJob.Id.ToString(), pluginDir, Path.Combine(pluginDir, configFileName));
    419           appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException);
     419          appDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomain_UnhandledException);
    420420          lock (engines) {
    421421            if (!jobs.ContainsKey(myJob.Id)) {
     
    451451    }
    452452
    453     private void appDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
     453    private void AppDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
    454454      ClientCom.LogMessage("Exception in AppDomain: " + e.ExceptionObject.ToString());
    455455      KillAppDomain(new Guid(e.ExceptionObject.ToString()));
     
    492492
    493493          if (appDomains.ContainsKey(id)) {
    494             appDomains[id].UnhandledException -= new UnhandledExceptionEventHandler(appDomain_UnhandledException);
     494            appDomains[id].UnhandledException -= new UnhandledExceptionEventHandler(AppDomain_UnhandledException);
    495495
    496496            int repeat = 5;
Note: See TracChangeset for help on using the changeset viewer.