コード例 #1
0
 public DocumentTypeDiffgram(Diffgram diffgram, DocumentTypeConfiguration configuration, ServiceContext serviceContext)
     : base(configuration, serviceContext)
 {
     this.diffgram      = diffgram;
     contentTypeService = serviceContext.ContentTypeService;
     Tabs = new Dictionary <string, TabDiffgram>();
 }
        public Diffgram Compare()
        {
            var diffgram = new Diffgram(this, serviceContext);

            diffgram.Compare();
            return(diffgram);
        }
        public void Ensure(Diffgram diffgram)
        {
            // Sort here to detect circular dependencies. Move to Safe check?
            var orderedDocTypes = DependencyComparer.OrderByDependencies(diffgram.DocumentTypes.Values);

            foreach (var datatypeDiff in diffgram.DataTypes.Values)
            {
                datatypeDiff.Ensure();
            }

            foreach (var templateDiff in diffgram.Templates.Values)
            {
                templateDiff.Ensure();
            }

            foreach (var doctypeDiff in orderedDocTypes)
            {
                doctypeDiff.Ensure();
            }
        }
コード例 #4
0
 public DataTypeDiffgram(Diffgram diffgram, DataTypeConfiguration configuration, ServiceContext serviceContext) : base(configuration, serviceContext)
 {
     this.diffgram   = diffgram;
     dataTypeService = serviceContext.DataTypeService;
     dataTypeEnsurer = new DataTypeEnsurer(this, serviceContext);
 }
コード例 #5
0
 public TemplateDiffgram(Diffgram diffgram, TemplateConfiguration configuration, ServiceContext serviceContext) : base(configuration, serviceContext)
 {
     ensurer = new TemplateEnsurer(this, serviceContext);
 }