Interface IDeploymentUserSource
- Namespace
- MailFathom.Application.Access
- Assembly
- MailFathom.Application.dll
Names the sole user an act that carries none is for, where this deployment serves exactly one.
public interface IDeploymentUserSource
Remarks
A deployment serves the users it has recorded, so where it holds exactly one there is a sole user to name and this is that user. A deployment holding several has no sole one: reading this refuses rather than answering, because attributing an act to whichever user a read happened to find is how one person is handed another person's mail. What keeps that refusal off a running deployment is the startup gate, which will not start beside several users while any surface that reads this is enabled.
It is what makes an admitted caller a caller acting for somebody. A credential is configured today and carries no user of its own, so every caller a mail-reading surface admits is acting for this one; when credentials become records of their own, the user comes off the credential and this port stops being what answers for a caller. An administrator's acts are the deployment's rather than one person's and carry no user either, so those resolve here as well.
The answer is a value rather than a read, because it is settled once and consulted per request. Nothing here reaches a database while a request is being served, and nothing about a request can change the answer.
Properties
- User
Gets the user this deployment's configured mail accounts belong to.