- Timestamp:
- 08/06/10 16:59:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/ConfigurationService.cs
r4068 r4175 94 94 try { 95 95 TryLoadSettings(); 96 } 97 catch (Exception e) { 96 } catch (Exception e) { 98 97 if (throwOnError) { 99 98 throw new PersistenceException("Could not load persistence settings.", e); … … 162 161 if (a != defaultAssembly) 163 162 DiscoverFrom(a); 164 } 165 catch (AppDomainUnloadedException x) { 163 } catch (AppDomainUnloadedException x) { 166 164 Logger.Warn("could not get list of assemblies, AppDomain has already been unloaded", x); 167 165 } … … 207 205 } 208 206 } 209 } 210 catch (ReflectionTypeLoadException e) { 207 } catch (ReflectionTypeLoadException e) { 211 208 Logger.Warn("could not analyse assembly: " + a.FullName, e); 212 209 } … … 223 220 foreach (IPrimitiveSerializer f in PrimitiveSerializers[format.SerialDataType]) { 224 221 if (!primitiveConfig.ContainsKey(f.SourceType)) 225 primitiveConfig.Add(f.SourceType, f);222 primitiveConfig.Add(f.SourceType, (IPrimitiveSerializer)Activator.CreateInstance(f.GetType())); 226 223 } 227 224 } else { … … 234 231 format, 235 232 primitiveConfig.Values, 236 CompositeSerializers.Where((d) => d.Priority > 0) );233 CompositeSerializers.Where((d) => d.Priority > 0).Select(d => (ICompositeSerializer)Activator.CreateInstance(d.GetType()))); 237 234 } 238 235
Note: See TracChangeset
for help on using the changeset viewer.