Esempio n. 1
0
 public static Action[] GetIssueActions(long issueID)
 {
     //Get all actions for the specified issue
     Action[] actions = null;
     try {
         _Client = new IssueMgtServiceClient();
         actions = _Client.GetIssueActions(issueID);
         _Client.Close();
     }
     catch (FaultException fe) { throw new ApplicationException("GetIssueActions() service error.", fe); }
     catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetIssueActions() timeout error.", te); }
     catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetIssueActions() communication error.", ce); }
     return(actions);
 }
Esempio n. 2
0
        public Action[] GetIssueActions(long issueID)
        {
            //Get issue actions
            IssueMgtServiceClient client = null;

            Action[] actions = null;
            try {
                client  = new IssueMgtServiceClient();
                actions = client.GetIssueActions(issueID);
                for (int i = 0; i < actions.Length; i++)
                {
                    actions[i].Comment = actions[i].Comment.Replace("\n", "<br />");
                }
                client.Close();
            }
            catch (FaultException fe) { throw new ApplicationException("GetActions() service error.", fe); }
            catch (TimeoutException te) { client.Abort(); throw new ApplicationException("GetActions() timeout error.", te); }
            catch (CommunicationException ce) { client.Abort(); throw new ApplicationException("GetActions() communication error.", ce); }
            return(actions);
        }