Class SupportCaseLimits
What bounds a support case, so an embedded transcript cannot grow without limit.
public static class SupportCaseLimits
- Inheritance
-
SupportCaseLimits
- Inherited Members
Remarks
These are contract-level facts, not storage tuning. A caller needs to know a reply can be refused for length before it writes a UI that lets someone type past it, so the numbers live beside the contracts rather than inside the adapter.
The pair is chosen together against MongoDB's 16 MB document limit: at MaxMessagesPerCase messages of MaxMessageLength characters the transcript is roughly 5 MB, leaving substantial headroom for a case that is entirely maximum-length messages.
Fields
DerivedSubjectLength
How much of the message becomes the subject when a case is raised without one.
public const int DerivedSubjectLength = 50
Field Value
Remarks
Long enough to carry a recognisable sentence in a list, short enough that a list of them stays scannable. The cut lands on a word boundary, so a derived subject is usually a little shorter than this.
MaxMessageLength
Longest message body, in characters.
public const int MaxMessageLength = 10000
Field Value
Remarks
Support text is where somebody pastes a log file or a stack trace, so this is the cap that actually gets hit. Refusing a long message with a clear error is better than accepting one that makes the case unreadable.
MaxMessagesPerCase
Most entries one case may hold, including system entries.
public const int MaxMessagesPerCase = 500
Field Value
Remarks
A real support conversation runs to tens of messages. A case reaching this many has stopped being one conversation, so the store refuses further replies and the remedy is a new case — which is also the honest outcome, since nobody reads a thousand-message thread.