Class NotificationRaiser
- Namespace
- MailFathom.Application.Notifications
- Assembly
- MailFathom.Application.dll
Writes one notification and tells whatever that person already has open about it.
public sealed class NotificationRaiser
- Inheritance
-
NotificationRaiser
- Inherited Members
Remarks
The two halves are one act rather than two a producer remembers to perform in order, which is why they are here rather than in each producer: a row nobody announced is a bell that waits for the next interval, and an announcement of a row the deduplication rule folded away is a bell drawn for a statement the centre does not hold. Every producer therefore raises through this, exactly as every producer records through INotificationStore.
The unread count is read only where a row was actually written and something is listening, so a deployment serving no client and a producer that changed nothing both pay nothing for this.
Constructors
- NotificationRaiser(INotificationStore, ClientSignals)
Initializes the raiser.
Methods
- RecordAndAnnounceAsync(Notification, CancellationToken)
Records one notification and announces it where it was kept.