Beispiel #1
0
 private void WriteMetadata(Version targetVersion, ITypeNamesCache typeNamesCache)
 {
     var valueWriterFactory = new DefaultValueWriterFactory(system.Get<IDocumentWriter>(), system.Get<IApplicationObjectsRepository>(), new NullTypeNamesCache());
     var metaDataWriter = valueWriterFactory.Create();
     var metaData = new MetaData(typeNamesCache.Names, targetVersion);
     metaDataWriter.Write(metaData, system.Get<IDocumentWriter>().RootNode, metaData.GetType());
 }
 public MigrationDefinitionFactory(MetaData metaData, IMigrationRulesBuilder rulesBuilder, ILogger logger)
     : this(metaData.PayloadVersion, rulesBuilder, logger)
 {
 }