# Class HeaderMapContributor

Namespace
  adas_core.Infrastructure.Utils.MongoMaps

Assembly
  adas-core.Infrastructure.dll

Represents a contributor that participates in entity mapping, providing header-related mapping logic.

    public class HeaderMapContributor : IEntityMapContributor

Inheritance
  object
  HeaderMapContributor

Implements
  IEntityMapContributor

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Remarks

Implements the IEntityMapContributor interface to contribute mapping behavior within the entity mapping pipeline.

## Methods

### RegisterMaps()

Registers BSON class maps for the HeaderConfig type and its nested HeaderConfig.HeaderItem type with the MongoDB BsonClassMap serializer, configuring default values and null-ignore behavior for their members. Registration is performed only if a class map for the corresponding type has not already been registered, preventing duplicate registrations.

    public void RegisterMaps()