Interface IClientSignalChannel
- Namespace
- MailFathom.Application.Signals
- Assembly
- MailFathom.Application.dll
Carries a signal to whatever a user is reachable through.
public interface IClientSignalChannel
Remarks
One implementation is registered today, and it is SignalR: a hub reaches a client that is running, which is the web head, the desktop head, and the Android head while it is in the foreground. The port exists because that is not the whole of the delivery problem — an Android application that has been closed is reachable only through Firebase Cloud Messaging, which is a different medium rather than a second transport, and designing it as a second channel over these same signals is what keeps it from becoming a second vocabulary for the same events.
A channel never fails a caller. Everything that raises a signal has already committed the work the signal describes, so a channel that could not deliver logs and returns; the client's own interval is what closes the gap, and a deployment whose channel is down behaves exactly as one that never had it.
Methods
- PublishAsync(ClientSignal, CancellationToken)
Delivers one signal to the user it names, and to no other user.