Esempio n. 1
0
 public static Attachment[] GetAttachments(long issueID, long actionID)
 {
     //Get attachments for the specified action
     Attachment[] attachments = null;
     try {
         _Client     = new IssueMgtServiceClient();
         attachments = _Client.GetAttachments(issueID, actionID);
         _Client.Close();
     }
     catch (FaultException fe) { throw new ApplicationException("GetAttachments() service error.", fe); }
     catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetAttachments() timeout error.", te); }
     catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetAttachments() communication error.", ce); }
     return(attachments);
 }