Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/10/09 16:50:26 (15 years ago)
Author:
swagner
Message:

Implemented generic EventArgs (#796)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs

    r2111 r2474  
    2525using HeuristicLab.Core;
    2626using System.Threading;
     27using System.IO;
     28using System.Xml;
     29using System.IO.Compression;
     30using HeuristicLab.Common;
    2731using HeuristicLab.Hive.JobBase;
    2832using HeuristicLab.Hive.Contracts.Interfaces;
     
    3034using HeuristicLab.PluginInfrastructure;
    3135using HeuristicLab.Hive.Contracts.BusinessObjects;
    32 using System.IO;
    33 using System.Xml;
    34 using System.IO.Compression;
    3536using HeuristicLab.Tracing;
    3637
     
    256257    }
    257258
    258     public event EventHandler<OperationEventArgs> OperationExecuted;
     259    public event EventHandler<EventArgs<IOperation>> OperationExecuted;
    259260    /// <summary>
    260261    /// Fires a new <c>OperationExecuted</c> event.
     
    263264    protected virtual void OnOperationExecuted(IOperation operation) {
    264265      if (OperationExecuted != null)
    265         OperationExecuted(this, new OperationEventArgs(operation));
    266     }
    267 
    268     public event EventHandler<ExceptionEventArgs> ExceptionOccurred;
     266        OperationExecuted(this, new EventArgs<IOperation>(operation));
     267    }
     268
     269    public event EventHandler<EventArgs<Exception>> ExceptionOccurred;
    269270    /// <summary>
    270271    /// Aborts the execution and fires a new <c>ExceptionOccurred</c> event.
     
    274275      Abort();
    275276      if (ExceptionOccurred != null)
    276         ExceptionOccurred(this, new ExceptionEventArgs(exception));
     277        ExceptionOccurred(this, new EventArgs<Exception>(exception));
    277278    }
    278279
Note: See TracChangeset for help on using the changeset viewer.