Cleanup.
This commit is contained in:
30
Program.cs
30
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user