Exemple #1
0
        public static ScanAudits GetScanAudits(DateTime routeDate, string routeClass)
        {
            //
            ScanAudits scans = null;

            try {
                _Client = new RoadshowServiceClient();
                scans   = _Client.GetScanAudits(routeDate, routeClass);
                _Client.Close();
            }
            catch (FaultException fe) { throw new ApplicationException("GetScanAudits() service error.", fe); }
            catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetScanAudits() timeout error.", te); }
            catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetScanAudits() communication error.", ce); }
            return(scans);
        }