Example #1
0
        public static void RunDBDependAppStartServices()
        {
            // TaskManager
            TaskManager.TaskManagerInstance().Init();
            TaskManager.TaskManagerInstance().Start();
            TaskManager.TaskManagerInstance().ManagedTask(TaskSqlSettings.TaskSettings);

            // LogSessionRestart
            InternalServices.LogApplicationRestart(false, false);

            // RefreshCurrency
            CurrencyService.RefreshCurrency();

            // ...
        }
        public static void RunDbDependAppStartServices()
        {
            //
            // Put yours DB depens code here
            //

            //Load modules
            AttachedModules.LoadModules();

            // TaskManager
            TaskManager.TaskManagerInstance().Init();
            TaskManager.TaskManagerInstance().Start();
            TaskManager.TaskManagerInstance().ManagedTask(TaskSettings.Settings);

            // LogSessionRestart
            InternalServices.LogApplicationRestart(false, false);

            // RefreshCurrency
            CurrencyService.RefreshCurrency();
        }