Exemple #1
0
 public ExternalDBApplicationResult OnShutdown(
     ControlledApplication a)
 {
     JtSettings.Save();
     JtLogger.Done();
     return(ExternalDBApplicationResult.Succeeded);
 }
Exemple #2
0
        public ExternalDBApplicationResult OnStartup(
            ControlledApplication a)
        {
            string path = Assembly.GetExecutingAssembly().Location;

            JtLogger.Init(Path.ChangeExtension(path, "log"));

            JtSettings.Init(Path.ChangeExtension(path, "json"));

            a.ApplicationInitialized += OnApplicationInitialized;

            return(ExternalDBApplicationResult.Succeeded);
        }
Exemple #3
0
        public ExternalDBApplicationResult OnStartup(
            ControlledApplication a)
        {
            string path = Assembly.GetExecutingAssembly().Location;

            JtLogger.Init(Path.ChangeExtension(path, "log"));

            JtSettings.Init(Path.ChangeExtension(path, "json"));

#if FORGE_DA4R_TEST_LOCALLY
            a.ApplicationInitialized += OnApplicationInitialized;
#else // if not FORGE_DA4R_TEST_LOCALLY
            DesignAutomationBridge.DesignAutomationReadyEvent
                += OnDesignAutomationReadyEvent;
#endif // FORGE_DA4R_TEST_LOCALLY

            return(ExternalDBApplicationResult.Succeeded);
        }