async public Task ReplyAsync(string body) { using (DiscussionOperator discussionOperator = new DiscussionOperator(_mergeRequestKey.ProjectKey.HostName, _hostProperties)) { try { await discussionOperator.ReplyAsync(_mergeRequestKey, _discussionId, body); } catch (OperatorException ex) { throw new DiscussionEditorException("Cannot send reply", ex); } } }
async public Task ReplyAsync(string body) { using (DiscussionOperator discussionOperator = new DiscussionOperator(_mergeRequestKey.ProjectKey.HostName, _hostProperties, _networkOperationStatusListener)) { try { await discussionOperator.ReplyAsync(_mergeRequestKey, _discussionId, body); _modificationListener.OnDiscussionModified(_mergeRequestKey); } catch (OperatorException ex) { throw new DiscussionEditorException("Cannot send reply", ex); } } }