Table of Contents

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

period TimeSpan

How long one period lasts.

maximumRuns int

The greatest number of runs one period may admit.

maximumTokens long

The 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.