Services that are needed by ValueHostsManager

Hierarchy (view full)

Implemented by

Properties

loggerService: ILoggerService

Service to get the ILogger instance that replaces tokens in messages. Defaults to using the global defaultLoggerService

valueHostFactory: IValueHostFactory

Factory for generating classes that implement IValueHost that use ValueHostConfig.

cultureService: ICultureService

Service for identifying cultures that you will use in the app, by their CultureID ('en', 'en-US', 'en-GB', etc), and provides fallbacks for when a requested CultureID is not found.

conditionFactory: IConditionFactory

Factory to create Condition objects.

dataTypeIdentifierService: IDataTypeIdentifierService

Service for identifing the Data Type Lookup Key associated with a data type using IDataTypeIdentifier instances.

dataTypeConverterService: IDataTypeConverterService

Service for changing the original value into something that you want a condition to evaluate using IDataTypeConverter instances.

dataTypeComparerService: IDataTypeComparerService

Service for changing the comparing two values using IDataTypeComparer instances.

textLocalizerService: ITextLocalizerService

Service to text localization specific, effectively mapping a text key to a language specific version of that text. Error messages and IDataTypeFormatters use this.

lookupKeyFallbackService: ILookupKeyFallbackService

Service for creating a relationship between a lookup key and another that is the base data type it is built around. For example, LookupKey.Integer uses a number as the base data type. So it has a relationship with LookupKey.Number. This service keeps these relationships. The DataTypeFormatterService and DataTypeParserService consume this as they try to find the best fitting Formatter or Parser. So go ahead and assign your ValueHost.datatype to LookupKey.Integer. If there is no IntegerParser (there isn't), expect to be using the NumberParser.

valueHostConfigMergeService: IValueHostConfigMergeService

Service to get the IValueHostConfigMergeService instance that determines how to merge ValueHost configurations from business logic and UI.

managerConfigBuilderFactory: IManagerConfigBuilderFactory

Creates the ManagerConfigBuilder instances.

managerConfigModifierFactory: IManagerConfigModifierFactory

Creates the ManagerConfigModifier instances.

Methods

  • Adds or replaces a service.

    Parameters

    • serviceName: string

      name that identifies this service and will be used in getService().

    • service: any

      the service. It can be a class, object, or primitive. Will be a case insensitive match

    Returns void

Generated using TypeDoc v0.25.12