Method RequirePermission
- Namespace
- MailFathom.Application.Access
- Assembly
- MailFathom.Application.dll
RequirePermission(MailFathomPermission)
Requires that an admitted caller holding one named capability is what reached this use case.
public void RequirePermission(MailFathomPermission permission)
Parameters
permissionMailFathomPermissionThe capability the operation is published under.
Exceptions
- ArgumentException
Thrown when
permissionnames no published capability, which is a defect in the calling use case rather than a refusal.- PrincipalNotAuthorizedException
Thrown when the work was reached under no principal, under a principal that is not a caller, or by a caller whose grant omits the permission.