Exemplo n.º 1
0
 async public Task <DiscussionNote> ModifyNoteBodyAsync(int noteId, string body)
 {
     using (DiscussionOperator discussionOperator = new DiscussionOperator(_mergeRequestKey.ProjectKey.HostName,
                                                                           _hostProperties))
     {
         try
         {
             return(await discussionOperator.ModifyNoteBodyAsync(_mergeRequestKey, _discussionId, noteId, body));
         }
         catch (OperatorException ex)
         {
             throw new DiscussionEditorException("Cannot modify discussion body", ex);
         }
     }
 }
Exemplo n.º 2
0
 async public Task<DiscussionNote> ModifyNoteBodyAsync(int noteId, string body)
 {
    using (DiscussionOperator discussionOperator = new DiscussionOperator(_mergeRequestKey.ProjectKey.HostName,
          _hostProperties, _networkOperationStatusListener))
    {
       try
       {
          var result = await discussionOperator.ModifyNoteBodyAsync(_mergeRequestKey, _discussionId, noteId, body);
          _modificationListener.OnDiscussionModified(_mergeRequestKey);
          return result;
       }
       catch (OperatorException ex)
       {
          throw new DiscussionEditorException("Cannot modify discussion body", ex);
       }
    }
 }