示例#1
0
 ///<summary>
 /// Check there exists an issue with the specified id.
 ///</summary>
 /// <exception cref="MCException"></exception>
 public bool IssueExists(long issueId)
 {
     var mc = new MantisConnectPortTypeClient("MantisConnectPort", Url);
     try
     {
         return mc.mc_issue_exists(Username, Password, issueId.ToString());
     }
     catch (Exception ex)
     {
         throw new MCException(String.Format("Error checking issue {0}", issueId), ex);
     }
     finally
     {
         mc.CloseSafely();
     }
 }