Method TryCreate
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
TryCreate(string?, out MailFolderAlias)
Reads an alias a caller outside this system wrote, without raising on text that is not one.
public static bool TryCreate(string? value, out MailFolderAlias alias)
Parameters
valuestringThe text the caller wrote.
aliasMailFolderAliasThe alias when the text is one; otherwise the struct default.
Returns
Remarks
Create(string) raises because configuration is refused rather than negotiated with, which is the wrong shape at a boundary an operator types into: an administrative route reading a request body owes a stated refusal rather than a failure the process reports as its own. Both admit exactly the same text, so an alias that reaches one reaches the other.