async public Task DeleteNoteAsync(int noteId) { using (DiscussionOperator discussionOperator = new DiscussionOperator(_mergeRequestKey.ProjectKey.HostName, _hostProperties)) { try { await discussionOperator.DeleteNoteAsync(_mergeRequestKey, noteId); } catch (OperatorException ex) { throw new DiscussionEditorException("Cannot delete discussion note", ex); } } }
async public Task DeleteNoteAsync(int noteId) { using (DiscussionOperator discussionOperator = new DiscussionOperator(_mergeRequestKey.ProjectKey.HostName, _hostProperties, _networkOperationStatusListener)) { try { await discussionOperator.DeleteNoteAsync(_mergeRequestKey, noteId); _modificationListener.OnDiscussionModified(_mergeRequestKey); } catch (OperatorException ex) { throw new DiscussionEditorException("Cannot delete discussion note", ex); } } }