Esempio n. 1
0
        public static string GetIssueType(int typeID)
        {
            //Get an issue type  for the specified id
            string issueType = "";

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