Skip to content

Commit 7af6042

Browse files
committed
AfterRunFail event added to ITask
1 parent b85e6f1 commit 7af6042

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/RecurrentTasks/ITask.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public interface ITask
3737
/// </remarks>
3838
TimeSpan Interval { get; set; }
3939

40+
/// <summary>
41+
/// Raises when exception catched during task run.
42+
/// </summary>
43+
event EventHandler<ExceptionEventArgs> AfterRunFail;
44+
4045
/// <summary>
4146
/// Start task (first run is delayed for 10-30 sec)
4247
/// </summary>

src/RecurrentTasks/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"version": "2.3.0",
2+
"version": "2.4.0",
33
"title": "RecurrentTasks",
44
"copyright": "Dmitry Popov, 2016",
55
"packOptions": {
66
"summary": "RecurrentTasks for .NET allows you to run simple recurrent background tasks with specific intervals, without complex frameworks, persistance, etc...",
77
"tags": [ "task", "job", "recurrent", "recurring", "aspnetcore" ],
88
"owners": [ "Dmitry Popov" ],
9-
"releaseNotes": "Dependencies upgraded to 1.0.0 RTM",
9+
"releaseNotes": "AfterRunFail event added to ITask",
1010
"licenseUrl": "https://github.com/justdmitry/RecurrentTasks/blob/master/LICENSE",
1111
"projectUrl": "https://github.com/justdmitry/RecurrentTasks",
1212
"repository": {

0 commit comments

Comments
 (0)