Exemple #1
0
        public static Pickups GetPickups(DateTime pickupDate, string routeClass)
        {
            //
            Pickups pickups = null;

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