-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEventArgs.cs
27 lines (26 loc) · 956 Bytes
/
EventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
namespace Pooler {
/// <summary>
/// Event arguments object with Exceptions field as List<Exception> of synchronously executed threads catched exceptions.
/// </summary>
public class AllDoneEventArgs: EventArgs {
public List<Exception> Exceptions = new List<Exception>();
public int PeakThreadsCount = 0;
public int ExecutedTasksCount = 0;
}
/// <summary>
/// Event arguments object with possible task result and currently and simultaneously running threads count in threads pool.
/// </summary>
public class TaskDoneEventArgs: EventArgs {
public object TaskResult = null;
public int RunningTasksCount = 0;
public int ExecutedTasksCount = 0;
}
/// <summary>
/// Event arguments object with Exception field as Exception of synchronously executed thread catched exception.
/// </summary>
public class ExceptionEventArgs: EventArgs {
public Exception Exception = null;
}
}