diff --git a/rtjiory/Program.cs b/rtjiory/Program.cs index 15a3c4d..21673c0 100644 --- a/rtjiory/Program.cs +++ b/rtjiory/Program.cs @@ -69,7 +69,7 @@ app.MapPost("submit", (string name, int score) => List weekArrow = []; //weekly Jobs (dbReset, WeekArrowGen...) -System.Timers.Timer resetTimer = new(10000); // 10000ms = 10 seconds => 1week = ?ms mol ra si bal +System.Timers.Timer resetTimer = new(43200000); // 10000ms = 10 seconds => 1week = ?ms mol ra si bal resetTimer.Elapsed += (sender, e) => { //TimeOnly curTime = new(DateTime.Now.Hour, DateTime.Now.Minute); @@ -81,7 +81,7 @@ resetTimer.Elapsed += (sender, e) => //weekArrow.Clear(); // Log reset actio var logger = app.Services.GetRequiredService>(); - //logger.LogInformation("doWeekJobs"); + logger.LogInformation("do every 12hour Jobs"); // Clear the scoreDB scoreDBini.Clear(); @@ -101,13 +101,12 @@ resetTimer.Elapsed += (sender, e) => // int rngNum = (int)random.NextInt64(0, 4); // weekArrow.Add(rngNum/*(int)random.NextInt64(0, 4)*/); // //logger.LogInformation(rngNum.ToString()); -//}//ÀÚ±â ÀÚ½ÅÀÌ ÀаíÀÖ´Ù°í ¸ø ÀÐÀ¸¸é ³­ ¹¹ ¾î¶»°Ô ¹Þ¾Æµé¿©¾ßÇÔ? => resetTimer°¡ ¸ÞÀÎ ½º·¹µå°¡ ¾Æ´Ñ ´Ù¸¥ ½º·¹µå¿¡¼­ µ¿ÀÛÇÑ´Ù´Â Ä«´õ¶ó°¡ ÀÖÀ½ +//}//ÀÚ±â ÀÚ½ÅÀÌ ÀаíÀÖ´Ù°í ¸ø ÀÐÀ¸¸é ³­ ¹¹ ¾î¶»°Ô ¹Þ¾Æµé¿©¾ßÇÔ? => resetTimer°¡ ¸ÞÀÎ ½º·¹µå°¡ ¾Æ´Ñ ´Ù¸¥ ½º·¹µå¿¡¼­ µ¿ÀÛÇÑ´Ù´Â Ä«´õ¶ó°¡ ÀÖÀ½ => jobiniŬ·¡½º¿¡¼­ ¸Þ¼­µå Çϳª »©¸Ô¾ú´Ù°í »ý±ä ¹®Á¦Àεí? ¾Æ¸¶ ÇØ°áµÊ resetTimer.Start(); //±â·ÏµÈ Á¡¼ö ¾ò±â app.MapGet("/", () => /*scoreDB);*/scoreDB = scoreDBini.ReadDictionary());//scoreDBini.ReadDictionary); -app.MapGet("WeekArrow", () => weekArrow -); +app.MapGet("WeekArrow", ()=> weekArrow); //app.UseHttpsRedirection(); app.UseStaticFiles(); @@ -120,5 +119,5 @@ app.UseRouting(); app.MapRazorPages(); -//À̹Ìminio¿¡¼­ 8000~8001»ç¿ëÁß +//À̹Ìminio¿¡¼­ 8000~8001»ç¿ëÁß => ±Ùµ¥ ¿Ö 8004¾¸? ±×³É app.Run("http://localhost:8004"); diff --git a/rtjiory/rtjiory.csproj b/rtjiory/rtjiory.csproj index 1245750..e167363 100644 --- a/rtjiory/rtjiory.csproj +++ b/rtjiory/rtjiory.csproj @@ -1,7 +1,7 @@ - + - net9.0 + net8.0 enable enable AnyCPU;ARM64