Method RecordRefusal
- Namespace
- MailFathom.Application.Observability
- Assembly
- MailFathom.Application.dll
RecordRefusal(ProtectedSurface, string, MailFathomPermission, string?)
Records one refusal, on both the counted channel and the one an operator reads.
void RecordRefusal(ProtectedSurface surface, string operation, MailFathomPermission requiredPermission, string? refusedIdentity)
Parameters
surfaceProtectedSurfaceThe surface the refusal happened on.
operationstringMailFathom's own name for the tool or the route that was refused.
requiredPermissionMailFathomPermissionThe permission that would have sufficed, unspecified where the refusal named none.
refusedIdentitystringWhat the caller was admitted as, or null where the work was reached under no principal.
Exceptions
- ArgumentException
Thrown when
operationis empty or white space, which would leave the refusal nothing to be partitioned by.- ArgumentNullException
Thrown when
operationis null.