Exemplo n.º 1
0
        private ConfigurationStore InstanceConfigurationStore(IKernel kernel)
        {
            ITypeMapFactory             typeMapFactory = kernel.Resolve <ITypeMapFactory>();
            IEnumerable <IObjectMapper> mappers        = MapperRegistry.AllMappers();

            return(new ConfigurationStore(typeMapFactory, mappers));
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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);
 }