public string ExecuteOnBugzilla(IBugzillaQuery bugzillaQuery) { var content = UploadDataToBugzilla(bugzillaQuery.Value()); content = ParseResponse(content); return content; }
private void ExecuteBugzillaNonQuery(IBugzillaQuery query) { var result = ExecuteBugzillaQuery(query); if (result != "OK") { throw new ApplicationException(string.Format( "There was exception during performing following operation: {0}. {1}", query.GetOperationDescription(), result)); } }
private string ExecuteBugzillaQuery(IBugzillaQuery query) { try { return(ObjectFactory.GetInstance <BugzillaUrl>().ExecuteOnBugzilla(query)); } catch (Exception ex) { throw new ApplicationException( string.Format("Synchronization failed for following operation: {0}. Profile : '{1}'", query, _bugzillaProfile), ex); } }
public void Execute(IBugzillaQuery query) { if (query is BugzillaCommentAction) { SendComment(query as BugzillaCommentAction); } else if (query is BugzillaAssigneeAction) { AssignUser(query as BugzillaAssigneeAction); } else { ChangeState(query as BugzillaChangeStatusAction); } }
private void ExecuteBugzillaNonQuery(IBugzillaQuery query) { var result = ExecuteBugzillaQuery(query); if (result != "OK") throw new ApplicationException(string.Format( "There was exception during performing following operation: {0}. {1}", query.GetOperationDescription(), result)); }
private string ExecuteBugzillaQuery(IBugzillaQuery query) { SetServerCertificateValidationCallback(); try { return ObjectFactory.GetInstance<BugzillaUrl>().ExecuteOnBugzilla(query); } catch (Exception ex) { throw new ApplicationException( string.Format("Synchronization failed for following operation: {0}. Profile : '{1}'", query, _bugzillaProfile), ex); } }
public void Execute(IBugzillaQuery query) { ExecuteBugzillaNonQuery(query); }
public void Execute(IBugzillaQuery query) { ExecuteBugzillaNonQuery(query); }
public string ExecuteOnBugzilla(IBugzillaQuery bugzillaQuery) { var content = UploadDataToBugzilla(bugzillaQuery.Value()); return(ProcessResponse(content)); }
private void ExecuteBugzillaNonQuery(IBugzillaQuery query) { var result = ExecuteBugzillaQuery(query); if (result != "OK") throw new ApplicationException($"There was exception during performing following operation: {query.GetOperationDescription()}. {result}"); }
private string ExecuteBugzillaQuery(IBugzillaQuery query) { try { return ObjectFactory.GetInstance<BugzillaUrl>().ExecuteOnBugzilla(query); } catch (Exception ex) { throw new ApplicationException( $"Synchronization failed for following operation: {query}. Profile : '{_bugzillaProfile}'", ex); } }