Table of Contents

Method TryParse

Namespace
MailFathom.Application.Jobs.Scheduling
Assembly
MailFathom.Application.dll

TryParse(string?, out JobRecurrence?, out string?)

Reads a declared schedule, reporting what is wrong with one this system cannot use.

public static bool TryParse(string? declaration, out JobRecurrence? recurrence, out string? error)

Parameters

declaration string

The schedule as an operator wrote it.

recurrence JobRecurrence

The parsed schedule, or null when the declaration is unusable.

error string

What an operator has to fix, or null when the declaration is usable.

Returns

bool

true when the declaration names a schedule this system runs.

Remarks

The failure is a message rather than an exception, because the one caller that matters is configuration validation and what it needs is every fault of a section in one reading rather than the first one raised.