IoTSharp / SilkierQuartz

SilkierQuartz can host jobs using HostService and Provide a web management tools for Quartz !
http://sq.iotsharp.io/
MIT License
357 stars 71 forks source link

Avoid throwing on CRON parse exceptions #59

Closed giacomodeliberali closed 3 years ago

giacomodeliberali commented 3 years ago

Hi, is there any way to configure the CronExpressionDescriptor to not throw an exception when it encounters a CRON parse error?

https://github.com/maikebing/SilkierQuartz/blob/8369d442b743d175ba1b8f410b20551452bee398/src/SilkierQuartz/Helpers/CronExpressionDescriptor/Options.cs#L4-L25

At the moment the flag is set to true (line 13), but it can not be changed from outside (and it actually throws for some valid expressions). Am I missing some configuration entrypoint?