Method IsActiveForAsync
- Namespace
- MailFathom.Application.SensitiveContent.Egress
- Assembly
- MailFathom.Application.dll
IsActiveForAsync(MailAccountId, CancellationToken)
Reports whether anything stops one account's message at this kind of egress.
public Task<bool> IsActiveForAsync(MailAccountId account, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account whose message is about to be queued or filed.
cancellationTokenCancellationTokenCancels the read.
Returns
Remarks
Read by a consumer deciding whether work only a screen makes necessary is worth doing — parsing a message back into the values to screen, for one — never as permission to let the act happen unscreened, which is what calling the screen already does when it is inactive.