Example #1
0
 public TimeSyncSettings GetTimeSyncSettings()
 {
     try
     {
         var timeSyncSection  = (TimeSyncSection)ConfigurationManager.GetSection("TimeSync");
         var timeSyncSettings = new TimeSyncSettings(timeSyncSection.SyncInterval, timeSyncSection.MinAdjustedTimeOfSyncSoon);
         return(timeSyncSettings);
     }
     catch (System.Exception exception)
     {
         _Logger.Error(exception);
         throw;
     }
 }
Example #2
0
 public TimeSyncSettings GetTimeSyncSettings()
 {
     try
     {
         var timeSyncSection = (TimeSyncSection)ConfigurationManager.GetSection("TimeSync");
         var timeSyncSettings = new TimeSyncSettings(timeSyncSection.SyncInterval, timeSyncSection.MinAdjustedTimeOfSyncSoon);
         return timeSyncSettings;
     }
     catch (System.Exception exception)
     {
         _Logger.Error(exception);
         throw;
     }
 }
Example #3
0
 public TimeSyncSettings GetTimeSyncSettings()
 {
     try
     {
         TimeSyncSection timeSyncSection = (TimeSyncSection)ConfigurationManager.GetSection("TimeSync");
         TimeSyncSettings timeSyncSettings
             = new TimeSyncSettings(timeSyncSection.SyncInterval, timeSyncSection.MinAdjustedTimeOfSyncSoon);
         return timeSyncSettings;
     }
     catch (System.Exception exception)
     {
         AppDebug.LogEvent("TradingConsole.GetTimeSyncSettings:", exception.ToString(), System.Diagnostics.EventLogEntryType.Error);
         throw exception;
     }
 }