moving code our of program file

This commit is contained in:
Bobbie Hodgetts
2024-04-17 16:03:15 +01:00
parent c1e6da7a6f
commit f8452d274a
23 changed files with 122 additions and 592 deletions

View File

@@ -19,7 +19,7 @@ namespace bnhtrade.Core.Logic.Utilities
public void DownloadAll()
{
MiscFunction.EventLogInsert("Nightly scheduled tasks started.");
new Logic.Log.LogEvent().EventLogInsert("Nightly scheduled tasks started.");
var stock = new bnhtrade.Core.Stock.StockReconciliation();
var export = new bnhtrade.Core.Logic.Export.AmazonSettlement(dbCredentials.ConnectionString);
@@ -46,14 +46,14 @@ namespace bnhtrade.Core.Logic.Utilities
}
catch (Exception ex)
{
MiscFunction.EventLogInsert(
new Logic.Log.LogEvent().EventLogInsert(
"Exception caught running all report get method, see for further details",
1,
ex.ToString()
);
}
}
MiscFunction.EventLogInsert("Nightly scheduled tasks finished.");
new Logic.Log.LogEvent().EventLogInsert("Nightly scheduled tasks finished.");
}
}
}