Пример #1
0
        public static IssueTypeDS GetIssueTypes(string issueCategory)
        {
            //Issue types- all or filtered by category
            IssueTypeDS issueTypes = null;

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