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; } }
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; } }
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; } }