From f633cc43bb33083654ec556617a69a0273be8a75 Mon Sep 17 00:00:00 2001 From: Sean Date: Sun, 23 Feb 2025 18:03:50 -0500 Subject: [PATCH] Cleanup. --- Program.cs | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Program.cs b/Program.cs index 8ea73e1..902186b 100644 --- a/Program.cs +++ b/Program.cs @@ -980,18 +980,6 @@ namespace MarketData //public static string HashPassword(string password) - - static int Main(string[] args) - { - try - { - MDTrace.LogLevel = LogLevel.DEBUG; - String strLogFile = "marketdata.log"; - Utility.DeleteFile(strLogFile); - Trace.Listeners.Add(new TextWriterTraceListener(strLogFile)); - DateTime currentDate=DateTime.Now; - - //User user = UserDA.GetUser("sean"); //if(!user.Verify("MN5191306")) @@ -1003,17 +991,27 @@ namespace MarketData // MDTrace.WriteLine(LogLevel.DEBUG,$"User {user.Username} was verified"); //} - //(String salt, String hash) = Encryption.HashPasswordWithSalt("MN5191306"); +// (String salt, String hash) = Encryption.HashPasswordWithSalt("MN5191306"); //bool result = Encryption.VerifyPassword("MN5191306", salt, hash); //User user = new User(); - //user.Username="Sean"; - //user.Salt=salt; - //user.Hash=hash; + //user.Username = "Sean"; + //user.Salt = salt; + //user.Hash = hash; //UserDA.AddUser(user); + static int Main(string[] args) + { + try + { + MDTrace.LogLevel = LogLevel.DEBUG; + String strLogFile = "marketdata.log"; + Utility.DeleteFile(strLogFile); + Trace.Listeners.Add(new TextWriterTraceListener(strLogFile)); + DateTime currentDate=DateTime.Now; + DateTime maxHolidayDate =HolidayDA.GetMaxHolidayDate(); if(currentDate>maxHolidayDate) {