コード例 #1
0
ファイル: Service.cs プロジェクト: dreamsql/-NewTraderServer
 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;
     }
 }
コード例 #2
0
ファイル: Service.cs プロジェクト: RobertHu/-NewTraderServer
 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;
     }
 }
コード例 #3
0
ファイル: Service.cs プロジェクト: RobertHu/TraderServer
 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;
     }
 }