コード例 #1
0
ファイル: DSMCCController.cs プロジェクト: esurharun/TSDumper
 private void processEPGFile(int dayNumber, string serviceID, BIOPFileMessage epgFile)
 {
     try
     {
         DateTime date = DateTime.Today + new TimeSpan(dayNumber - 1, 0, 0, 0);
         processDSMCCEPGFile(date, Int32.Parse(serviceID), epgFile.ContentData, Logger.ProtocolLogger);
     }
     catch (FormatException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
     catch (ArgumentException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
     catch (ArithmeticException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
 }
コード例 #2
0
ファイル: DSMCCController.cs プロジェクト: esurharun/TSDumper
 private void processEPGFile(string dateString, string serviceID, BIOPFileMessage epgFile)
 {
     try
     {
         DateTime date = DateTime.ParseExact(dateString, "yyyyMMdd", null);
         processDSMCCEPGFile(date, Int32.Parse(serviceID), epgFile.ContentData, Logger.ProtocolLogger);
     }
     catch (FormatException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
 }