Exemplo n.º 1
0
 /// <summary>
 /// Clear out all existing configuration
 /// </summary>
 public static void Reset()
 {
     MapperRegistry.Reset();
     Extensions.ClearExpressionCache();
     _configuration = LazyFactory.Create(_configurationInit);
     _mappingEngine = LazyFactory.Create(_mappingEngineInit);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Clear out all existing configuration
 /// </summary>
 public static void Reset()
 {
     MapperRegistry.Reset();
     _configuration = LazyFactory.Create(_configurationInit);
     _mappingEngine = LazyFactory.Create(_mappingEngineInit);
 }
Exemplo n.º 3
0
 public static void Reset()
 {
     MapperRegistry.Reset();
     _configuration = new Lazy <MapperConfiguration>(_configurationInit);
     _mappingEngine = new Lazy <Mapper>(_mappingEngineInit);
 }
Exemplo n.º 4
0
 public static void ResetMapper()
 {
     //upgrade v5.0 this method is obsolete
     //Mapper.Reset();
     MapperRegistry.Reset();
 }