Add CopyFile, refactor DeleteFile.

This commit is contained in:
2024-03-12 12:23:56 -04:00
parent 2d2bff7a0e
commit b2a2bc95df
15 changed files with 32 additions and 280 deletions

View File

@@ -32,7 +32,6 @@ namespace MarketData
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("64BIT={0}",Utility.Is64Bit()));
MDTrace.WriteLine(LogLevel.DEBUG,"usage {service}");
MDTrace.WriteLine(LogLevel.DEBUG,"****************** T E S T D A T A S O U R C E S E T C .,***************");
MDTrace.WriteLine(LogLevel.DEBUG," RUNTESTS - tests data sources.");
MDTrace.WriteLine(LogLevel.DEBUG," RUNPRICECHECKOPENPOSITIONS - lists the latest available price for the open positions");
MDTrace.WriteLine(LogLevel.DEBUG," SENDSMSEMAIL {message} - sends an SMS email to system recipient");
MDTrace.WriteLine(LogLevel.DEBUG,"****************** D A I L Y U P D A T E ***************");
@@ -584,6 +583,7 @@ namespace MarketData
Trace.Listeners.Add(new TextWriterTraceListener(strLogFile));
DateTime currentDate=DateTime.Now;
// Price price=MarketDataHelper.GetLatestPriceFidelity("AAPL");
@@ -617,10 +617,6 @@ namespace MarketData
{
Program.ShowActiveGainLoss();
}
else if(arg.Equals("RUNTESTS"))
{
Program.RunTests();
}
else if (arg.Equals("CHECKPRICES"))
{
Program.CheckPrices();
@@ -1501,19 +1497,6 @@ namespace MarketData
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("SendSMSEmail: Exception: {0}.",exception.ToString()));
}
}
public static void RunTests()
{
Dictionary<String,bool> items=MarketDataHelper.RunTests();
MDTrace.WriteLine(LogLevel.DEBUG,"************************************************* S U M M A R Y ********************************************");
MDTrace.WriteLine("Method,Status");
List<String> keys=new List<String>(items.Keys);
for(int index=0;index<keys.Count;index++)
{
String key=keys[index];
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("{0},{1}",key,items[key]));
}
}
public static void UpdateEarningsAnnouncements(String symbol=null)
{
MDTrace.WriteLine(LogLevel.DEBUG,"[UPDATEEARNINGSANNOUNCEMENTS]");