Table of Contents

Method Rule

Namespace
MailFathom.Domain.Mutations
Assembly
MailFathom.Domain.dll

Rule(string, int)

Names a rule together with the revision of it that asked.

public static MailboxMutationRequester Rule(string ruleName, int revision)

Parameters

ruleName string

The operator's own name for the rule.

revision int

The revision of the rule the request was produced from.

Returns

MailboxMutationRequester

A requester naming that revision of that rule.

Remarks

The revision is part of the identity rather than a column beside it, because the comparison that matters is equality of the whole thing: an edited rule is a different requester and asks again, while an unchanged one re-evaluated on every pass asks once.

Exceptions

ArgumentException

Thrown when ruleName is blank, carries a control character, or is long enough that the composed identity exceeds MaximumIdentityLength.

ArgumentOutOfRangeException

Thrown when revision is negative.