I am developing webapi project and extensively using Automapper to map objects. Currently i am using Mapper.Map
Can anyone direct me how to implement this? How to call this configure method while registering IMappingEngine in Unity?
My current automapper mapping:
public static class AutomapperConfiguration { public static void Configure() { Mapper.Initialize(cfg => { cfg.ConstructServicesUsing(type => UnityConfig.GetConfiguredContainer().Resolve(type)); cfg.CreateMap<Logger, Log>() .ForMember(d => d.TxId, opt => opt.ResolveUsing<AsRunTxIdValueResolver>()); } } } Thanks