Exemplo n.º 1
0
        public RemotePage CreatePage(string spaceIdentifier, long parentPageId, string pageTitle, string pageContent)
        {
            RemotePage remotePage = null;
            this.ExecuteLoggedIn(
                (confluence, token) =>
                {
                    var newPage = new RemotePage
                    {
                        content = pageContent,
                        parentId = parentPageId,
                        space = spaceIdentifier,
                        creator = this.UserName,
                        title = pageTitle
                    };

                    var storedPage = confluence.storePage(token, newPage);
                    remotePage = storedPage;
                });

            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]));
 }
 /// <remarks/>
 public void storePageAsync(string in0, RemotePage in1, object userState) {
     if ((this.storePageOperationCompleted == null)) {
         this.storePageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnstorePageOperationCompleted);
     }
     this.InvokeAsync("storePage", new object[] {
                                                    in0,
                                                    in1}, this.storePageOperationCompleted, userState);
 }
 /// <remarks/>
 public void storePageAsync(string in0, RemotePage in1) {
     this.storePageAsync(in0, in1, null);
 }
 /// <remarks/>
 public System.IAsyncResult BeginstorePage(string in0, RemotePage in1, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("storePage", new object[] {
                                                           in0,
                                                           in1}, callback, asyncState);
 }
 public RemotePage storePage(string in0, RemotePage in1) {
     object[] results = this.Invoke("storePage", new object[] {
                                                                  in0,
                                                                  in1});
     return ((RemotePage)(results[0]));
 }