Ignore:
Timestamp:
2/8/2010 6:44:59 AM (2 years ago)
Author:
lowjoel
Message:

Removed the TaskProcessing? and TaskProcessed? events in Executor which duplicate the TaskStarted? and TaskFinished? events in Task. The TaskEventArgs? class can't disappear just yet as the TaskAdded? and TaskDeleted? events still need them (the sender is not the task, it's the executor) Addresses #275: Code Review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser.Manager/Executor.cs

    r1681 r1765  
    126126                TaskDeleted(this, e); 
    127127        } 
    128  
    129         /// <summary> 
    130         /// The task processing event object. 
    131         /// </summary> 
    132         public EventHandler<TaskEventArgs> TaskProcessing { get; set; } 
    133  
    134         /// <summary> 
    135         /// Helper function for the Task processing event. 
    136         /// </summary> 
    137         protected void OnTaskProcessing(TaskEventArgs e) 
    138         { 
    139             if (TaskProcessing != null) 
    140                 TaskProcessing(this, e); 
    141         } 
    142  
    143         /// <summary> 
    144         /// The task processed event object. 
    145         /// </summary> 
    146         public EventHandler<TaskEventArgs> TaskProcessed { get; set; } 
    147  
    148         /// <summary> 
    149         /// Helper function for the Task processed event. 
    150         /// </summary> 
    151         protected void OnTaskProcessed(TaskEventArgs e) 
    152         { 
    153             if (TaskProcessed != null) 
    154                 TaskProcessed(this, e); 
    155         } 
    156128    } 
    157129 
Note: See TracChangeset for help on using the changeset viewer.