public void Initialize(IMappingLoader loader)
 {
     try
     {
         var sfcmf = new StateFullClassMappingFactory();
         classMappingFactory = sfcmf;
         var definitions = loader.GetMappings();
         foreach (var classMapping in definitions)
         {
             sfcmf.AddClassExternalDefinition(classMapping);
         }
         foreach (System.Type type in sfcmf.GetLoadedDefinitions())
         {
             GetRootValidator(type);
         }
     }
     finally
     {
         classMappingFactory = defaultClassMappingFactory;
     }
 }
Exemple #2
0
 public void Initialize(IMappingLoader loader)
 {
     try
     {
         var sfcmf = new StateFullClassMappingFactory();
         classMappingFactory = sfcmf;
         var definitions = loader.GetMappings();
         foreach (var classMapping in definitions)
         {
             sfcmf.AddClassExternalDefinition(classMapping);
         }
         foreach (System.Type type in sfcmf.GetLoadedDefinitions())
         {
             GetRootValidator(type);
         }
     }
     finally
     {
         classMappingFactory = defaultClassMappingFactory;
     }
 }