I am planning to create my own custom Object Mapper for a type using AutoMapper's IObjectMapper interface, but I don't see any place where we can register the implemented mapper with AutoMapper. Could anyone tell me how to register it.
Edit: For more information on this please follow the discussion at AutoMapper-Users group
One way to go here is to replace the static registry function in the MapperRegistry class. Here's the current version:
You'd basically copy that one, and do something like:
Just do that before you do any Mapper.CreateMap or Mapper.Initialize business. Mappers are evaluated in order.