private ConfigurationStore InstanceConfigurationStore(IKernel kernel) { ITypeMapFactory typeMapFactory = kernel.Resolve <ITypeMapFactory>(); IEnumerable <IObjectMapper> mappers = MapperRegistry.AllMappers(); return(new ConfigurationStore(typeMapFactory, mappers)); }
public MapperConfiguration(Action <IMapperConfiguration> configure, IEnumerable <IObjectMapper> mappers, IEnumerable <ITypeMapObjectMapper> typeMapObjectMappers) { _typeMapFactory = new TypeMapFactory(); _mappers = mappers; _typeMapObjectMappers = typeMapObjectMappers; _defaultProfile = CreateProfile(ProfileName); configure(this); Seal(); ExpressionBuilder = new ExpressionBuilder(this); }
public ConfigurationStore(ITypeMapFactory typeMapFactory, IEnumerable <IObjectMapper> mappers) { _typeMapFactory = typeMapFactory; _mappers = mappers; _globalIgnore = new List <string>(); }
public ProfileConfigurationStore(ITypeMapFactory typeMapFactory, IEnumerable<IObjectMapper> mappers) : base(typeMapFactory, mappers) { foreach (var profile in ObjectFactory.GetAllInstances<Profile>()) AddProfile(profile); }