Class ColorConfigMapContributor
- Namespace
- adas_core.Infrastructure.Utils.MongoMaps
- Assembly
- adas-core.Infrastructure.dll
Represents a contributor that supplies color configuration mappings for entities by implementing the IEntityMapContributor interface.
public class ColorConfigMapContributor : IEntityMapContributor
- Inheritance
-
ColorConfigMapContributor
- Implements
- Inherited Members
- Extension Methods
Remarks
Used as a pluggable component within the entity mapping pipeline to apply color-related configuration to mapped entities.
Methods
RegisterMaps()
Registers BSON class maps for the ColorConfig type and its nested configuration types, providing default color and appearance values for properties such as levels, text, arrows, indicators, graphs, status boxes, therapy, tests, and procedures. Each class map is registered only if it has not already been registered, ensuring idempotent initialization of the MongoDB serialization mappings used by the color configuration system.
public void RegisterMaps()