Exemplo n.º 1
0
 public static XElement GetTimeInfo()
 {
     try
     {
         TimeInfo info = ((ITimeSyncService)Framework.Time.SystemTime.Default).GetTimeInfo();
         string   xml  = XmlSerializeHelper.ToXml(info.GetType(), info);
         return(XmlResultHelper.NewResult(xml));
     }
     catch (System.Exception exception)
     {
         AppDebug.LogEvent("TradingConsole.GetTimeInfo:", exception.ToString(), System.Diagnostics.EventLogEntryType.Error);
         return(XmlResultHelper.NewErrorResult());
     }
 }