Table of Contents

Class ClientSignal

Namespace
MailFathom.Application.Signals
Assembly
MailFathom.Application.dll

One statement that something changed for one mailbox or one user, carrying no mail.

public sealed class ClientSignal
Inheritance
ClientSignal
Inherited Members

Remarks

A signal is an instruction to look again rather than a payload to keep. It names what changed and for whom, and the client re-reads over the authenticated routes it already has — the one exception being MailFlagsChanged, which states where two flags stand because they are the only change a client can apply without deciding whether a row still belongs where it is drawn. That keeps ADR 0028 intact: nothing new is stored on a device, and a client whose channel is down behaves exactly as one that never had it.

No mail crosses. A count, an account alias, a folder alias, a stored identity, a server flag, a state, and a run with the sequence it has reached are the whole vocabulary; no subject, address, body fragment, filename, attachment name, or snippet reaches a signal at any size. RunAdvanced is the kind whose subject is mail-derived and which therefore carries none of it: identifiers and a number, with the answer read back over the run's or the conversation's own route. The one exception is Headline and SecondLine on NotificationRaised, which are the notification record's own already-derived text and reach a client that is entitled to read that record over its own route.

The factories are the only way to compose one, so which fields a kind carries is decided here rather than by each caller, and a kind that carries nothing about mail cannot be handed something about mail by accident.

Fields

MostNamedEmails

The most stored identities one signal names before it stops naming them individually.

Properties

Account

Gets the account the change is in, where the kind names one.

Conversation

Gets the Agent conversation the change is in, and nothing for a Discover run or any other kind.

Count

Gets how many things the change covers, which is the run's arrival count or the unread notification count.

Emails

Gets the stored identities the change names, bounded by MostNamedEmails and empty for every other kind.

Flags

Gets where the two server flags now stand for each email a flag change names, bounded by MostNamedEmails and empty for every other kind.

Folder

Gets the folder the change is in, where the kind names one.

Headline

Gets the notification's own headline, and nothing for every other kind.

Kind

Gets which of the seven kinds this is.

NotificationKind

Gets which kind of notification was written, where the kind reports one.

Run

Gets the run the change is in — a Discover run, or the Agent answer being composed — where the kind names one.

SecondLine

Gets the notification's own second line, and nothing for every other kind.

Sequence

Gets how far that run or conversation has got, counted the way its own record is, and zero for every other kind.

User

Gets the user whose connections this reaches, or nothing when the account decides who it reaches.

Methods

AccountState(MailAccountId)

States that an account's synchronization run finished, so what the client says about it is out of date.

AgentConversationAdvanced(UserId, AgentConversationId, AgentMessageId?, long)

States that an Agent conversation has had more written into it, and how far it has got.

DiscoveryRunAdvanced(UserId, DiscoveryRunId, long)

States that a Discover run has written more of its answer, and how far it has got.

FoldersChanged(MailAccountId)

States that the set of folders an account mirrors has moved.

MailArrived(MailAccountId, MailFolderAlias, int)

States that a synchronization run committed mail into one folder.

MailChanged(MailAccountId, MailFolderAlias, IEnumerable<StoredEmailId>)

States that stored mail in one folder is no longer what a client last read.

MailFlagsChanged(MailAccountId, MailFolderAlias, IEnumerable<SignalledEmailFlags>)

States where the \Seen and \Flagged flags of one folder's mail now stand, nothing else about it having moved.

NotificationRaised(Notification, int)

States that a notification record was written for one person.