protected override void OnInitialized()
        {
            //general services
            _contextHolder = Services.AddNew<MigrationContextHolderService, IMigrationContextHolderService>();
            _entityLoader = Services.AddNew<OrmEntityLoaderService, IOrmEntityLoaderService>();
            _entityPersistor = Services.AddNew<EntityService, IEntityService>();
            _portalUpdater = Services.AddNew<PortalService, IPortalService>();
            _vsProjectGenerator = Services.AddNew<VSProjectService, IVSProjectService>();
            _manifestGenerator = Services.AddNew<ManifestService, IManifestService>();
            _hierarchyNodeService = Services.AddNew<HierarchyNodeService, IHierarchyNodeService>();

            //form services
            Services.AddNew<FormLayoutService, IFormLayoutService>();
            Services.AddNew<DataPathTranslationService, IDataPathTranslationService>();
            Services.AddNew<ComponentSimplificationService, IComponentSimplificationService>();
            Services.AddNew<FormSimplificationService, IFormSimplificationService>();
            Services.AddNew<FormFlatteningService, IFormFlatteningService>();
            Services.AddNew<ControlAlignmentService, IControlAlignmentService>();
            Services.AddNew<VisibilityDeterminationService, IVisibilityDeterminationService>();

            //TODO: script services

            _migrators = new IMigrationSupport[]
                {
                    BuildTransientItem<MainViewMigrationSupport>(),
                    BuildTransientItem<ToolbarMigrationSupport>(),
                    BuildTransientItem<FormMigrationSupport>(),
                    BuildTransientItem<LegacyFormMigrationSupport>(),
                    BuildTransientItem<ScriptMigrationSupport>()
                };

            base.OnInitialized();
        }
Exemple #2
0
 public DirectorySystemController(IHierarchyNodeService service)
 {
     this.service = service;
 }