Class Slugs
- Namespace
- Oscova.Agents.Persistence
- Assembly
- Oscova.Agents.dll
Produces lowercase ASCII slugs. Each method applies a rule set tailored to a specific use case; pick the method that matches the target context rather than calling a single "generic" slug routine.
public static class SlugsInheritance
Inherited Members
Methods
- ForAgentFolder(string)
-
Builds a slug for an on-disk agent folder name: lowercase ASCII, capped at 60 characters with word-boundary truncation, and falls back to
"agent"when no usable characters remain. - ForCredentialAlias(string)
-
Builds a slug for a free-form credential alias: lowercase ASCII with no length cap. Returns an empty string when no usable characters remain so callers can reject the input.
- ForTaskTrigger(string)
-
Builds a URL-safe slug for externally triggered task endpoints and falls back to
"task". - MakeUnique(string, ISet<string>)
-
Returns
slugif free, otherwise appends a numeric suffix until an unused value is found.