Method Create
- Namespace
- MailFathom.Application.Retrieval.AskMail
- Assembly
- MailFathom.Application.dll
Create(TimeSpan, int, long)
Creates bounds, refusing values no period could admit a question under.
public static MailAnsweringPeriodBounds Create(TimeSpan period, int maximumRuns, long maximumTokens)
Parameters
periodTimeSpanHow long one period lasts.
maximumRunsintThe greatest number of runs one period may admit.
maximumTokenslongThe greatest number of tokens the runs of one period may consume.
Returns
- MailAnsweringPeriodBounds
The validated bounds.
Exceptions
- ArgumentOutOfRangeException
Thrown when the period is not positive, or a ceiling is below one.