Exemplo n.º 1
0
        public RemotePage AppendContentToPage(long pageId, string pageContent)
        {
            RemotePage remotePage = null;
            this.ExecuteLoggedIn(
                (confluence, token) =>
                {
                    var page = confluence.getPage(token, pageId);
                    page.content += pageContent;
                    var options = new RemotePageUpdateOptions { versionComment = "Updated as a result of publishing package version and sending notification email" };
                    var updatedPage = confluence.updatePage(token, page, options);
                    remotePage = updatedPage;
                });

            return remotePage;
        }
 /// <remarks/>
 public void updatePageAsync(string in0, RemotePage in1, RemotePageUpdateOptions in2, object userState) {
     if ((this.updatePageOperationCompleted == null)) {
         this.updatePageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnupdatePageOperationCompleted);
     }
     this.InvokeAsync("updatePage", new object[] {
                                                     in0,
                                                     in1,
                                                     in2}, this.updatePageOperationCompleted, userState);
 }
 /// <remarks/>
 public void updatePageAsync(string in0, RemotePage in1, RemotePageUpdateOptions in2) {
     this.updatePageAsync(in0, in1, in2, null);
 }
 /// <remarks/>
 public System.IAsyncResult BeginupdatePage(string in0, RemotePage in1, RemotePageUpdateOptions in2, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("updatePage", new object[] {
                                                            in0,
                                                            in1,
                                                            in2}, callback, asyncState);
 }
 public RemotePage updatePage(string in0, RemotePage in1, RemotePageUpdateOptions in2) {
     object[] results = this.Invoke("updatePage", new object[] {
                                                                   in0,
                                                                   in1,
                                                                   in2});
     return ((RemotePage)(results[0]));
 }