Table of Contents

Interface IUserLanguages

Namespace
MailFathom.Application.Access
Assembly
MailFathom.Application.dll

Answers which language this deployment writes for one person in.

public interface IUserLanguages
Extension Methods

Remarks

It is a port because the answer comes out of that user's record, which is the host's, while every use case that composes text for somebody lives above it. Resolution is synchronous and reaches no database: the answer comes from the record the host read when the work acting for that person was prepared, and follows each commit to it, so a derivation never puts a read in front of the call it is about to make.

The answer is the user's rather than one of their mailboxes' because what it is asked for belongs to the person: a card composed for a contact of their own, and the first version of a message answering nothing. Neither is stored and neither is read by anybody else, so there is no second reader for a mailbox's language to settle — and the mailbox could not settle it anyway, since a correlation spans every account the person is assigned and a composer answering no correspondence names none. IMailAccountLanguages answers the other question, for everything derived from a mailbox.

A user this deployment does not serve is answered with English rather than with nothing, exactly as the client opens in English when it can read no preference. It is the same answer a record held from before the language was asked for reads as, so one value covers both: a pass composing text for somebody always has a language, and never one it had to decide for itself.

Methods

LanguageOf(UserId)

Finds the language this deployment writes for one person in.