Table of Contents

Method LeaseScopeOf

Namespace
MailFathom.Application.Mail.Maintenance
Assembly
MailFathom.Application.dll

LeaseScopeOf(StoredMailScope)

Names the lease one scope's walk is held under.

public static WorkScope LeaseScopeOf(StoredMailScope scope)

Parameters

scope StoredMailScope

The account, and the one folder of it, a run walks.

Returns

WorkScope

The scope every segment of a run over that mail asks for.

Remarks

Keyed exactly as the walk's position is, by the account and the folder, with * standing for the whole account. A walk of one folder and a walk of the whole account are two runs with two positions, so they are two leases as well. No user stands in it: a mailbox two people are assigned is one walk rather than two.

A scope the lease cannot carry — longer than it leaves room for, or an account identifier holding a control character — is named by the SHA-256 digest of the account and the folder instead, for the reason a supervised account is: configuration accepts identifiers far longer than a lease scope, and a scope that could not be composed would fail every segment of that run.

Exceptions

ArgumentNullException

Thrown when scope is null.