Class NameService
Default in-memory implementation of INameService.
public sealed class NameService : INameService
- Inheritance
-
NameService
- Implements
- Inherited Members
Methods
AddNames(string, params string[])
Adds names to a specific logical name type.
public void AddNames(string type, params string[] names)
Parameters
GenerateName(MobileTemplateDefinition)
Generates a random name for a mobile template.
public string GenerateName(MobileTemplateDefinition mobileTemplate)
Parameters
mobileTemplateMobileTemplateDefinitionMobile template.
Returns
- string
A generated name, or empty string when no suitable pool exists.
GenerateName(string)
Generates a random name from the specified pool.
public string GenerateName(string type)
Parameters
typestringName pool key.
Returns
- string
A generated name, or empty string when no names exist for the type.