From c51a80b199e612d06fc40a5ea48595e7196d89f5 Mon Sep 17 00:00:00 2001 From: cesar liu Date: Mon, 8 Aug 2022 11:44:12 +0800 Subject: [PATCH] =?UTF-8?q?startup=20=E6=94=B9=E5=9B=9E=E5=88=A4=E6=96=B7?= =?UTF-8?q?=E6=AD=A3=E5=BC=8F/=E6=B8=AC=E8=A9=A6=E7=92=B0=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Startup.cs | 8 ++++---- SolarPower/appsettings.json | 2 +- solarApp/fmArchive.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SolarPower/Startup.cs b/SolarPower/Startup.cs index 965d7f0..6b749ed 100644 --- a/SolarPower/Startup.cs +++ b/SolarPower/Startup.cs @@ -96,13 +96,13 @@ namespace SolarPower #region ¥[¤J­I´º°õ¦æ //services.AddHostedService(); //if (envName == "Production") - //if (envName != "Production") - //{ + if (envName != "Production") + { ////²K¥[QuartzªA°È services.AddSingleton(); services.AddSingleton(); ////²K¥[Job - //#region ©w´Á­pµe + //#region ©w´Á­pµe / ¨C¤é email ³øªíªA°È services.AddSingleton(); services.AddSingleton( new JobSchedule(jobType: typeof(OperationScheduleJob), cronExpression: Configuration.GetValue("BackgroundServiceCron:OperationScheduleJob")) @@ -147,7 +147,7 @@ namespace SolarPower //#endregion services.AddHostedService(); - //} + } #endregion services.AddApplicationInsightsTelemetry(); diff --git a/SolarPower/appsettings.json b/SolarPower/appsettings.json index 1339b93..e566fb4 100644 --- a/SolarPower/appsettings.json +++ b/SolarPower/appsettings.json @@ -35,7 +35,7 @@ "Password": "8WMHBEWuT0XoAB4kzduQHA==" }, "BackgroundServiceCron": { - "CalcPowerStationJob": "0 14 * * * ?", + "CalcPowerStationJob": "0 05 * * * ?", "CalcAvgPowerStationJob": "0 12 0 * * ?", "OperationScheduleJob": "0 0 8 * * ?", "CalcInverter15minJob": "0 2/15 * * * ?", diff --git a/solarApp/fmArchive.cs b/solarApp/fmArchive.cs index df9b3b2..39826eb 100644 --- a/solarApp/fmArchive.cs +++ b/solarApp/fmArchive.cs @@ -57,7 +57,7 @@ namespace solarApp private void fmArchive_Load(object sender, EventArgs e) { - MessageBox.Show(" loading "); + // MessageBox.Show(" loading "); #region 電站清單 int i = 0; var site_list = stationSvc.get_station_list();