示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public void GetBatchEndTimeSpanAndWarningThreshold_minutes(out int endTimeSpan_minutes,
                                                            out int endTimeSpanWarningThreshold_minutes)
 {
     endTimeSpan_minutes = 0;
     endTimeSpanWarningThreshold_minutes = 0;
     try
     {
         int      endTimeSpan_s = myXmlRpcProxy.GetEndTimeSpan();
         int      endTimeSpanWarningThreshold_s = myXmlRpcProxy.GetEndTimeSpanThreshold();
         TimeSpan endTimeSpan = TimeSpan.FromSeconds(endTimeSpan_s);
         TimeSpan endTimeSpanWarningThreshold = TimeSpan.FromSeconds(endTimeSpanWarningThreshold_s);
         endTimeSpan_minutes = (int)Math.Ceiling(endTimeSpan.TotalMinutes);
         endTimeSpanWarningThreshold_minutes = (int)Math.Ceiling(endTimeSpanWarningThreshold.TotalMinutes);
     }
     catch (Exception ex)
     {
         // Log the details of the exception
         LogException(ex, "GetBatchEndTimeSpanAndWarningThreshold_minutes");
     }
 }