Table of Contents

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

surface ProtectedSurface

The surface the refusal happened on.

operation string

MailFathom's own name for the tool or the route that was refused.

requiredPermission MailFathomPermission

The permission that would have sufficed, unspecified where the refusal named none.

refusedIdentity string

What the caller was admitted as, or null where the work was reached under no principal.

Exceptions

ArgumentException

Thrown when operation is empty or white space, which would leave the refusal nothing to be partitioned by.

ArgumentNullException

Thrown when operation is null.