diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs index d2deb586..2bad8a81 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs @@ -1,35 +1,7 @@ -// Copyright (c) 2014, Outercurve Foundation. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without modification, -// are permitted provided that the following conditions are met: -// -// - Redistributions of source code must retain the above copyright notice, this -// list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright notice, -// this list of conditions and the following disclaimer in the documentation -// and/or other materials provided with the distribution. -// -// - Neither the name of the Outercurve Foundation nor the names of its -// contributors may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.6400 +// Runtime Version:2.0.50727.7905 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -39,2428 +11,2178 @@ // // This source code was auto-generated by wsdl, Version=2.0.50727.3038. // - -using WebsitePanel.Providers.Common; -using WebsitePanel.Providers.HostedSolution; -using WebsitePanel.Providers.RemoteDesktopServices; - namespace WebsitePanel.EnterpriseServer { - using System; - using System.ComponentModel; - using System.Diagnostics; - using System.Web.Services; - using System.Web.Services.Protocols; using System.Xml.Serialization; + using System.Web.Services; + using System.ComponentModel; + using System.Web.Services.Protocols; + using System; + using System.Diagnostics; + using WebsitePanel.Providers.Common; + using WebsitePanel.Providers.RemoteDesktopServices; + using WebsitePanel.Providers.HostedSolution; + + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "esRemoteDesktopServicesSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")] - public partial class esRemoteDesktopServices : Microsoft.Web.Services3.WebServicesClientProtocol - { - + [System.Web.Services.WebServiceBindingAttribute(Name="esRemoteDesktopServicesSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")] + public partial class esRemoteDesktopServices : Microsoft.Web.Services3.WebServicesClientProtocol { + private System.Threading.SendOrPostCallback GetRdsCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback GetOrganizationRdsCollectionsOperationCompleted; - + private System.Threading.SendOrPostCallback AddRdsCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback GetRdsCollectionsPagedOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveRdsCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback GetRdsServersPagedOperationCompleted; - + private System.Threading.SendOrPostCallback GetFreeRdsServersPagedOperationCompleted; - + private System.Threading.SendOrPostCallback GetOrganizationRdsServersPagedOperationCompleted; - + private System.Threading.SendOrPostCallback GetOrganizationFreeRdsServersPagedOperationCompleted; - + private System.Threading.SendOrPostCallback GetRdsServerOperationCompleted; - + + private System.Threading.SendOrPostCallback SetRDServerNewConnectionAllowedOperationCompleted; + private System.Threading.SendOrPostCallback GetCollectionRdsServersOperationCompleted; - + private System.Threading.SendOrPostCallback GetOrganizationRdsServersOperationCompleted; - + private System.Threading.SendOrPostCallback AddRdsServerOperationCompleted; - + private System.Threading.SendOrPostCallback AddRdsServerToCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback AddRdsServerToOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveRdsServerOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveRdsServerFromCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveRdsServerFromOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateRdsServerOperationCompleted; - + private System.Threading.SendOrPostCallback GetRdsCollectionUsersOperationCompleted; - + private System.Threading.SendOrPostCallback SetUsersToRdsCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback GetCollectionRemoteApplicationsOperationCompleted; - + private System.Threading.SendOrPostCallback GetAvailableRemoteApplicationsOperationCompleted; - + private System.Threading.SendOrPostCallback AddRemoteApplicationToCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveRemoteApplicationFromCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback SetRemoteApplicationsToRdsCollectionOperationCompleted; - + private System.Threading.SendOrPostCallback GetOrganizationRdsUsersCountOperationCompleted; - + /// - public esRemoteDesktopServices() - { + public esRemoteDesktopServices() { this.Url = "http://localhost:9002/esRemoteDesktopServices.asmx"; } - + /// public event GetRdsCollectionCompletedEventHandler GetRdsCollectionCompleted; - + /// public event GetOrganizationRdsCollectionsCompletedEventHandler GetOrganizationRdsCollectionsCompleted; - + /// public event AddRdsCollectionCompletedEventHandler AddRdsCollectionCompleted; - + /// public event GetRdsCollectionsPagedCompletedEventHandler GetRdsCollectionsPagedCompleted; - + /// public event RemoveRdsCollectionCompletedEventHandler RemoveRdsCollectionCompleted; - + /// public event GetRdsServersPagedCompletedEventHandler GetRdsServersPagedCompleted; - + /// public event GetFreeRdsServersPagedCompletedEventHandler GetFreeRdsServersPagedCompleted; - + /// public event GetOrganizationRdsServersPagedCompletedEventHandler GetOrganizationRdsServersPagedCompleted; - + /// public event GetOrganizationFreeRdsServersPagedCompletedEventHandler GetOrganizationFreeRdsServersPagedCompleted; - + /// public event GetRdsServerCompletedEventHandler GetRdsServerCompleted; - + + /// + public event SetRDServerNewConnectionAllowedCompletedEventHandler SetRDServerNewConnectionAllowedCompleted; + /// public event GetCollectionRdsServersCompletedEventHandler GetCollectionRdsServersCompleted; - + /// public event GetOrganizationRdsServersCompletedEventHandler GetOrganizationRdsServersCompleted; - + /// public event AddRdsServerCompletedEventHandler AddRdsServerCompleted; - + /// public event AddRdsServerToCollectionCompletedEventHandler AddRdsServerToCollectionCompleted; - + /// public event AddRdsServerToOrganizationCompletedEventHandler AddRdsServerToOrganizationCompleted; - + /// public event RemoveRdsServerCompletedEventHandler RemoveRdsServerCompleted; - + /// public event RemoveRdsServerFromCollectionCompletedEventHandler RemoveRdsServerFromCollectionCompleted; - + /// public event RemoveRdsServerFromOrganizationCompletedEventHandler RemoveRdsServerFromOrganizationCompleted; - + /// public event UpdateRdsServerCompletedEventHandler UpdateRdsServerCompleted; - + /// public event GetRdsCollectionUsersCompletedEventHandler GetRdsCollectionUsersCompleted; - + /// public event SetUsersToRdsCollectionCompletedEventHandler SetUsersToRdsCollectionCompleted; - + /// public event GetCollectionRemoteApplicationsCompletedEventHandler GetCollectionRemoteApplicationsCompleted; - + /// public event GetAvailableRemoteApplicationsCompletedEventHandler GetAvailableRemoteApplicationsCompleted; - + /// public event AddRemoteApplicationToCollectionCompletedEventHandler AddRemoteApplicationToCollectionCompleted; - + /// public event RemoveRemoteApplicationFromCollectionCompletedEventHandler RemoveRemoteApplicationFromCollectionCompleted; - + /// public event SetRemoteApplicationsToRdsCollectionCompletedEventHandler SetRemoteApplicationsToRdsCollectionCompleted; - + /// public event GetOrganizationRdsUsersCountCompletedEventHandler GetOrganizationRdsUsersCountCompleted; - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsCollection", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsCollection GetRdsCollection(int collectionId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsCollection", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsCollection GetRdsCollection(int collectionId) { object[] results = this.Invoke("GetRdsCollection", new object[] { - collectionId}); + collectionId}); return ((RdsCollection)(results[0])); } - + /// - public System.IAsyncResult BeginGetRdsCollection(int collectionId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetRdsCollection(int collectionId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetRdsCollection", new object[] { - collectionId}, callback, asyncState); + collectionId}, callback, asyncState); } - + /// - public RdsCollection EndGetRdsCollection(System.IAsyncResult asyncResult) - { + public RdsCollection EndGetRdsCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsCollection)(results[0])); } - + /// - public void GetRdsCollectionAsync(int collectionId) - { + public void GetRdsCollectionAsync(int collectionId) { this.GetRdsCollectionAsync(collectionId, null); } - + /// - public void GetRdsCollectionAsync(int collectionId, object userState) - { - if ((this.GetRdsCollectionOperationCompleted == null)) - { + public void GetRdsCollectionAsync(int collectionId, object userState) { + if ((this.GetRdsCollectionOperationCompleted == null)) { this.GetRdsCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRdsCollectionOperationCompleted); } this.InvokeAsync("GetRdsCollection", new object[] { - collectionId}, this.GetRdsCollectionOperationCompleted, userState); + collectionId}, this.GetRdsCollectionOperationCompleted, userState); } - - private void OnGetRdsCollectionOperationCompleted(object arg) - { - if ((this.GetRdsCollectionCompleted != null)) - { + + private void OnGetRdsCollectionOperationCompleted(object arg) { + if ((this.GetRdsCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetRdsCollectionCompleted(this, new GetRdsCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsCollections", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsCollection[] GetOrganizationRdsCollections(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsCollections", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsCollection[] GetOrganizationRdsCollections(int itemId) { object[] results = this.Invoke("GetOrganizationRdsCollections", new object[] { - itemId}); + itemId}); return ((RdsCollection[])(results[0])); } - + /// - public System.IAsyncResult BeginGetOrganizationRdsCollections(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetOrganizationRdsCollections(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetOrganizationRdsCollections", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public RdsCollection[] EndGetOrganizationRdsCollections(System.IAsyncResult asyncResult) - { + public RdsCollection[] EndGetOrganizationRdsCollections(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsCollection[])(results[0])); } - + /// - public void GetOrganizationRdsCollectionsAsync(int itemId) - { + public void GetOrganizationRdsCollectionsAsync(int itemId) { this.GetOrganizationRdsCollectionsAsync(itemId, null); } - + /// - public void GetOrganizationRdsCollectionsAsync(int itemId, object userState) - { - if ((this.GetOrganizationRdsCollectionsOperationCompleted == null)) - { + public void GetOrganizationRdsCollectionsAsync(int itemId, object userState) { + if ((this.GetOrganizationRdsCollectionsOperationCompleted == null)) { this.GetOrganizationRdsCollectionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationRdsCollectionsOperationCompleted); } this.InvokeAsync("GetOrganizationRdsCollections", new object[] { - itemId}, this.GetOrganizationRdsCollectionsOperationCompleted, userState); + itemId}, this.GetOrganizationRdsCollectionsOperationCompleted, userState); } - - private void OnGetOrganizationRdsCollectionsOperationCompleted(object arg) - { - if ((this.GetOrganizationRdsCollectionsCompleted != null)) - { + + private void OnGetOrganizationRdsCollectionsOperationCompleted(object arg) { + if ((this.GetOrganizationRdsCollectionsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetOrganizationRdsCollectionsCompleted(this, new GetOrganizationRdsCollectionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsCollection", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject AddRdsCollection(int itemId, RdsCollection collection) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsCollection", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject AddRdsCollection(int itemId, RdsCollection collection) { object[] results = this.Invoke("AddRdsCollection", new object[] { - itemId, - collection}); + itemId, + collection}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginAddRdsCollection(int itemId, RdsCollection collection, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddRdsCollection(int itemId, RdsCollection collection, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddRdsCollection", new object[] { - itemId, - collection}, callback, asyncState); + itemId, + collection}, callback, asyncState); } - + /// - public ResultObject EndAddRdsCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndAddRdsCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void AddRdsCollectionAsync(int itemId, RdsCollection collection) - { + public void AddRdsCollectionAsync(int itemId, RdsCollection collection) { this.AddRdsCollectionAsync(itemId, collection, null); } - + /// - public void AddRdsCollectionAsync(int itemId, RdsCollection collection, object userState) - { - if ((this.AddRdsCollectionOperationCompleted == null)) - { + public void AddRdsCollectionAsync(int itemId, RdsCollection collection, object userState) { + if ((this.AddRdsCollectionOperationCompleted == null)) { this.AddRdsCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRdsCollectionOperationCompleted); } this.InvokeAsync("AddRdsCollection", new object[] { - itemId, - collection}, this.AddRdsCollectionOperationCompleted, userState); + itemId, + collection}, this.AddRdsCollectionOperationCompleted, userState); } - - private void OnAddRdsCollectionOperationCompleted(object arg) - { - if ((this.AddRdsCollectionCompleted != null)) - { + + private void OnAddRdsCollectionOperationCompleted(object arg) { + if ((this.AddRdsCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddRdsCollectionCompleted(this, new AddRdsCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsCollectionsPaged", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsCollectionPaged GetRdsCollectionsPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsCollectionsPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsCollectionPaged GetRdsCollectionsPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetRdsCollectionsPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((RdsCollectionPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetRdsCollectionsPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetRdsCollectionsPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetRdsCollectionsPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } - + /// - public RdsCollectionPaged EndGetRdsCollectionsPaged(System.IAsyncResult asyncResult) - { + public RdsCollectionPaged EndGetRdsCollectionsPaged(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsCollectionPaged)(results[0])); } - + /// - public void GetRdsCollectionsPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + public void GetRdsCollectionsPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { this.GetRdsCollectionsPagedAsync(itemId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetRdsCollectionsPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) - { - if ((this.GetRdsCollectionsPagedOperationCompleted == null)) - { + public void GetRdsCollectionsPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetRdsCollectionsPagedOperationCompleted == null)) { this.GetRdsCollectionsPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRdsCollectionsPagedOperationCompleted); } this.InvokeAsync("GetRdsCollectionsPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetRdsCollectionsPagedOperationCompleted, userState); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetRdsCollectionsPagedOperationCompleted, userState); } - - private void OnGetRdsCollectionsPagedOperationCompleted(object arg) - { - if ((this.GetRdsCollectionsPagedCompleted != null)) - { + + private void OnGetRdsCollectionsPagedOperationCompleted(object arg) { + if ((this.GetRdsCollectionsPagedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetRdsCollectionsPagedCompleted(this, new GetRdsCollectionsPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsCollection", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject RemoveRdsCollection(int itemId, RdsCollection collection) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsCollection", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject RemoveRdsCollection(int itemId, RdsCollection collection) { object[] results = this.Invoke("RemoveRdsCollection", new object[] { - itemId, - collection}); + itemId, + collection}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveRdsCollection(int itemId, RdsCollection collection, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRemoveRdsCollection(int itemId, RdsCollection collection, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RemoveRdsCollection", new object[] { - itemId, - collection}, callback, asyncState); + itemId, + collection}, callback, asyncState); } - + /// - public ResultObject EndRemoveRdsCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndRemoveRdsCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void RemoveRdsCollectionAsync(int itemId, RdsCollection collection) - { + public void RemoveRdsCollectionAsync(int itemId, RdsCollection collection) { this.RemoveRdsCollectionAsync(itemId, collection, null); } - + /// - public void RemoveRdsCollectionAsync(int itemId, RdsCollection collection, object userState) - { - if ((this.RemoveRdsCollectionOperationCompleted == null)) - { + public void RemoveRdsCollectionAsync(int itemId, RdsCollection collection, object userState) { + if ((this.RemoveRdsCollectionOperationCompleted == null)) { this.RemoveRdsCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRdsCollectionOperationCompleted); } this.InvokeAsync("RemoveRdsCollection", new object[] { - itemId, - collection}, this.RemoveRdsCollectionOperationCompleted, userState); + itemId, + collection}, this.RemoveRdsCollectionOperationCompleted, userState); } - - private void OnRemoveRdsCollectionOperationCompleted(object arg) - { - if ((this.RemoveRdsCollectionCompleted != null)) - { + + private void OnRemoveRdsCollectionOperationCompleted(object arg) { + if ((this.RemoveRdsCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveRdsCollectionCompleted(this, new RemoveRdsCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsServersPaged", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsServersPaged GetRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsServersPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsServersPaged GetRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetRdsServersPaged", new object[] { - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}); + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((RdsServersPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetRdsServersPaged", new object[] { - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } - + /// - public RdsServersPaged EndGetRdsServersPaged(System.IAsyncResult asyncResult) - { + public RdsServersPaged EndGetRdsServersPaged(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsServersPaged)(results[0])); } - + /// - public void GetRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + public void GetRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { this.GetRdsServersPagedAsync(filterColumn, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) - { - if ((this.GetRdsServersPagedOperationCompleted == null)) - { + public void GetRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetRdsServersPagedOperationCompleted == null)) { this.GetRdsServersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRdsServersPagedOperationCompleted); } this.InvokeAsync("GetRdsServersPaged", new object[] { - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetRdsServersPagedOperationCompleted, userState); + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetRdsServersPagedOperationCompleted, userState); } - - private void OnGetRdsServersPagedOperationCompleted(object arg) - { - if ((this.GetRdsServersPagedCompleted != null)) - { + + private void OnGetRdsServersPagedOperationCompleted(object arg) { + if ((this.GetRdsServersPagedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetRdsServersPagedCompleted(this, new GetRdsServersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetFreeRdsServersPaged", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsServersPaged GetFreeRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetFreeRdsServersPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsServersPaged GetFreeRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetFreeRdsServersPaged", new object[] { - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}); + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((RdsServersPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetFreeRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetFreeRdsServersPaged(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetFreeRdsServersPaged", new object[] { - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } - + /// - public RdsServersPaged EndGetFreeRdsServersPaged(System.IAsyncResult asyncResult) - { + public RdsServersPaged EndGetFreeRdsServersPaged(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsServersPaged)(results[0])); } - + /// - public void GetFreeRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + public void GetFreeRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { this.GetFreeRdsServersPagedAsync(filterColumn, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetFreeRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) - { - if ((this.GetFreeRdsServersPagedOperationCompleted == null)) - { + public void GetFreeRdsServersPagedAsync(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetFreeRdsServersPagedOperationCompleted == null)) { this.GetFreeRdsServersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFreeRdsServersPagedOperationCompleted); } this.InvokeAsync("GetFreeRdsServersPaged", new object[] { - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetFreeRdsServersPagedOperationCompleted, userState); + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetFreeRdsServersPagedOperationCompleted, userState); } - - private void OnGetFreeRdsServersPagedOperationCompleted(object arg) - { - if ((this.GetFreeRdsServersPagedCompleted != null)) - { + + private void OnGetFreeRdsServersPagedOperationCompleted(object arg) { + if ((this.GetFreeRdsServersPagedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFreeRdsServersPagedCompleted(this, new GetFreeRdsServersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsServersPaged", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsServersPaged GetOrganizationRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsServersPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsServersPaged GetOrganizationRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetOrganizationRdsServersPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((RdsServersPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetOrganizationRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetOrganizationRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetOrganizationRdsServersPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } - + /// - public RdsServersPaged EndGetOrganizationRdsServersPaged(System.IAsyncResult asyncResult) - { + public RdsServersPaged EndGetOrganizationRdsServersPaged(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsServersPaged)(results[0])); } - + /// - public void GetOrganizationRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + public void GetOrganizationRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { this.GetOrganizationRdsServersPagedAsync(itemId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetOrganizationRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) - { - if ((this.GetOrganizationRdsServersPagedOperationCompleted == null)) - { + public void GetOrganizationRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetOrganizationRdsServersPagedOperationCompleted == null)) { this.GetOrganizationRdsServersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationRdsServersPagedOperationCompleted); } this.InvokeAsync("GetOrganizationRdsServersPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetOrganizationRdsServersPagedOperationCompleted, userState); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetOrganizationRdsServersPagedOperationCompleted, userState); } - - private void OnGetOrganizationRdsServersPagedOperationCompleted(object arg) - { - if ((this.GetOrganizationRdsServersPagedCompleted != null)) - { + + private void OnGetOrganizationRdsServersPagedOperationCompleted(object arg) { + if ((this.GetOrganizationRdsServersPagedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetOrganizationRdsServersPagedCompleted(this, new GetOrganizationRdsServersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationFreeRdsServersPaged", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsServersPaged GetOrganizationFreeRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationFreeRdsServersPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsServersPaged GetOrganizationFreeRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetOrganizationFreeRdsServersPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((RdsServersPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetOrganizationFreeRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetOrganizationFreeRdsServersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetOrganizationFreeRdsServersPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } - + /// - public RdsServersPaged EndGetOrganizationFreeRdsServersPaged(System.IAsyncResult asyncResult) - { + public RdsServersPaged EndGetOrganizationFreeRdsServersPaged(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsServersPaged)(results[0])); } - + /// - public void GetOrganizationFreeRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) - { + public void GetOrganizationFreeRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { this.GetOrganizationFreeRdsServersPagedAsync(itemId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetOrganizationFreeRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) - { - if ((this.GetOrganizationFreeRdsServersPagedOperationCompleted == null)) - { + public void GetOrganizationFreeRdsServersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetOrganizationFreeRdsServersPagedOperationCompleted == null)) { this.GetOrganizationFreeRdsServersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationFreeRdsServersPagedOperationCompleted); } this.InvokeAsync("GetOrganizationFreeRdsServersPaged", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetOrganizationFreeRdsServersPagedOperationCompleted, userState); + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetOrganizationFreeRdsServersPagedOperationCompleted, userState); } - - private void OnGetOrganizationFreeRdsServersPagedOperationCompleted(object arg) - { - if ((this.GetOrganizationFreeRdsServersPagedCompleted != null)) - { + + private void OnGetOrganizationFreeRdsServersPagedOperationCompleted(object arg) { + if ((this.GetOrganizationFreeRdsServersPagedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetOrganizationFreeRdsServersPagedCompleted(this, new GetOrganizationFreeRdsServersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsServer", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsServer GetRdsServer(int rdsSeverId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsServer", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsServer GetRdsServer(int rdsSeverId) { object[] results = this.Invoke("GetRdsServer", new object[] { - rdsSeverId}); + rdsSeverId}); return ((RdsServer)(results[0])); } - + /// - public System.IAsyncResult BeginGetRdsServer(int rdsSeverId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetRdsServer(int rdsSeverId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetRdsServer", new object[] { - rdsSeverId}, callback, asyncState); + rdsSeverId}, callback, asyncState); } - + /// - public RdsServer EndGetRdsServer(System.IAsyncResult asyncResult) - { + public RdsServer EndGetRdsServer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsServer)(results[0])); } - + /// - public void GetRdsServerAsync(int rdsSeverId) - { + public void GetRdsServerAsync(int rdsSeverId) { this.GetRdsServerAsync(rdsSeverId, null); } - + /// - public void GetRdsServerAsync(int rdsSeverId, object userState) - { - if ((this.GetRdsServerOperationCompleted == null)) - { + public void GetRdsServerAsync(int rdsSeverId, object userState) { + if ((this.GetRdsServerOperationCompleted == null)) { this.GetRdsServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRdsServerOperationCompleted); } this.InvokeAsync("GetRdsServer", new object[] { - rdsSeverId}, this.GetRdsServerOperationCompleted, userState); + rdsSeverId}, this.GetRdsServerOperationCompleted, userState); } - - private void OnGetRdsServerOperationCompleted(object arg) - { - if ((this.GetRdsServerCompleted != null)) - { + + private void OnGetRdsServerOperationCompleted(object arg) { + if ((this.GetRdsServerCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetRdsServerCompleted(this, new GetRdsServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetCollectionRdsServers", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsServer[] GetCollectionRdsServers(int collectionId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetRDServerNewConnectionAllowed", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject SetRDServerNewConnectionAllowed(int itemId, bool newConnectionAllowed, int rdsSeverId) { + object[] results = this.Invoke("SetRDServerNewConnectionAllowed", new object[] { + itemId, + newConnectionAllowed, + rdsSeverId}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginSetRDServerNewConnectionAllowed(int itemId, bool newConnectionAllowed, int rdsSeverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("SetRDServerNewConnectionAllowed", new object[] { + itemId, + newConnectionAllowed, + rdsSeverId}, callback, asyncState); + } + + /// + public ResultObject EndSetRDServerNewConnectionAllowed(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void SetRDServerNewConnectionAllowedAsync(int itemId, bool newConnectionAllowed, int rdsSeverId) { + this.SetRDServerNewConnectionAllowedAsync(itemId, newConnectionAllowed, rdsSeverId, null); + } + + /// + public void SetRDServerNewConnectionAllowedAsync(int itemId, bool newConnectionAllowed, int rdsSeverId, object userState) { + if ((this.SetRDServerNewConnectionAllowedOperationCompleted == null)) { + this.SetRDServerNewConnectionAllowedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRDServerNewConnectionAllowedOperationCompleted); + } + this.InvokeAsync("SetRDServerNewConnectionAllowed", new object[] { + itemId, + newConnectionAllowed, + rdsSeverId}, this.SetRDServerNewConnectionAllowedOperationCompleted, userState); + } + + private void OnSetRDServerNewConnectionAllowedOperationCompleted(object arg) { + if ((this.SetRDServerNewConnectionAllowedCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.SetRDServerNewConnectionAllowedCompleted(this, new SetRDServerNewConnectionAllowedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetCollectionRdsServers", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsServer[] GetCollectionRdsServers(int collectionId) { object[] results = this.Invoke("GetCollectionRdsServers", new object[] { - collectionId}); + collectionId}); return ((RdsServer[])(results[0])); } - + /// - public System.IAsyncResult BeginGetCollectionRdsServers(int collectionId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetCollectionRdsServers(int collectionId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetCollectionRdsServers", new object[] { - collectionId}, callback, asyncState); + collectionId}, callback, asyncState); } - + /// - public RdsServer[] EndGetCollectionRdsServers(System.IAsyncResult asyncResult) - { + public RdsServer[] EndGetCollectionRdsServers(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsServer[])(results[0])); } - + /// - public void GetCollectionRdsServersAsync(int collectionId) - { + public void GetCollectionRdsServersAsync(int collectionId) { this.GetCollectionRdsServersAsync(collectionId, null); } - + /// - public void GetCollectionRdsServersAsync(int collectionId, object userState) - { - if ((this.GetCollectionRdsServersOperationCompleted == null)) - { + public void GetCollectionRdsServersAsync(int collectionId, object userState) { + if ((this.GetCollectionRdsServersOperationCompleted == null)) { this.GetCollectionRdsServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCollectionRdsServersOperationCompleted); } this.InvokeAsync("GetCollectionRdsServers", new object[] { - collectionId}, this.GetCollectionRdsServersOperationCompleted, userState); + collectionId}, this.GetCollectionRdsServersOperationCompleted, userState); } - - private void OnGetCollectionRdsServersOperationCompleted(object arg) - { - if ((this.GetCollectionRdsServersCompleted != null)) - { + + private void OnGetCollectionRdsServersOperationCompleted(object arg) { + if ((this.GetCollectionRdsServersCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetCollectionRdsServersCompleted(this, new GetCollectionRdsServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsServers", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RdsServer[] GetOrganizationRdsServers(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsServers", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RdsServer[] GetOrganizationRdsServers(int itemId) { object[] results = this.Invoke("GetOrganizationRdsServers", new object[] { - itemId}); + itemId}); return ((RdsServer[])(results[0])); } - + /// - public System.IAsyncResult BeginGetOrganizationRdsServers(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetOrganizationRdsServers(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetOrganizationRdsServers", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public RdsServer[] EndGetOrganizationRdsServers(System.IAsyncResult asyncResult) - { + public RdsServer[] EndGetOrganizationRdsServers(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RdsServer[])(results[0])); } - + /// - public void GetOrganizationRdsServersAsync(int itemId) - { + public void GetOrganizationRdsServersAsync(int itemId) { this.GetOrganizationRdsServersAsync(itemId, null); } - + /// - public void GetOrganizationRdsServersAsync(int itemId, object userState) - { - if ((this.GetOrganizationRdsServersOperationCompleted == null)) - { + public void GetOrganizationRdsServersAsync(int itemId, object userState) { + if ((this.GetOrganizationRdsServersOperationCompleted == null)) { this.GetOrganizationRdsServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationRdsServersOperationCompleted); } this.InvokeAsync("GetOrganizationRdsServers", new object[] { - itemId}, this.GetOrganizationRdsServersOperationCompleted, userState); + itemId}, this.GetOrganizationRdsServersOperationCompleted, userState); } - - private void OnGetOrganizationRdsServersOperationCompleted(object arg) - { - if ((this.GetOrganizationRdsServersCompleted != null)) - { + + private void OnGetOrganizationRdsServersOperationCompleted(object arg) { + if ((this.GetOrganizationRdsServersCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetOrganizationRdsServersCompleted(this, new GetOrganizationRdsServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsServer", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject AddRdsServer(RdsServer rdsServer) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsServer", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject AddRdsServer(RdsServer rdsServer) { object[] results = this.Invoke("AddRdsServer", new object[] { - rdsServer}); + rdsServer}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginAddRdsServer(RdsServer rdsServer, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddRdsServer(RdsServer rdsServer, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddRdsServer", new object[] { - rdsServer}, callback, asyncState); + rdsServer}, callback, asyncState); } - + /// - public ResultObject EndAddRdsServer(System.IAsyncResult asyncResult) - { + public ResultObject EndAddRdsServer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void AddRdsServerAsync(RdsServer rdsServer) - { + public void AddRdsServerAsync(RdsServer rdsServer) { this.AddRdsServerAsync(rdsServer, null); } - + /// - public void AddRdsServerAsync(RdsServer rdsServer, object userState) - { - if ((this.AddRdsServerOperationCompleted == null)) - { + public void AddRdsServerAsync(RdsServer rdsServer, object userState) { + if ((this.AddRdsServerOperationCompleted == null)) { this.AddRdsServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRdsServerOperationCompleted); } this.InvokeAsync("AddRdsServer", new object[] { - rdsServer}, this.AddRdsServerOperationCompleted, userState); + rdsServer}, this.AddRdsServerOperationCompleted, userState); } - - private void OnAddRdsServerOperationCompleted(object arg) - { - if ((this.AddRdsServerCompleted != null)) - { + + private void OnAddRdsServerOperationCompleted(object arg) { + if ((this.AddRdsServerCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddRdsServerCompleted(this, new AddRdsServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsServerToCollection", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject AddRdsServerToCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsServerToCollection", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject AddRdsServerToCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) { object[] results = this.Invoke("AddRdsServerToCollection", new object[] { - itemId, - rdsServer, - rdsCollection}); + itemId, + rdsServer, + rdsCollection}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginAddRdsServerToCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddRdsServerToCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddRdsServerToCollection", new object[] { - itemId, - rdsServer, - rdsCollection}, callback, asyncState); + itemId, + rdsServer, + rdsCollection}, callback, asyncState); } - + /// - public ResultObject EndAddRdsServerToCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndAddRdsServerToCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void AddRdsServerToCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) - { + public void AddRdsServerToCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) { this.AddRdsServerToCollectionAsync(itemId, rdsServer, rdsCollection, null); } - + /// - public void AddRdsServerToCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, object userState) - { - if ((this.AddRdsServerToCollectionOperationCompleted == null)) - { + public void AddRdsServerToCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, object userState) { + if ((this.AddRdsServerToCollectionOperationCompleted == null)) { this.AddRdsServerToCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRdsServerToCollectionOperationCompleted); } this.InvokeAsync("AddRdsServerToCollection", new object[] { - itemId, - rdsServer, - rdsCollection}, this.AddRdsServerToCollectionOperationCompleted, userState); + itemId, + rdsServer, + rdsCollection}, this.AddRdsServerToCollectionOperationCompleted, userState); } - - private void OnAddRdsServerToCollectionOperationCompleted(object arg) - { - if ((this.AddRdsServerToCollectionCompleted != null)) - { + + private void OnAddRdsServerToCollectionOperationCompleted(object arg) { + if ((this.AddRdsServerToCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddRdsServerToCollectionCompleted(this, new AddRdsServerToCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsServerToOrganization", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject AddRdsServerToOrganization(int itemId, int serverId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsServerToOrganization", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject AddRdsServerToOrganization(int itemId, int serverId) { object[] results = this.Invoke("AddRdsServerToOrganization", new object[] { - itemId, - serverId}); + itemId, + serverId}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginAddRdsServerToOrganization(int itemId, int serverId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddRdsServerToOrganization(int itemId, int serverId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddRdsServerToOrganization", new object[] { - itemId, - serverId}, callback, asyncState); + itemId, + serverId}, callback, asyncState); } - + /// - public ResultObject EndAddRdsServerToOrganization(System.IAsyncResult asyncResult) - { + public ResultObject EndAddRdsServerToOrganization(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void AddRdsServerToOrganizationAsync(int itemId, int serverId) - { + public void AddRdsServerToOrganizationAsync(int itemId, int serverId) { this.AddRdsServerToOrganizationAsync(itemId, serverId, null); } - + /// - public void AddRdsServerToOrganizationAsync(int itemId, int serverId, object userState) - { - if ((this.AddRdsServerToOrganizationOperationCompleted == null)) - { + public void AddRdsServerToOrganizationAsync(int itemId, int serverId, object userState) { + if ((this.AddRdsServerToOrganizationOperationCompleted == null)) { this.AddRdsServerToOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRdsServerToOrganizationOperationCompleted); } this.InvokeAsync("AddRdsServerToOrganization", new object[] { - itemId, - serverId}, this.AddRdsServerToOrganizationOperationCompleted, userState); + itemId, + serverId}, this.AddRdsServerToOrganizationOperationCompleted, userState); } - - private void OnAddRdsServerToOrganizationOperationCompleted(object arg) - { - if ((this.AddRdsServerToOrganizationCompleted != null)) - { + + private void OnAddRdsServerToOrganizationOperationCompleted(object arg) { + if ((this.AddRdsServerToOrganizationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddRdsServerToOrganizationCompleted(this, new AddRdsServerToOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsServer", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject RemoveRdsServer(int rdsServerId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsServer", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject RemoveRdsServer(int rdsServerId) { object[] results = this.Invoke("RemoveRdsServer", new object[] { - rdsServerId}); + rdsServerId}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveRdsServer(int rdsServerId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRemoveRdsServer(int rdsServerId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RemoveRdsServer", new object[] { - rdsServerId}, callback, asyncState); + rdsServerId}, callback, asyncState); } - + /// - public ResultObject EndRemoveRdsServer(System.IAsyncResult asyncResult) - { + public ResultObject EndRemoveRdsServer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void RemoveRdsServerAsync(int rdsServerId) - { + public void RemoveRdsServerAsync(int rdsServerId) { this.RemoveRdsServerAsync(rdsServerId, null); } - + /// - public void RemoveRdsServerAsync(int rdsServerId, object userState) - { - if ((this.RemoveRdsServerOperationCompleted == null)) - { + public void RemoveRdsServerAsync(int rdsServerId, object userState) { + if ((this.RemoveRdsServerOperationCompleted == null)) { this.RemoveRdsServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRdsServerOperationCompleted); } this.InvokeAsync("RemoveRdsServer", new object[] { - rdsServerId}, this.RemoveRdsServerOperationCompleted, userState); + rdsServerId}, this.RemoveRdsServerOperationCompleted, userState); } - - private void OnRemoveRdsServerOperationCompleted(object arg) - { - if ((this.RemoveRdsServerCompleted != null)) - { + + private void OnRemoveRdsServerOperationCompleted(object arg) { + if ((this.RemoveRdsServerCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveRdsServerCompleted(this, new RemoveRdsServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsServerFromCollection", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject RemoveRdsServerFromCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsServerFromCollection", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject RemoveRdsServerFromCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) { object[] results = this.Invoke("RemoveRdsServerFromCollection", new object[] { - itemId, - rdsServer, - rdsCollection}); + itemId, + rdsServer, + rdsCollection}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveRdsServerFromCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRemoveRdsServerFromCollection(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RemoveRdsServerFromCollection", new object[] { - itemId, - rdsServer, - rdsCollection}, callback, asyncState); + itemId, + rdsServer, + rdsCollection}, callback, asyncState); } - + /// - public ResultObject EndRemoveRdsServerFromCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndRemoveRdsServerFromCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void RemoveRdsServerFromCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) - { + public void RemoveRdsServerFromCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection) { this.RemoveRdsServerFromCollectionAsync(itemId, rdsServer, rdsCollection, null); } - + /// - public void RemoveRdsServerFromCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, object userState) - { - if ((this.RemoveRdsServerFromCollectionOperationCompleted == null)) - { + public void RemoveRdsServerFromCollectionAsync(int itemId, RdsServer rdsServer, RdsCollection rdsCollection, object userState) { + if ((this.RemoveRdsServerFromCollectionOperationCompleted == null)) { this.RemoveRdsServerFromCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRdsServerFromCollectionOperationCompleted); } this.InvokeAsync("RemoveRdsServerFromCollection", new object[] { - itemId, - rdsServer, - rdsCollection}, this.RemoveRdsServerFromCollectionOperationCompleted, userState); + itemId, + rdsServer, + rdsCollection}, this.RemoveRdsServerFromCollectionOperationCompleted, userState); } - - private void OnRemoveRdsServerFromCollectionOperationCompleted(object arg) - { - if ((this.RemoveRdsServerFromCollectionCompleted != null)) - { + + private void OnRemoveRdsServerFromCollectionOperationCompleted(object arg) { + if ((this.RemoveRdsServerFromCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveRdsServerFromCollectionCompleted(this, new RemoveRdsServerFromCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsServerFromOrganization", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject RemoveRdsServerFromOrganization(int rdsServerId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRdsServerFromOrganization", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject RemoveRdsServerFromOrganization(int rdsServerId) { object[] results = this.Invoke("RemoveRdsServerFromOrganization", new object[] { - rdsServerId}); + rdsServerId}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveRdsServerFromOrganization(int rdsServerId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRemoveRdsServerFromOrganization(int rdsServerId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RemoveRdsServerFromOrganization", new object[] { - rdsServerId}, callback, asyncState); + rdsServerId}, callback, asyncState); } - + /// - public ResultObject EndRemoveRdsServerFromOrganization(System.IAsyncResult asyncResult) - { + public ResultObject EndRemoveRdsServerFromOrganization(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void RemoveRdsServerFromOrganizationAsync(int rdsServerId) - { + public void RemoveRdsServerFromOrganizationAsync(int rdsServerId) { this.RemoveRdsServerFromOrganizationAsync(rdsServerId, null); } - + /// - public void RemoveRdsServerFromOrganizationAsync(int rdsServerId, object userState) - { - if ((this.RemoveRdsServerFromOrganizationOperationCompleted == null)) - { + public void RemoveRdsServerFromOrganizationAsync(int rdsServerId, object userState) { + if ((this.RemoveRdsServerFromOrganizationOperationCompleted == null)) { this.RemoveRdsServerFromOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRdsServerFromOrganizationOperationCompleted); } this.InvokeAsync("RemoveRdsServerFromOrganization", new object[] { - rdsServerId}, this.RemoveRdsServerFromOrganizationOperationCompleted, userState); + rdsServerId}, this.RemoveRdsServerFromOrganizationOperationCompleted, userState); } - - private void OnRemoveRdsServerFromOrganizationOperationCompleted(object arg) - { - if ((this.RemoveRdsServerFromOrganizationCompleted != null)) - { + + private void OnRemoveRdsServerFromOrganizationOperationCompleted(object arg) { + if ((this.RemoveRdsServerFromOrganizationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveRdsServerFromOrganizationCompleted(this, new RemoveRdsServerFromOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateRdsServer", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject UpdateRdsServer(RdsServer rdsServer) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateRdsServer", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject UpdateRdsServer(RdsServer rdsServer) { object[] results = this.Invoke("UpdateRdsServer", new object[] { - rdsServer}); + rdsServer}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginUpdateRdsServer(RdsServer rdsServer, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginUpdateRdsServer(RdsServer rdsServer, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("UpdateRdsServer", new object[] { - rdsServer}, callback, asyncState); + rdsServer}, callback, asyncState); } - + /// - public ResultObject EndUpdateRdsServer(System.IAsyncResult asyncResult) - { + public ResultObject EndUpdateRdsServer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void UpdateRdsServerAsync(RdsServer rdsServer) - { + public void UpdateRdsServerAsync(RdsServer rdsServer) { this.UpdateRdsServerAsync(rdsServer, null); } - + /// - public void UpdateRdsServerAsync(RdsServer rdsServer, object userState) - { - if ((this.UpdateRdsServerOperationCompleted == null)) - { + public void UpdateRdsServerAsync(RdsServer rdsServer, object userState) { + if ((this.UpdateRdsServerOperationCompleted == null)) { this.UpdateRdsServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateRdsServerOperationCompleted); } this.InvokeAsync("UpdateRdsServer", new object[] { - rdsServer}, this.UpdateRdsServerOperationCompleted, userState); + rdsServer}, this.UpdateRdsServerOperationCompleted, userState); } - - private void OnUpdateRdsServerOperationCompleted(object arg) - { - if ((this.UpdateRdsServerCompleted != null)) - { + + private void OnUpdateRdsServerOperationCompleted(object arg) { + if ((this.UpdateRdsServerCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateRdsServerCompleted(this, new UpdateRdsServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsCollectionUsers", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public OrganizationUser[] GetRdsCollectionUsers(int collectionId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRdsCollectionUsers", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public OrganizationUser[] GetRdsCollectionUsers(int collectionId) { object[] results = this.Invoke("GetRdsCollectionUsers", new object[] { - collectionId}); + collectionId}); return ((OrganizationUser[])(results[0])); } - + /// - public System.IAsyncResult BeginGetRdsCollectionUsers(int collectionId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetRdsCollectionUsers(int collectionId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetRdsCollectionUsers", new object[] { - collectionId}, callback, asyncState); + collectionId}, callback, asyncState); } - + /// - public OrganizationUser[] EndGetRdsCollectionUsers(System.IAsyncResult asyncResult) - { + public OrganizationUser[] EndGetRdsCollectionUsers(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((OrganizationUser[])(results[0])); } - + /// - public void GetRdsCollectionUsersAsync(int collectionId) - { + public void GetRdsCollectionUsersAsync(int collectionId) { this.GetRdsCollectionUsersAsync(collectionId, null); } - + /// - public void GetRdsCollectionUsersAsync(int collectionId, object userState) - { - if ((this.GetRdsCollectionUsersOperationCompleted == null)) - { + public void GetRdsCollectionUsersAsync(int collectionId, object userState) { + if ((this.GetRdsCollectionUsersOperationCompleted == null)) { this.GetRdsCollectionUsersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRdsCollectionUsersOperationCompleted); } this.InvokeAsync("GetRdsCollectionUsers", new object[] { - collectionId}, this.GetRdsCollectionUsersOperationCompleted, userState); + collectionId}, this.GetRdsCollectionUsersOperationCompleted, userState); } - - private void OnGetRdsCollectionUsersOperationCompleted(object arg) - { - if ((this.GetRdsCollectionUsersCompleted != null)) - { + + private void OnGetRdsCollectionUsersOperationCompleted(object arg) { + if ((this.GetRdsCollectionUsersCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetRdsCollectionUsersCompleted(this, new GetRdsCollectionUsersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetUsersToRdsCollection", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject SetUsersToRdsCollection(int itemId, int collectionId, OrganizationUser[] users) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetUsersToRdsCollection", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject SetUsersToRdsCollection(int itemId, int collectionId, OrganizationUser[] users) { object[] results = this.Invoke("SetUsersToRdsCollection", new object[] { - itemId, - collectionId, - users}); + itemId, + collectionId, + users}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginSetUsersToRdsCollection(int itemId, int collectionId, OrganizationUser[] users, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetUsersToRdsCollection(int itemId, int collectionId, OrganizationUser[] users, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetUsersToRdsCollection", new object[] { - itemId, - collectionId, - users}, callback, asyncState); + itemId, + collectionId, + users}, callback, asyncState); } - + /// - public ResultObject EndSetUsersToRdsCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndSetUsersToRdsCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void SetUsersToRdsCollectionAsync(int itemId, int collectionId, OrganizationUser[] users) - { + public void SetUsersToRdsCollectionAsync(int itemId, int collectionId, OrganizationUser[] users) { this.SetUsersToRdsCollectionAsync(itemId, collectionId, users, null); } - + /// - public void SetUsersToRdsCollectionAsync(int itemId, int collectionId, OrganizationUser[] users, object userState) - { - if ((this.SetUsersToRdsCollectionOperationCompleted == null)) - { + public void SetUsersToRdsCollectionAsync(int itemId, int collectionId, OrganizationUser[] users, object userState) { + if ((this.SetUsersToRdsCollectionOperationCompleted == null)) { this.SetUsersToRdsCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUsersToRdsCollectionOperationCompleted); } this.InvokeAsync("SetUsersToRdsCollection", new object[] { - itemId, - collectionId, - users}, this.SetUsersToRdsCollectionOperationCompleted, userState); + itemId, + collectionId, + users}, this.SetUsersToRdsCollectionOperationCompleted, userState); } - - private void OnSetUsersToRdsCollectionOperationCompleted(object arg) - { - if ((this.SetUsersToRdsCollectionCompleted != null)) - { + + private void OnSetUsersToRdsCollectionOperationCompleted(object arg) { + if ((this.SetUsersToRdsCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetUsersToRdsCollectionCompleted(this, new SetUsersToRdsCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetCollectionRemoteApplications", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public RemoteApplication[] GetCollectionRemoteApplications(int itemId, string collectionName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetCollectionRemoteApplications", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public RemoteApplication[] GetCollectionRemoteApplications(int itemId, string collectionName) { object[] results = this.Invoke("GetCollectionRemoteApplications", new object[] { - itemId, - collectionName}); + itemId, + collectionName}); return ((RemoteApplication[])(results[0])); } - + /// - public System.IAsyncResult BeginGetCollectionRemoteApplications(int itemId, string collectionName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetCollectionRemoteApplications(int itemId, string collectionName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetCollectionRemoteApplications", new object[] { - itemId, - collectionName}, callback, asyncState); + itemId, + collectionName}, callback, asyncState); } - + /// - public RemoteApplication[] EndGetCollectionRemoteApplications(System.IAsyncResult asyncResult) - { + public RemoteApplication[] EndGetCollectionRemoteApplications(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((RemoteApplication[])(results[0])); } - + /// - public void GetCollectionRemoteApplicationsAsync(int itemId, string collectionName) - { + public void GetCollectionRemoteApplicationsAsync(int itemId, string collectionName) { this.GetCollectionRemoteApplicationsAsync(itemId, collectionName, null); } - + /// - public void GetCollectionRemoteApplicationsAsync(int itemId, string collectionName, object userState) - { - if ((this.GetCollectionRemoteApplicationsOperationCompleted == null)) - { + public void GetCollectionRemoteApplicationsAsync(int itemId, string collectionName, object userState) { + if ((this.GetCollectionRemoteApplicationsOperationCompleted == null)) { this.GetCollectionRemoteApplicationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCollectionRemoteApplicationsOperationCompleted); } this.InvokeAsync("GetCollectionRemoteApplications", new object[] { - itemId, - collectionName}, this.GetCollectionRemoteApplicationsOperationCompleted, userState); + itemId, + collectionName}, this.GetCollectionRemoteApplicationsOperationCompleted, userState); } - - private void OnGetCollectionRemoteApplicationsOperationCompleted(object arg) - { - if ((this.GetCollectionRemoteApplicationsCompleted != null)) - { + + private void OnGetCollectionRemoteApplicationsOperationCompleted(object arg) { + if ((this.GetCollectionRemoteApplicationsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetCollectionRemoteApplicationsCompleted(this, new GetCollectionRemoteApplicationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAvailableRemoteApplications", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public StartMenuApp[] GetAvailableRemoteApplications(int itemId, string collectionName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAvailableRemoteApplications", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public StartMenuApp[] GetAvailableRemoteApplications(int itemId, string collectionName) { object[] results = this.Invoke("GetAvailableRemoteApplications", new object[] { - itemId, - collectionName}); + itemId, + collectionName}); return ((StartMenuApp[])(results[0])); } - + /// - public System.IAsyncResult BeginGetAvailableRemoteApplications(int itemId, string collectionName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetAvailableRemoteApplications(int itemId, string collectionName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetAvailableRemoteApplications", new object[] { - itemId, - collectionName}, callback, asyncState); + itemId, + collectionName}, callback, asyncState); } - + /// - public StartMenuApp[] EndGetAvailableRemoteApplications(System.IAsyncResult asyncResult) - { + public StartMenuApp[] EndGetAvailableRemoteApplications(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((StartMenuApp[])(results[0])); } - + /// - public void GetAvailableRemoteApplicationsAsync(int itemId, string collectionName) - { + public void GetAvailableRemoteApplicationsAsync(int itemId, string collectionName) { this.GetAvailableRemoteApplicationsAsync(itemId, collectionName, null); } - + /// - public void GetAvailableRemoteApplicationsAsync(int itemId, string collectionName, object userState) - { - if ((this.GetAvailableRemoteApplicationsOperationCompleted == null)) - { + public void GetAvailableRemoteApplicationsAsync(int itemId, string collectionName, object userState) { + if ((this.GetAvailableRemoteApplicationsOperationCompleted == null)) { this.GetAvailableRemoteApplicationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAvailableRemoteApplicationsOperationCompleted); } this.InvokeAsync("GetAvailableRemoteApplications", new object[] { - itemId, - collectionName}, this.GetAvailableRemoteApplicationsOperationCompleted, userState); + itemId, + collectionName}, this.GetAvailableRemoteApplicationsOperationCompleted, userState); } - - private void OnGetAvailableRemoteApplicationsOperationCompleted(object arg) - { - if ((this.GetAvailableRemoteApplicationsCompleted != null)) - { + + private void OnGetAvailableRemoteApplicationsOperationCompleted(object arg) { + if ((this.GetAvailableRemoteApplicationsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetAvailableRemoteApplicationsCompleted(this, new GetAvailableRemoteApplicationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRemoteApplicationToCollection", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject AddRemoteApplicationToCollection(int itemId, RdsCollection collection, RemoteApplication application) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRemoteApplicationToCollection", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject AddRemoteApplicationToCollection(int itemId, RdsCollection collection, RemoteApplication application) { object[] results = this.Invoke("AddRemoteApplicationToCollection", new object[] { - itemId, - collection, - application}); + itemId, + collection, + application}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginAddRemoteApplicationToCollection(int itemId, RdsCollection collection, RemoteApplication application, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddRemoteApplicationToCollection(int itemId, RdsCollection collection, RemoteApplication application, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddRemoteApplicationToCollection", new object[] { - itemId, - collection, - application}, callback, asyncState); + itemId, + collection, + application}, callback, asyncState); } - + /// - public ResultObject EndAddRemoteApplicationToCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndAddRemoteApplicationToCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void AddRemoteApplicationToCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application) - { + public void AddRemoteApplicationToCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application) { this.AddRemoteApplicationToCollectionAsync(itemId, collection, application, null); } - + /// - public void AddRemoteApplicationToCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application, object userState) - { - if ((this.AddRemoteApplicationToCollectionOperationCompleted == null)) - { + public void AddRemoteApplicationToCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application, object userState) { + if ((this.AddRemoteApplicationToCollectionOperationCompleted == null)) { this.AddRemoteApplicationToCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRemoteApplicationToCollectionOperationCompleted); } this.InvokeAsync("AddRemoteApplicationToCollection", new object[] { - itemId, - collection, - application}, this.AddRemoteApplicationToCollectionOperationCompleted, userState); + itemId, + collection, + application}, this.AddRemoteApplicationToCollectionOperationCompleted, userState); } - - private void OnAddRemoteApplicationToCollectionOperationCompleted(object arg) - { - if ((this.AddRemoteApplicationToCollectionCompleted != null)) - { + + private void OnAddRemoteApplicationToCollectionOperationCompleted(object arg) { + if ((this.AddRemoteApplicationToCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddRemoteApplicationToCollectionCompleted(this, new AddRemoteApplicationToCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RemoveRemoteApplicationFromCollectio" + - "n", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject RemoveRemoteApplicationFromCollection(int itemId, RdsCollection collection, RemoteApplication application) - { + "n", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject RemoveRemoteApplicationFromCollection(int itemId, RdsCollection collection, RemoteApplication application) { object[] results = this.Invoke("RemoveRemoteApplicationFromCollection", new object[] { - itemId, - collection, - application}); + itemId, + collection, + application}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveRemoteApplicationFromCollection(int itemId, RdsCollection collection, RemoteApplication application, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRemoveRemoteApplicationFromCollection(int itemId, RdsCollection collection, RemoteApplication application, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RemoveRemoteApplicationFromCollection", new object[] { - itemId, - collection, - application}, callback, asyncState); + itemId, + collection, + application}, callback, asyncState); } - + /// - public ResultObject EndRemoveRemoteApplicationFromCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndRemoveRemoteApplicationFromCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void RemoveRemoteApplicationFromCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application) - { + public void RemoveRemoteApplicationFromCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application) { this.RemoveRemoteApplicationFromCollectionAsync(itemId, collection, application, null); } - + /// - public void RemoveRemoteApplicationFromCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application, object userState) - { - if ((this.RemoveRemoteApplicationFromCollectionOperationCompleted == null)) - { + public void RemoveRemoteApplicationFromCollectionAsync(int itemId, RdsCollection collection, RemoteApplication application, object userState) { + if ((this.RemoveRemoteApplicationFromCollectionOperationCompleted == null)) { this.RemoveRemoteApplicationFromCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRemoteApplicationFromCollectionOperationCompleted); } this.InvokeAsync("RemoveRemoteApplicationFromCollection", new object[] { - itemId, - collection, - application}, this.RemoveRemoteApplicationFromCollectionOperationCompleted, userState); + itemId, + collection, + application}, this.RemoveRemoteApplicationFromCollectionOperationCompleted, userState); } - - private void OnRemoveRemoteApplicationFromCollectionOperationCompleted(object arg) - { - if ((this.RemoveRemoteApplicationFromCollectionCompleted != null)) - { + + private void OnRemoveRemoteApplicationFromCollectionOperationCompleted(object arg) { + if ((this.RemoveRemoteApplicationFromCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveRemoteApplicationFromCollectionCompleted(this, new RemoveRemoteApplicationFromCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetRemoteApplicationsToRdsCollection" + - "", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ResultObject SetRemoteApplicationsToRdsCollection(int itemId, int collectionId, RemoteApplication[] remoteApps) - { + "", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public ResultObject SetRemoteApplicationsToRdsCollection(int itemId, int collectionId, RemoteApplication[] remoteApps) { object[] results = this.Invoke("SetRemoteApplicationsToRdsCollection", new object[] { - itemId, - collectionId, - remoteApps}); + itemId, + collectionId, + remoteApps}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginSetRemoteApplicationsToRdsCollection(int itemId, int collectionId, RemoteApplication[] remoteApps, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetRemoteApplicationsToRdsCollection(int itemId, int collectionId, RemoteApplication[] remoteApps, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetRemoteApplicationsToRdsCollection", new object[] { - itemId, - collectionId, - remoteApps}, callback, asyncState); + itemId, + collectionId, + remoteApps}, callback, asyncState); } - + /// - public ResultObject EndSetRemoteApplicationsToRdsCollection(System.IAsyncResult asyncResult) - { + public ResultObject EndSetRemoteApplicationsToRdsCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void SetRemoteApplicationsToRdsCollectionAsync(int itemId, int collectionId, RemoteApplication[] remoteApps) - { + public void SetRemoteApplicationsToRdsCollectionAsync(int itemId, int collectionId, RemoteApplication[] remoteApps) { this.SetRemoteApplicationsToRdsCollectionAsync(itemId, collectionId, remoteApps, null); } - + /// - public void SetRemoteApplicationsToRdsCollectionAsync(int itemId, int collectionId, RemoteApplication[] remoteApps, object userState) - { - if ((this.SetRemoteApplicationsToRdsCollectionOperationCompleted == null)) - { + public void SetRemoteApplicationsToRdsCollectionAsync(int itemId, int collectionId, RemoteApplication[] remoteApps, object userState) { + if ((this.SetRemoteApplicationsToRdsCollectionOperationCompleted == null)) { this.SetRemoteApplicationsToRdsCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRemoteApplicationsToRdsCollectionOperationCompleted); } this.InvokeAsync("SetRemoteApplicationsToRdsCollection", new object[] { - itemId, - collectionId, - remoteApps}, this.SetRemoteApplicationsToRdsCollectionOperationCompleted, userState); + itemId, + collectionId, + remoteApps}, this.SetRemoteApplicationsToRdsCollectionOperationCompleted, userState); } - - private void OnSetRemoteApplicationsToRdsCollectionOperationCompleted(object arg) - { - if ((this.SetRemoteApplicationsToRdsCollectionCompleted != null)) - { + + private void OnSetRemoteApplicationsToRdsCollectionOperationCompleted(object arg) { + if ((this.SetRemoteApplicationsToRdsCollectionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetRemoteApplicationsToRdsCollectionCompleted(this, new SetRemoteApplicationsToRdsCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsUsersCount", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public int GetOrganizationRdsUsersCount(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsUsersCount", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public int GetOrganizationRdsUsersCount(int itemId) { object[] results = this.Invoke("GetOrganizationRdsUsersCount", new object[] { - itemId}); + itemId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginGetOrganizationRdsUsersCount(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetOrganizationRdsUsersCount(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetOrganizationRdsUsersCount", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public int EndGetOrganizationRdsUsersCount(System.IAsyncResult asyncResult) - { + public int EndGetOrganizationRdsUsersCount(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void GetOrganizationRdsUsersCountAsync(int itemId) - { + public void GetOrganizationRdsUsersCountAsync(int itemId) { this.GetOrganizationRdsUsersCountAsync(itemId, null); } - + /// - public void GetOrganizationRdsUsersCountAsync(int itemId, object userState) - { - if ((this.GetOrganizationRdsUsersCountOperationCompleted == null)) - { + public void GetOrganizationRdsUsersCountAsync(int itemId, object userState) { + if ((this.GetOrganizationRdsUsersCountOperationCompleted == null)) { this.GetOrganizationRdsUsersCountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationRdsUsersCountOperationCompleted); } this.InvokeAsync("GetOrganizationRdsUsersCount", new object[] { - itemId}, this.GetOrganizationRdsUsersCountOperationCompleted, userState); + itemId}, this.GetOrganizationRdsUsersCountOperationCompleted, userState); } - - private void OnGetOrganizationRdsUsersCountOperationCompleted(object arg) - { - if ((this.GetOrganizationRdsUsersCountCompleted != null)) - { + + private void OnGetOrganizationRdsUsersCountOperationCompleted(object arg) { + if ((this.GetOrganizationRdsUsersCountCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetOrganizationRdsUsersCountCompleted(this, new GetOrganizationRdsUsersCountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - public new void CancelAsync(object userState) - { + public new void CancelAsync(object userState) { base.CancelAsync(userState); } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetRdsCollectionCompletedEventHandler(object sender, GetRdsCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsCollection Result - { - get - { + public RdsCollection Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsCollection)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetOrganizationRdsCollectionsCompletedEventHandler(object sender, GetOrganizationRdsCollectionsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationRdsCollectionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetOrganizationRdsCollectionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetOrganizationRdsCollectionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetOrganizationRdsCollectionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsCollection[] Result - { - get - { + public RdsCollection[] Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsCollection[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddRdsCollectionCompletedEventHandler(object sender, AddRdsCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class AddRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal AddRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal AddRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetRdsCollectionsPagedCompletedEventHandler(object sender, GetRdsCollectionsPagedCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRdsCollectionsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetRdsCollectionsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetRdsCollectionsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetRdsCollectionsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsCollectionPaged Result - { - get - { + public RdsCollectionPaged Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsCollectionPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveRdsCollectionCompletedEventHandler(object sender, RemoveRdsCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RemoveRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RemoveRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RemoveRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetRdsServersPagedCompletedEventHandler(object sender, GetRdsServersPagedCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsServersPaged Result - { - get - { + public RdsServersPaged Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsServersPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetFreeRdsServersPagedCompletedEventHandler(object sender, GetFreeRdsServersPagedCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFreeRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetFreeRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetFreeRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetFreeRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsServersPaged Result - { - get - { + public RdsServersPaged Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsServersPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetOrganizationRdsServersPagedCompletedEventHandler(object sender, GetOrganizationRdsServersPagedCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetOrganizationRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetOrganizationRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetOrganizationRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsServersPaged Result - { - get - { + public RdsServersPaged Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsServersPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetOrganizationFreeRdsServersPagedCompletedEventHandler(object sender, GetOrganizationFreeRdsServersPagedCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationFreeRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetOrganizationFreeRdsServersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetOrganizationFreeRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetOrganizationFreeRdsServersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsServersPaged Result - { - get - { + public RdsServersPaged Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsServersPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetRdsServerCompletedEventHandler(object sender, GetRdsServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsServer Result - { - get - { + public RdsServer Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsServer)(this.results[0])); } } } - + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetRDServerNewConnectionAllowedCompletedEventHandler(object sender, SetRDServerNewConnectionAllowedCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class SetRDServerNewConnectionAllowedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal SetRDServerNewConnectionAllowedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ResultObject Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ResultObject)(this.results[0])); + } + } + } + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetCollectionRdsServersCompletedEventHandler(object sender, GetCollectionRdsServersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetCollectionRdsServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetCollectionRdsServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetCollectionRdsServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetCollectionRdsServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsServer[] Result - { - get - { + public RdsServer[] Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsServer[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetOrganizationRdsServersCompletedEventHandler(object sender, GetOrganizationRdsServersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationRdsServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetOrganizationRdsServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetOrganizationRdsServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetOrganizationRdsServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RdsServer[] Result - { - get - { + public RdsServer[] Result { + get { this.RaiseExceptionIfNecessary(); return ((RdsServer[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddRdsServerCompletedEventHandler(object sender, AddRdsServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class AddRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal AddRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal AddRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddRdsServerToCollectionCompletedEventHandler(object sender, AddRdsServerToCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddRdsServerToCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class AddRdsServerToCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal AddRdsServerToCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal AddRdsServerToCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddRdsServerToOrganizationCompletedEventHandler(object sender, AddRdsServerToOrganizationCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddRdsServerToOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class AddRdsServerToOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal AddRdsServerToOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal AddRdsServerToOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveRdsServerCompletedEventHandler(object sender, RemoveRdsServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RemoveRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RemoveRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RemoveRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveRdsServerFromCollectionCompletedEventHandler(object sender, RemoveRdsServerFromCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRdsServerFromCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RemoveRdsServerFromCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RemoveRdsServerFromCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RemoveRdsServerFromCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveRdsServerFromOrganizationCompletedEventHandler(object sender, RemoveRdsServerFromOrganizationCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRdsServerFromOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RemoveRdsServerFromOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RemoveRdsServerFromOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RemoveRdsServerFromOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void UpdateRdsServerCompletedEventHandler(object sender, UpdateRdsServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class UpdateRdsServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal UpdateRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal UpdateRdsServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetRdsCollectionUsersCompletedEventHandler(object sender, GetRdsCollectionUsersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRdsCollectionUsersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetRdsCollectionUsersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetRdsCollectionUsersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetRdsCollectionUsersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public OrganizationUser[] Result - { - get - { + public OrganizationUser[] Result { + get { this.RaiseExceptionIfNecessary(); return ((OrganizationUser[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetUsersToRdsCollectionCompletedEventHandler(object sender, SetUsersToRdsCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetUsersToRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class SetUsersToRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal SetUsersToRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal SetUsersToRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetCollectionRemoteApplicationsCompletedEventHandler(object sender, GetCollectionRemoteApplicationsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetCollectionRemoteApplicationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetCollectionRemoteApplicationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetCollectionRemoteApplicationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetCollectionRemoteApplicationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public RemoteApplication[] Result - { - get - { + public RemoteApplication[] Result { + get { this.RaiseExceptionIfNecessary(); return ((RemoteApplication[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetAvailableRemoteApplicationsCompletedEventHandler(object sender, GetAvailableRemoteApplicationsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetAvailableRemoteApplicationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetAvailableRemoteApplicationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetAvailableRemoteApplicationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetAvailableRemoteApplicationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public StartMenuApp[] Result - { - get - { + public StartMenuApp[] Result { + get { this.RaiseExceptionIfNecessary(); return ((StartMenuApp[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddRemoteApplicationToCollectionCompletedEventHandler(object sender, AddRemoteApplicationToCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddRemoteApplicationToCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class AddRemoteApplicationToCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal AddRemoteApplicationToCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal AddRemoteApplicationToCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveRemoteApplicationFromCollectionCompletedEventHandler(object sender, RemoveRemoteApplicationFromCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRemoteApplicationFromCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RemoveRemoteApplicationFromCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RemoveRemoteApplicationFromCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RemoveRemoteApplicationFromCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetRemoteApplicationsToRdsCollectionCompletedEventHandler(object sender, SetRemoteApplicationsToRdsCollectionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetRemoteApplicationsToRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class SetRemoteApplicationsToRdsCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal SetRemoteApplicationsToRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal SetRemoteApplicationsToRdsCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetOrganizationRdsUsersCountCompletedEventHandler(object sender, GetOrganizationRdsUsersCountCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationRdsUsersCountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetOrganizationRdsUsersCountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetOrganizationRdsUsersCountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetOrganizationRdsUsersCountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs index f2a3ca42..41db1b4d 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs @@ -108,6 +108,11 @@ namespace WebsitePanel.EnterpriseServer return GetRdsServerInternal(rdsSeverId); } + public static ResultObject SetRDServerNewConnectionAllowed(int itemId, bool newConnectionAllowed, int rdsSeverId) + { + return SetRDServerNewConnectionAllowedInternal(itemId, newConnectionAllowed, rdsSeverId); + } + public static List GetCollectionRdsServers(int collectionId) { return GetCollectionRdsServersInternal(collectionId); @@ -457,6 +462,52 @@ namespace WebsitePanel.EnterpriseServer return ObjectUtils.FillObjectFromDataReader(DataProvider.GetRDSServerById(rdsSeverId)); } + private static ResultObject SetRDServerNewConnectionAllowedInternal(int itemId, bool newConnectionAllowed, int rdsSeverId) + { + ResultObject result = TaskManager.StartResultTask("REMOTE_DESKTOP_SERVICES", "SET_RDS_SERVER_NEW_CONNECTIONS_ALLOWED"); ; + try + { + // load organization + Organization org = OrganizationController.GetOrganization(itemId); + if (org == null) + { + result.IsSuccess = false; + result.AddError("", new NullReferenceException("Organization not found")); + return result; + } + + var rds = GetRemoteDesktopServices(GetRemoteDesktopServiceID(org.PackageId)); + + var rdsServer = GetRdsServer(rdsSeverId); + + if (rdsServer == null) + { + result.IsSuccess = false; + result.AddError("", new NullReferenceException("RDS Server not found")); + return result; + } + + rds.SetRDServerNewConnectionAllowed(newConnectionAllowed, rdsServer); + } + catch (Exception ex) + { + result.AddError("REMOTE_DESKTOP_SERVICES_SET_RDS_SERVER_NEW_CONNECTIONS_ALLOWED", ex); + } + finally + { + if (!result.IsSuccess) + { + TaskManager.CompleteResultTask(result); + } + else + { + TaskManager.CompleteResultTask(); + } + } + + return result; + } + private static int GetOrganizationRdsUsersCountInternal(int itemId) { return DataProvider.GetOrganizationRdsUsersCount(itemId); @@ -639,7 +690,7 @@ namespace WebsitePanel.EnterpriseServer RdsServer rdsServer = GetRdsServer(serverId); - if (!rds.CheckSessionHostFeatureInstallation(rdsServer.FqdName)) + //if (!rds.CheckSessionHostFeatureInstallation(rdsServer.FqdName)) { rds.AddSessionHostFeatureToServer(rdsServer.FqdName); } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs index 48005ae8..d86b9733 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs @@ -122,6 +122,12 @@ namespace WebsitePanel.EnterpriseServer return RemoteDesktopServicesController.GetRdsServer(rdsSeverId); } + [WebMethod] + public ResultObject SetRDServerNewConnectionAllowed(int itemId, bool newConnectionAllowed, int rdsSeverId) + { + return RemoteDesktopServicesController.SetRDServerNewConnectionAllowed(itemId, newConnectionAllowed, rdsSeverId); + } + [WebMethod] public List GetCollectionRdsServers(int collectionId) { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/RemoteDesktopServices/IRemoteDesktopServices.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/RemoteDesktopServices/IRemoteDesktopServices.cs index 6cf5ec6b..db2e114c 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/RemoteDesktopServices/IRemoteDesktopServices.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/RemoteDesktopServices/IRemoteDesktopServices.cs @@ -48,6 +48,8 @@ namespace WebsitePanel.Providers.RemoteDesktopServices void RemoveSessionHostServerFromCollection(string organizationId, string collectionName, RdsServer server); void RemoveSessionHostServersFromCollection(string organizationId, string collectionName, List servers); + void SetRDServerNewConnectionAllowed(bool newConnectionAllowed, RdsServer server); + List GetAvailableRemoteApplications(string collectionName); List GetCollectionRemoteApplications(string collectionName); bool AddRemoteApplication(string collectionName, RemoteApplication remoteApp); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs b/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs index 68de8394..232842de 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs @@ -370,7 +370,7 @@ namespace WebsitePanel.Providers.RemoteDesktopServices } } - public void AddSessionHostServersToCollection(string organizationId, string collectionName, List servers) + public void AddSessionHostServersToCollection(string organizationId, string collectionName, List servers) { foreach (var server in servers) { @@ -411,6 +411,30 @@ namespace WebsitePanel.Providers.RemoteDesktopServices #endregion + public void SetRDServerNewConnectionAllowed(bool newConnectionAllowed, RdsServer server) + { + Runspace runSpace = null; + + try + { + runSpace = OpenRunspace(); + + Command cmd = new Command("Set-RDSessionHost"); + cmd.Parameters.Add("SessionHost", server.FqdName); + cmd.Parameters.Add("NewConnectionAllowed", string.Format("${0}", newConnectionAllowed.ToString())); + + ExecuteShellCommand(runSpace, cmd, false); + } + catch (Exception e) + { + + } + finally + { + CloseRunspace(runSpace); + } + } + #region Remote Applications public List GetAvailableRemoteApplications(string collectionName) @@ -635,8 +659,8 @@ namespace WebsitePanel.Providers.RemoteDesktopServices ExecuteShellCommand(runSpace, cmd, false); } + - private bool ExistRdsServerInDeployment(Runspace runSpace, RdsServer server) { Command cmd = new Command("Get-RDserver"); @@ -737,6 +761,8 @@ namespace WebsitePanel.Providers.RemoteDesktopServices ActiveDirectoryUtils.AddObjectToGroup(computerPath, GetComputerGroupPath(organizationId, collectionName)); } } + + SetRDServerNewConnectionAllowed(false, server); } private void RemoveComputerFromCollectionAdComputerGroup(string organizationId, string collectionName, RdsServer server) @@ -766,14 +792,35 @@ namespace WebsitePanel.Providers.RemoteDesktopServices bool installationResult = false; Runspace runSpace = null; + PSObject feature = null; try - { - runSpace = OpenRunspace(); + { + if (!CheckSessionHostFeatureInstallation(hostName)) + { + runSpace = OpenRunspace(); + + feature = AddFeature(runSpace, hostName, "RDS-RD-Server", true, true); + installationResult = (bool)GetPSObjectProperty(feature, "Success"); + } + else + { + runSpace = OpenRunspace(); + installationResult = true; + } + - var feature = AddFeature(runSpace, hostName, "RDS-RD-Server", true, true); + if (installationResult && !IsFeatureInstalled(hostName, "Desktop-Experience", runSpace)) + { + feature = AddFeature(runSpace, hostName, "Desktop-Experience", true, false); + installationResult = (bool) GetPSObjectProperty(feature, "Success"); + } - installationResult = (bool) GetPSObjectProperty(feature, "Success"); + if (installationResult && !IsFeatureInstalled(hostName, "NET-Framework-45-Core", runSpace)) + { + feature = AddFeature(runSpace, hostName, "NET-Framework-45-Core", true, false); + installationResult = (bool)GetPSObjectProperty(feature, "Success"); + } } finally { @@ -1087,60 +1134,37 @@ namespace WebsitePanel.Providers.RemoteDesktopServices #region Windows Feature PowerShell - internal bool IsFeatureInstalled(string hostName, string featureName) + internal bool IsFeatureInstalled(string hostName, string featureName, Runspace runSpace) { - bool isInstalled = false; - - Runspace runSpace = null; - try + bool isInstalled = false; + Command cmd = new Command("Get-WindowsFeature"); + cmd.Parameters.Add("Name", featureName); + var feature = ExecuteRemoteShellCommand(runSpace, hostName, cmd).FirstOrDefault(); + + if (feature != null) { - runSpace = OpenRunspace(); - - Command cmd = new Command("Get-WindowsFeature"); - cmd.Parameters.Add("Name", featureName); - - var feature = ExecuteRemoteShellCommand(runSpace, hostName, cmd).FirstOrDefault(); - - if (feature != null) - { - isInstalled = (bool) GetPSObjectProperty(feature, "Installed"); - } - } - finally - { - CloseRunspace(runSpace); - } + isInstalled = (bool) GetPSObjectProperty(feature, "Installed"); + } return isInstalled; } internal PSObject AddFeature(Runspace runSpace, string hostName, string featureName, bool includeAllSubFeature = true, bool restart = false) - { - PSObject feature; + { + Command cmd = new Command("Add-WindowsFeature"); + cmd.Parameters.Add("Name", featureName); - try + if (includeAllSubFeature) { - Command cmd = new Command("Add-WindowsFeature"); - cmd.Parameters.Add("Name", featureName); - - if (includeAllSubFeature) - { - cmd.Parameters.Add("IncludeAllSubFeature", ""); - } - - if (restart) - { - cmd.Parameters.Add("Restart", ""); - } - - feature = ExecuteRemoteShellCommand(runSpace, hostName, cmd).FirstOrDefault(); + cmd.Parameters.Add("IncludeAllSubFeature", ""); } - finally + + if (restart) { - CloseRunspace(runSpace); + cmd.Parameters.Add("Restart", ""); } - return feature; + return ExecuteRemoteShellCommand(runSpace, hostName, cmd).FirstOrDefault(); } #endregion diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/RemoteDesktopServicesProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/RemoteDesktopServicesProxy.cs index e3637eae..341c32cf 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/RemoteDesktopServicesProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/RemoteDesktopServicesProxy.cs @@ -45,6 +45,8 @@ namespace WebsitePanel.Providers.RemoteDesktopServices { private System.Threading.SendOrPostCallback RemoveSessionHostServersFromCollectionOperationCompleted; + private System.Threading.SendOrPostCallback SetRDServerNewConnectionAllowedOperationCompleted; + private System.Threading.SendOrPostCallback GetAvailableRemoteApplicationsOperationCompleted; private System.Threading.SendOrPostCallback GetCollectionRemoteApplicationsOperationCompleted; @@ -90,6 +92,9 @@ namespace WebsitePanel.Providers.RemoteDesktopServices { /// public event RemoveSessionHostServersFromCollectionCompletedEventHandler RemoveSessionHostServersFromCollectionCompleted; + /// + public event SetRDServerNewConnectionAllowedCompletedEventHandler SetRDServerNewConnectionAllowedCompleted; + /// public event GetAvailableRemoteApplicationsCompletedEventHandler GetAvailableRemoteApplicationsCompleted; @@ -478,6 +483,49 @@ namespace WebsitePanel.Providers.RemoteDesktopServices { } } + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetRDServerNewConnectionAllowed", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void SetRDServerNewConnectionAllowed(bool newConnectionAllowed, RdsServer server) { + this.Invoke("SetRDServerNewConnectionAllowed", new object[] { + newConnectionAllowed, + server}); + } + + /// + public System.IAsyncResult BeginSetRDServerNewConnectionAllowed(bool newConnectionAllowed, RdsServer server, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("SetRDServerNewConnectionAllowed", new object[] { + newConnectionAllowed, + server}, callback, asyncState); + } + + /// + public void EndSetRDServerNewConnectionAllowed(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void SetRDServerNewConnectionAllowedAsync(bool newConnectionAllowed, RdsServer server) { + this.SetRDServerNewConnectionAllowedAsync(newConnectionAllowed, server, null); + } + + /// + public void SetRDServerNewConnectionAllowedAsync(bool newConnectionAllowed, RdsServer server, object userState) { + if ((this.SetRDServerNewConnectionAllowedOperationCompleted == null)) { + this.SetRDServerNewConnectionAllowedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRDServerNewConnectionAllowedOperationCompleted); + } + this.InvokeAsync("SetRDServerNewConnectionAllowed", new object[] { + newConnectionAllowed, + server}, this.SetRDServerNewConnectionAllowedOperationCompleted, userState); + } + + private void OnSetRDServerNewConnectionAllowedOperationCompleted(object arg) { + if ((this.SetRDServerNewConnectionAllowedCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.SetRDServerNewConnectionAllowedCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetAvailableRemoteApplications", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] @@ -949,6 +997,10 @@ namespace WebsitePanel.Providers.RemoteDesktopServices { [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveSessionHostServersFromCollectionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetRDServerNewConnectionAllowedCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetAvailableRemoteApplicationsCompletedEventHandler(object sender, GetAvailableRemoteApplicationsCompletedEventArgs e); diff --git a/WebsitePanel/Sources/WebsitePanel.Server/RemoteDesktopServices.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/RemoteDesktopServices.asmx.cs index 0bb0fb26..91d8d444 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/RemoteDesktopServices.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/RemoteDesktopServices.asmx.cs @@ -191,6 +191,22 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] + public void SetRDServerNewConnectionAllowed(bool newConnectionAllowed, RdsServer server) + { + try + { + Log.WriteStart("'{0}' SetRDServerNewConnectionAllowed", ProviderSettings.ProviderName); + RDSProvider.SetRDServerNewConnectionAllowed(newConnectionAllowed, server); + Log.WriteEnd("'{0}' SetRDServerNewConnectionAllowed", ProviderSettings.ProviderName); + } + catch (Exception ex) + { + Log.WriteError(String.Format("'{0}' SetRDServerNewConnectionAllowed", ProviderSettings.ProviderName), ex); + throw; + } + } + [WebMethod, SoapHeader("settings")] public List GetAvailableRemoteApplications(string collectionName) {