コード例 #1
0
ファイル: TestFlowRunner.cs プロジェクト: spartajet/Testflow
 /// <summary>
 /// 运行时初始化
 /// </summary>
 public virtual void RuntimeInitialize()
 {
     DesignTimeService?.Deactivate();
     ConfigurationManager.RuntimeInitialize();
     LogService.RuntimeInitialize();
     ResultManager.RuntimeInitialize();
     SequenceManager.RuntimeInitialize();
     DataMaintainer.RuntimeInitialize();
     EngineController.RuntimeInitialize();
     RuntimeService.Activate();
 }
コード例 #2
0
        public override void Initialize()
        {
            this.LogService          = new LogService();
            this.DataMaintainer      = new DataMaintainer.DataMaintainer();
            this.EngineController    = new EngineHandle();
            this.SequenceManager     = new SequenceManager.SequenceManager();
            this.ComInterfaceManager = new InterfaceManager();

            ModuleConfigData configData = new ModuleConfigData();

            configData.InitExtendProperties();

            LogService.ApplyConfig(configData);
            ComInterfaceManager.ApplyConfig(configData);
            SequenceManager.ApplyConfig(configData);
            DataMaintainer.ApplyConfig(configData);
            EngineController.ApplyConfig(configData);

            LogService.RuntimeInitialize();
            ComInterfaceManager.DesigntimeInitialize();
            SequenceManager.DesigntimeInitialize();
            DataMaintainer.RuntimeInitialize();
            EngineController.RuntimeInitialize();
        }