Esempio n. 1
0
        public static ActionTypeDS GetActionTypes()
        {
            //Action types
            ActionTypeDS actionTypes = new ActionTypeDS();

            try {
                _Client     = new IssueMgtServiceClient();
                actionTypes = _Client.GetActionTypes();
                _Client.Close();
            }
            catch (FaultException fe) { throw new ApplicationException("GetActionTypes() service error.", fe); }
            catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetActionTypes() timeout error.", te); }
            catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetActionTypes() communication error.", ce); }
            return(actionTypes);
        }