Table of Contents

Method RequirePermissionAtAnyScope

Namespace
MailFathom.Application.Access
Assembly
MailFathom.Application.dll

RequirePermissionAtAnyScope(MailFathomPermission)

Requires that an admitted caller holding one named capability at any scope is what reached this use case, for an operation that learns its target only by reading it.

public void RequirePermissionAtAnyScope(MailFathomPermission permission)

Parameters

permission MailFathomPermission

The capability the operation is published under.

Remarks

A read addressed by an identity of its own — one queued message — finds the account it belongs to only once it has read the record, so it refuses a caller holding the permission nowhere before reading, and answers one whose scope does not cover what it found exactly as it answers a record it did not find.

Exceptions

ArgumentException

Thrown when permission names no published capability.

PrincipalNotAuthorizedException

Thrown when the work was reached under no principal, under a principal that is not a caller, or by a caller holding the permission nowhere.