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