diff --git a/src/MapConfigurationFactory.cs b/src/MapConfigurationFactory.cs index 66c72d2..e67d2fb 100644 --- a/src/MapConfigurationFactory.cs +++ b/src/MapConfigurationFactory.cs @@ -31,11 +31,8 @@ private static void LoadMapsFromAssemblies(params Assembly[] assemblies) } - public static void LoadAllMappings(IList types) + private static void LoadAllMappings(IList types) { - - - Mapper.Initialize( cfg => { @@ -43,9 +40,8 @@ public static void LoadAllMappings(IList types) LoadCustomMappings(cfg, types); }); } - - public static void LoadCustomMappings(IMapperConfigurationExpression config, IList types) + private static void LoadCustomMappings(IMapperConfigurationExpression config, IList types) { var instancesToMap = (from t in types from i in t.GetInterfaces() @@ -61,7 +57,7 @@ where typeof(ICustomMap).IsAssignableFrom(t) && } } - public static void LoadStandardMappings(IMapperConfigurationExpression config, IList types) + private static void LoadStandardMappings(IMapperConfigurationExpression config, IList types) { var mapsFrom = (from t in types from i in t.GetInterfaces()