コード例 #1
0
        public static Drivers GetScanAuditDrivers(DateTime routeDate, string routeClass)
        {
            //
            Drivers drivers = null;

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