Skip to content

Commit

Permalink
changed methods to private
Browse files Browse the repository at this point in the history
  • Loading branch information
garywoodfine committed Jan 6, 2020
1 parent b10226d commit 64a51eb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/MapConfigurationFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,17 @@ private static void LoadMapsFromAssemblies(params Assembly[] assemblies)
}


public static void LoadAllMappings(IList<Type> types)
private static void LoadAllMappings(IList<Type> types)
{



Mapper.Initialize(
cfg =>
{
LoadStandardMappings(cfg, types);
LoadCustomMappings(cfg, types);
});
}


public static void LoadCustomMappings(IMapperConfigurationExpression config, IList<Type> types)
private static void LoadCustomMappings(IMapperConfigurationExpression config, IList<Type> types)
{
var instancesToMap = (from t in types
from i in t.GetInterfaces()
Expand All @@ -61,7 +57,7 @@ public static void LoadCustomMappings(IMapperConfigurationExpression config, ILi
}
}

public static void LoadStandardMappings(IMapperConfigurationExpression config, IList<Type> types)
private static void LoadStandardMappings(IMapperConfigurationExpression config, IList<Type> types)
{
var mapsFrom = (from t in types
from i in t.GetInterfaces()
Expand Down

0 comments on commit 64a51eb

Please sign in to comment.