Open ProMix0 opened 2 years ago
Ah, unfortunately I don't agree with this particular idea. I think logging and failing is a very good default behaviour, and I would be much more worried about someone misunderstanding the API and forget to call _applicationEnder.ShutDownApplication()
Do you mean situation when default
OnError() => throw new NotImplementedException();
will not be catched?
@GeeWee and what? Method should be virtual
or abstract
?
I would leave it exactly as-is, so ´virtual´ with the same default implementation.
Ok, I got it, I'll revert this change in next commit
Describe the feature
Users must handle exceptions differently. If they don't need
OnError()
, they don't needCriticalBackgroundService
.