Class SupportCaseLimits
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
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.
MaxAssistantCallArgumentsLength
The longest what one service call was asked for may be kept as, in characters.
public const int MaxAssistantCallArgumentsLength = 200
Field Value
MaxAssistantCalls
How many service calls are kept with one of the assistant's answers; the first ones, in order.
public const int MaxAssistantCalls = 20
Field Value
MaxAssistantGapLength
The longest one thing the assistant could not do may be, in characters.
public const int MaxAssistantGapLength = 200
Field Value
MaxAssistantGaps
Most things the assistant could not do that one case keeps, the newest; and the longest each may be.
public const int MaxAssistantGaps = 20
Field Value
Remarks
The model writes these, so they are bounded like anything else it writes: a case is a conversation, not a log.
MaxExternalEmailLength
Longest email address a public form may send, in characters; the length mail itself allows.
public const int MaxExternalEmailLength = 254
Field Value
MaxExternalFieldNameLength
Longest extra field name, in characters.
public const int MaxExternalFieldNameLength = 50
Field Value
MaxExternalFieldValueLength
Longest extra field value, in characters.
public const int MaxExternalFieldValueLength = 500
Field Value
MaxExternalFields
Most extra fields a public form may send.
public const int MaxExternalFields = 20
Field Value
MaxExternalNameLength
Longest name or organisation a public form may send, in characters.
public const int MaxExternalNameLength = 200
Field Value
MaxExternalPhoneLength
Longest telephone number a public form may send, in characters.
public const int MaxExternalPhoneLength = 50
Field Value
MaxExternalSubjectLength
Longest subject a public form may send, in characters.
public const int MaxExternalSubjectLength = 200
Field Value
MaxMessageHtmlLength
Longest formatting kept for a message, in characters of sanitized HTML; longer formatting is dropped and the message kept as its plain text.
public const int MaxMessageHtmlLength = 10000
Field Value
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.