diff --git a/src/RecurrentTasks/ITask.cs b/src/RecurrentTasks/ITask.cs index b974354..3b66545 100644 --- a/src/RecurrentTasks/ITask.cs +++ b/src/RecurrentTasks/ITask.cs @@ -37,6 +37,11 @@ public interface ITask /// TimeSpan Interval { get; set; } + /// + /// Raises when exception catched during task run. + /// + event EventHandler AfterRunFail; + /// /// Start task (first run is delayed for 10-30 sec) /// diff --git a/src/RecurrentTasks/project.json b/src/RecurrentTasks/project.json index 508fc96..b64a00b 100644 --- a/src/RecurrentTasks/project.json +++ b/src/RecurrentTasks/project.json @@ -1,12 +1,12 @@ { - "version": "2.3.0", + "version": "2.4.0", "title": "RecurrentTasks", "copyright": "Dmitry Popov, 2016", "packOptions": { "summary": "RecurrentTasks for .NET allows you to run simple recurrent background tasks with specific intervals, without complex frameworks, persistance, etc...", "tags": [ "task", "job", "recurrent", "recurring", "aspnetcore" ], "owners": [ "Dmitry Popov" ], - "releaseNotes": "Dependencies upgraded to 1.0.0 RTM", + "releaseNotes": "AfterRunFail event added to ITask", "licenseUrl": "https://github.com/justdmitry/RecurrentTasks/blob/master/LICENSE", "projectUrl": "https://github.com/justdmitry/RecurrentTasks", "repository": {