Exemple #1
0
 public static LocalEventSource Subtract(LocalEventSource eventSource, Delegate eventHandlerDelegate)
 {
     XTask.CurrentExecutingTask.RemoveEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Remove(eventHandlerDelegate);
     return eventSource;
 }
Exemple #2
0
 public static LocalEventSource Subtract(LocalEventSource eventSource, Delegate eventHandlerDelegate)
 {
     XTask.CurrentExecutingTask.RemoveEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Remove(eventHandlerDelegate);
     return(eventSource);
 }
Exemple #3
0
 public static LocalEventSource Add(LocalEventSource eventSource, Delegate eventHandlerDelegate)
 {
     XTask.CurrentExecutingTask.AddEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Add(eventHandlerDelegate);
     return eventSource;
 }
Exemple #4
0
 public static LocalEventSource Add(LocalEventSource eventSource, Delegate eventHandlerDelegate)
 {
     XTask.CurrentExecutingTask.AddEventHandler(eventHandlerDelegate);
     eventSource.Delegates.Add(eventHandlerDelegate);
     return(eventSource);
 }