Exemple #1
0
 public static void LoadPickups(DateTime pickupDate, string routeClass)
 {
     //Load pickup data
     try {
         _Client = new RoadshowServiceClient();
         _Client.LoadPickups(pickupDate, routeClass);
         _Client.Close();
     }
     catch (FaultException fe) { throw new ApplicationException("LoadPickups() service error.", fe); }
     catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("LoadPickups() timeout error.", te); }
     catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("LoadPickups() communication error.", ce); }
 }