NCronJob
NCronJob copied to clipboard
[V5] Drop IJobNotificationHandler
I'm not really seeing the value of this anymore.
Given that
-
IExceptionHandleralready handles exceptions - Some minor improvements to
IJobExecutionProgressReportermay allow a client to register to filtered events. This would require at least the following:- Make
ExecutionProgressexpose types and names of jobs - Enhance
IJobExecutionProgressReporteran additional method which could look like `IDisposable Register(FuncExecutionProgress, bool> filterby, <Action<ExecutionProgress> callback);
- Make
Those two things altogether could replace the current value that IJobNotificationHandler serves today.
Just to give some rational: IJobNotificationHandler was my first attempt for "outside observability" and to model job dependencies.
Over time, it might be totally redundant. So yeah, let's remove that bid.