Method TryParse
- Namespace
- Millrace.Scheduling
- Assembly
- Millrace.dll
TryParse(string, out CronExpression?)
Parse(string) without the exception; false and null on anything malformed.
public static bool TryParse(string expression, out CronExpression? parsed)
Parameters
expressionstringparsedCronExpression
Returns
Remarks
What the scheduler uses, because a stored definition with an unparseable cron must be logged and skipped rather than allowed to take down the pass that touches it — one bad definition should not stop every other schedule from firing.