diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index 636f427d..60c539a0 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -2419,3 +2419,191 @@ INSERT [dbo].[Providers] ([ProviderId], [GroupId], [ProviderName], [DisplayName] VALUES(1501, 45, N'RemoteDesktopServices2012', N'Remote Desktop Services Windows 2012', N'WebsitePanel.Providers.RemoteDesktopServices.Windows2012,WebsitePanel.Providers.RemoteDesktopServices.Windows2012', N'RDS', 1) END GO + +-- Added phone numbers in the hosted organization. + +IF NOT EXISTS(select 1 from sys.columns COLS INNER JOIN sys.objects OBJS ON OBJS.object_id=COLS.object_id and OBJS.type='U' AND OBJS.name='PackageIPAddresses' AND COLS.name='OrgID') +BEGIN +ALTER TABLE [dbo].[PackageIPAddresses] ADD + [OrgID] [int] NULL +END +GO + +ALTER PROCEDURE [dbo].[AllocatePackageIPAddresses] +( + @PackageID int, + @OrgID int, + @xml ntext +) +AS +BEGIN + + SET NOCOUNT ON; + + DECLARE @idoc int + --Create an internal representation of the XML document. + EXEC sp_xml_preparedocument @idoc OUTPUT, @xml + + -- delete + DELETE FROM PackageIPAddresses + FROM PackageIPAddresses AS PIP + INNER JOIN OPENXML(@idoc, '/items/item', 1) WITH + ( + AddressID int '@id' + ) as PV ON PIP.AddressID = PV.AddressID + + + -- insert + INSERT INTO dbo.PackageIPAddresses + ( + PackageID, + OrgID, + AddressID + ) + SELECT + @PackageID, + @OrgID, + AddressID + + FROM OPENXML(@idoc, '/items/item', 1) WITH + ( + AddressID int '@id' + ) as PV + + -- remove document + exec sp_xml_removedocument @idoc + +END +GO + +ALTER PROCEDURE [dbo].[GetPackageIPAddresses] +( + @PackageID int, + @OrgID int, + @FilterColumn nvarchar(50) = '', + @FilterValue nvarchar(50) = '', + @SortColumn nvarchar(50), + @StartRow int, + @MaximumRows int, + @PoolID int = 0, + @Recursive bit = 0 +) +AS +BEGIN + + +-- start +DECLARE @condition nvarchar(700) +SET @condition = ' +((@Recursive = 0 AND PA.PackageID = @PackageID) +OR (@Recursive = 1 AND dbo.CheckPackageParent(@PackageID, PA.PackageID) = 1)) +AND (@PoolID = 0 OR @PoolID <> 0 AND IP.PoolID = @PoolID) +AND (@OrgID = 0 OR @OrgID <> 0 AND PA.OrgID = @OrgID) +' + +IF @FilterColumn <> '' AND @FilterColumn IS NOT NULL +AND @FilterValue <> '' AND @FilterValue IS NOT NULL +SET @condition = @condition + ' AND ' + @FilterColumn + ' LIKE ''' + @FilterValue + '''' + +IF @SortColumn IS NULL OR @SortColumn = '' +SET @SortColumn = 'IP.ExternalIP ASC' + +DECLARE @sql nvarchar(3500) + +set @sql = ' +SELECT COUNT(PA.PackageAddressID) +FROM dbo.PackageIPAddresses PA +INNER JOIN dbo.IPAddresses AS IP ON PA.AddressID = IP.AddressID +INNER JOIN dbo.Packages P ON PA.PackageID = P.PackageID +INNER JOIN dbo.Users U ON U.UserID = P.UserID +LEFT JOIN ServiceItems SI ON PA.ItemId = SI.ItemID +WHERE ' + @condition + ' + +DECLARE @Addresses AS TABLE +( + PackageAddressID int +); + +WITH TempItems AS ( + SELECT ROW_NUMBER() OVER (ORDER BY ' + @SortColumn + ') as Row, + PA.PackageAddressID + FROM dbo.PackageIPAddresses PA + INNER JOIN dbo.IPAddresses AS IP ON PA.AddressID = IP.AddressID + INNER JOIN dbo.Packages P ON PA.PackageID = P.PackageID + INNER JOIN dbo.Users U ON U.UserID = P.UserID + LEFT JOIN ServiceItems SI ON PA.ItemId = SI.ItemID + WHERE ' + @condition + ' +) + +INSERT INTO @Addresses +SELECT PackageAddressID FROM TempItems +WHERE TempItems.Row BETWEEN @StartRow + 1 and @StartRow + @MaximumRows + +SELECT + PA.PackageAddressID, + PA.AddressID, + IP.ExternalIP, + IP.InternalIP, + IP.SubnetMask, + IP.DefaultGateway, + PA.ItemID, + SI.ItemName, + PA.PackageID, + P.PackageName, + P.UserID, + U.UserName, + PA.IsPrimary +FROM @Addresses AS TA +INNER JOIN dbo.PackageIPAddresses AS PA ON TA.PackageAddressID = PA.PackageAddressID +INNER JOIN dbo.IPAddresses AS IP ON PA.AddressID = IP.AddressID +INNER JOIN dbo.Packages P ON PA.PackageID = P.PackageID +INNER JOIN dbo.Users U ON U.UserID = P.UserID +LEFT JOIN ServiceItems SI ON PA.ItemId = SI.ItemID +' + +print @sql + +exec sp_executesql @sql, N'@PackageID int, @OrgID int, @StartRow int, @MaximumRows int, @Recursive bit, @PoolID int', +@PackageID, @OrgID, @StartRow, @MaximumRows, @Recursive, @PoolID + +END +GO + + + + + +ALTER PROCEDURE [dbo].[GetPackageUnassignedIPAddresses] +( + @ActorID int, + @PackageID int, + @OrgID int, + @PoolID int = 0 +) +AS +BEGIN + SELECT + PIP.PackageAddressID, + IP.AddressID, + IP.ExternalIP, + IP.InternalIP, + IP.ServerID, + IP.PoolID, + PIP.IsPrimary, + IP.SubnetMask, + IP.DefaultGateway + FROM PackageIPAddresses AS PIP + INNER JOIN IPAddresses AS IP ON PIP.AddressID = IP.AddressID + WHERE + PIP.ItemID IS NULL + AND PIP.PackageID = @PackageID + AND (@PoolID = 0 OR @PoolID <> 0 AND IP.PoolID = @PoolID) + AND (@OrgID = 0 OR @OrgID <> 0 AND PIP.OrgID = @OrgID) + AND dbo.CheckActorPackageRights(@ActorID, PIP.PackageID) = 1 + ORDER BY IP.DefaultGateway, IP.ExternalIP +END +GO + +-- CRM + +UPDATE Providers SET EditorControl = 'CRM2011' Where ProviderID = 1201; diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs index ca41633f..ad3de18c 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs @@ -1,32 +1,3 @@ -// Copyright (c) 2012, 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. @@ -40,21 +11,20 @@ // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // +using System.Xml.Serialization; +using System.Web.Services; +using System.ComponentModel; +using System.Web.Services.Protocols; +using System; +using System.Diagnostics; +using System.Data; +using WebsitePanel.Providers; +using WebsitePanel.Providers.Common; +using WebsitePanel.Server; +using WebsitePanel.Providers.DNS; +using WebsitePanel.Providers.ResultObjects; + namespace WebsitePanel.EnterpriseServer { - using System.Xml.Serialization; - using System.Web.Services; - using System.ComponentModel; - using System.Web.Services.Protocols; - using System; - using System.Diagnostics; - using System.Data; - using WebsitePanel.Providers; - using WebsitePanel.Providers.Common; - using WebsitePanel.Server; - using WebsitePanel.Providers.DNS; - using WebsitePanel.Providers.ResultObjects; - - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] @@ -63,6 +33,110 @@ namespace WebsitePanel.EnterpriseServer { [System.Web.Services.WebServiceBindingAttribute(Name="esServersSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")] public partial class esServers : Microsoft.Web.Services3.WebServicesClientProtocol { + private System.Threading.SendOrPostCallback GetDnsRecordsByServerOperationCompleted; + + private System.Threading.SendOrPostCallback GetDnsRecordsByPackageOperationCompleted; + + private System.Threading.SendOrPostCallback GetDnsRecordsByGroupOperationCompleted; + + private System.Threading.SendOrPostCallback GetDnsRecordOperationCompleted; + + private System.Threading.SendOrPostCallback AddDnsRecordOperationCompleted; + + private System.Threading.SendOrPostCallback UpdateDnsRecordOperationCompleted; + + private System.Threading.SendOrPostCallback DeleteDnsRecordOperationCompleted; + + private System.Threading.SendOrPostCallback GetDomainsOperationCompleted; + + private System.Threading.SendOrPostCallback GetDomainsByDomainIdOperationCompleted; + + private System.Threading.SendOrPostCallback GetMyDomainsOperationCompleted; + + private System.Threading.SendOrPostCallback GetResellerDomainsOperationCompleted; + + private System.Threading.SendOrPostCallback GetDomainsPagedOperationCompleted; + + private System.Threading.SendOrPostCallback GetDomainOperationCompleted; + + private System.Threading.SendOrPostCallback AddDomainOperationCompleted; + + private System.Threading.SendOrPostCallback AddDomainWithProvisioningOperationCompleted; + + private System.Threading.SendOrPostCallback UpdateDomainOperationCompleted; + + private System.Threading.SendOrPostCallback DeleteDomainOperationCompleted; + + private System.Threading.SendOrPostCallback DetachDomainOperationCompleted; + + private System.Threading.SendOrPostCallback EnableDomainDnsOperationCompleted; + + private System.Threading.SendOrPostCallback DisableDomainDnsOperationCompleted; + + private System.Threading.SendOrPostCallback CreateDomainInstantAliasOperationCompleted; + + private System.Threading.SendOrPostCallback DeleteDomainInstantAliasOperationCompleted; + + private System.Threading.SendOrPostCallback GetDnsZoneRecordsOperationCompleted; + + private System.Threading.SendOrPostCallback GetRawDnsZoneRecordsOperationCompleted; + + private System.Threading.SendOrPostCallback AddDnsZoneRecordOperationCompleted; + + private System.Threading.SendOrPostCallback UpdateDnsZoneRecordOperationCompleted; + + private System.Threading.SendOrPostCallback DeleteDnsZoneRecordOperationCompleted; + + private System.Threading.SendOrPostCallback GetTerminalServicesSessionsOperationCompleted; + + private System.Threading.SendOrPostCallback CloseTerminalServicesSessionOperationCompleted; + + private System.Threading.SendOrPostCallback GetWindowsProcessesOperationCompleted; + + private System.Threading.SendOrPostCallback TerminateWindowsProcessOperationCompleted; + + private System.Threading.SendOrPostCallback CheckLoadUserProfileOperationCompleted; + + private System.Threading.SendOrPostCallback EnableLoadUserProfileOperationCompleted; + + private System.Threading.SendOrPostCallback InitWPIFeedsOperationCompleted; + + private System.Threading.SendOrPostCallback GetWPITabsOperationCompleted; + + private System.Threading.SendOrPostCallback GetWPIKeywordsOperationCompleted; + + private System.Threading.SendOrPostCallback GetWPIProductsOperationCompleted; + + private System.Threading.SendOrPostCallback GetWPIProductsFilteredOperationCompleted; + + private System.Threading.SendOrPostCallback GetWPIProductByIdOperationCompleted; + + private System.Threading.SendOrPostCallback GetWPIProductsWithDependenciesOperationCompleted; + + private System.Threading.SendOrPostCallback InstallWPIProductsOperationCompleted; + + private System.Threading.SendOrPostCallback CancelInstallWPIProductsOperationCompleted; + + private System.Threading.SendOrPostCallback GetWPIStatusOperationCompleted; + + private System.Threading.SendOrPostCallback WpiGetLogFileDirectoryOperationCompleted; + + private System.Threading.SendOrPostCallback WpiGetLogsInDirectoryOperationCompleted; + + private System.Threading.SendOrPostCallback GetWindowsServicesOperationCompleted; + + private System.Threading.SendOrPostCallback ChangeWindowsServiceStatusOperationCompleted; + + private System.Threading.SendOrPostCallback GetLogNamesOperationCompleted; + + private System.Threading.SendOrPostCallback GetLogEntriesOperationCompleted; + + private System.Threading.SendOrPostCallback GetLogEntriesPagedOperationCompleted; + + private System.Threading.SendOrPostCallback ClearLogOperationCompleted; + + private System.Threading.SendOrPostCallback RebootSystemOperationCompleted; + private System.Threading.SendOrPostCallback GetAllServersOperationCompleted; private System.Threading.SendOrPostCallback GetRawAllServersOperationCompleted; @@ -191,115 +265,167 @@ namespace WebsitePanel.EnterpriseServer { private System.Threading.SendOrPostCallback GetDnsRecordsByServiceOperationCompleted; - private System.Threading.SendOrPostCallback GetDnsRecordsByServerOperationCompleted; - - private System.Threading.SendOrPostCallback GetDnsRecordsByPackageOperationCompleted; - - private System.Threading.SendOrPostCallback GetDnsRecordsByGroupOperationCompleted; - - private System.Threading.SendOrPostCallback GetDnsRecordOperationCompleted; - - private System.Threading.SendOrPostCallback AddDnsRecordOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateDnsRecordOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteDnsRecordOperationCompleted; - - private System.Threading.SendOrPostCallback GetDomainsOperationCompleted; - - private System.Threading.SendOrPostCallback GetDomainsByDomainIdOperationCompleted; - - private System.Threading.SendOrPostCallback GetMyDomainsOperationCompleted; - - private System.Threading.SendOrPostCallback GetResellerDomainsOperationCompleted; - - private System.Threading.SendOrPostCallback GetDomainsPagedOperationCompleted; - - private System.Threading.SendOrPostCallback GetDomainOperationCompleted; - - private System.Threading.SendOrPostCallback AddDomainOperationCompleted; - - private System.Threading.SendOrPostCallback AddDomainWithProvisioningOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateDomainOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteDomainOperationCompleted; - - private System.Threading.SendOrPostCallback DetachDomainOperationCompleted; - - private System.Threading.SendOrPostCallback EnableDomainDnsOperationCompleted; - - private System.Threading.SendOrPostCallback DisableDomainDnsOperationCompleted; - - private System.Threading.SendOrPostCallback CreateDomainInstantAliasOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteDomainInstantAliasOperationCompleted; - - private System.Threading.SendOrPostCallback GetDnsZoneRecordsOperationCompleted; - - private System.Threading.SendOrPostCallback GetRawDnsZoneRecordsOperationCompleted; - - private System.Threading.SendOrPostCallback AddDnsZoneRecordOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateDnsZoneRecordOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteDnsZoneRecordOperationCompleted; - - private System.Threading.SendOrPostCallback GetTerminalServicesSessionsOperationCompleted; - - private System.Threading.SendOrPostCallback CloseTerminalServicesSessionOperationCompleted; - - private System.Threading.SendOrPostCallback GetWindowsProcessesOperationCompleted; - - private System.Threading.SendOrPostCallback TerminateWindowsProcessOperationCompleted; - - private System.Threading.SendOrPostCallback CheckLoadUserProfileOperationCompleted; - - private System.Threading.SendOrPostCallback EnableLoadUserProfileOperationCompleted; - - private System.Threading.SendOrPostCallback InitWPIFeedsOperationCompleted; - - private System.Threading.SendOrPostCallback GetWPITabsOperationCompleted; - - private System.Threading.SendOrPostCallback GetWPIKeywordsOperationCompleted; - - private System.Threading.SendOrPostCallback GetWPIProductsOperationCompleted; - - private System.Threading.SendOrPostCallback GetWPIProductsFilteredOperationCompleted; - - private System.Threading.SendOrPostCallback GetWPIProductByIdOperationCompleted; - - private System.Threading.SendOrPostCallback GetWPIProductsWithDependenciesOperationCompleted; - - private System.Threading.SendOrPostCallback InstallWPIProductsOperationCompleted; - - private System.Threading.SendOrPostCallback CancelInstallWPIProductsOperationCompleted; - - private System.Threading.SendOrPostCallback GetWPIStatusOperationCompleted; - - private System.Threading.SendOrPostCallback WpiGetLogFileDirectoryOperationCompleted; - - private System.Threading.SendOrPostCallback WpiGetLogsInDirectoryOperationCompleted; - - private System.Threading.SendOrPostCallback GetWindowsServicesOperationCompleted; - - private System.Threading.SendOrPostCallback ChangeWindowsServiceStatusOperationCompleted; - - private System.Threading.SendOrPostCallback GetLogNamesOperationCompleted; - - private System.Threading.SendOrPostCallback GetLogEntriesOperationCompleted; - - private System.Threading.SendOrPostCallback GetLogEntriesPagedOperationCompleted; - - private System.Threading.SendOrPostCallback ClearLogOperationCompleted; - - private System.Threading.SendOrPostCallback RebootSystemOperationCompleted; - /// public esServers() { this.Url = "http://localhost:9002/esServers.asmx"; } + /// + public event GetDnsRecordsByServerCompletedEventHandler GetDnsRecordsByServerCompleted; + + /// + public event GetDnsRecordsByPackageCompletedEventHandler GetDnsRecordsByPackageCompleted; + + /// + public event GetDnsRecordsByGroupCompletedEventHandler GetDnsRecordsByGroupCompleted; + + /// + public event GetDnsRecordCompletedEventHandler GetDnsRecordCompleted; + + /// + public event AddDnsRecordCompletedEventHandler AddDnsRecordCompleted; + + /// + public event UpdateDnsRecordCompletedEventHandler UpdateDnsRecordCompleted; + + /// + public event DeleteDnsRecordCompletedEventHandler DeleteDnsRecordCompleted; + + /// + public event GetDomainsCompletedEventHandler GetDomainsCompleted; + + /// + public event GetDomainsByDomainIdCompletedEventHandler GetDomainsByDomainIdCompleted; + + /// + public event GetMyDomainsCompletedEventHandler GetMyDomainsCompleted; + + /// + public event GetResellerDomainsCompletedEventHandler GetResellerDomainsCompleted; + + /// + public event GetDomainsPagedCompletedEventHandler GetDomainsPagedCompleted; + + /// + public event GetDomainCompletedEventHandler GetDomainCompleted; + + /// + public event AddDomainCompletedEventHandler AddDomainCompleted; + + /// + public event AddDomainWithProvisioningCompletedEventHandler AddDomainWithProvisioningCompleted; + + /// + public event UpdateDomainCompletedEventHandler UpdateDomainCompleted; + + /// + public event DeleteDomainCompletedEventHandler DeleteDomainCompleted; + + /// + public event DetachDomainCompletedEventHandler DetachDomainCompleted; + + /// + public event EnableDomainDnsCompletedEventHandler EnableDomainDnsCompleted; + + /// + public event DisableDomainDnsCompletedEventHandler DisableDomainDnsCompleted; + + /// + public event CreateDomainInstantAliasCompletedEventHandler CreateDomainInstantAliasCompleted; + + /// + public event DeleteDomainInstantAliasCompletedEventHandler DeleteDomainInstantAliasCompleted; + + /// + public event GetDnsZoneRecordsCompletedEventHandler GetDnsZoneRecordsCompleted; + + /// + public event GetRawDnsZoneRecordsCompletedEventHandler GetRawDnsZoneRecordsCompleted; + + /// + public event AddDnsZoneRecordCompletedEventHandler AddDnsZoneRecordCompleted; + + /// + public event UpdateDnsZoneRecordCompletedEventHandler UpdateDnsZoneRecordCompleted; + + /// + public event DeleteDnsZoneRecordCompletedEventHandler DeleteDnsZoneRecordCompleted; + + /// + public event GetTerminalServicesSessionsCompletedEventHandler GetTerminalServicesSessionsCompleted; + + /// + public event CloseTerminalServicesSessionCompletedEventHandler CloseTerminalServicesSessionCompleted; + + /// + public event GetWindowsProcessesCompletedEventHandler GetWindowsProcessesCompleted; + + /// + public event TerminateWindowsProcessCompletedEventHandler TerminateWindowsProcessCompleted; + + /// + public event CheckLoadUserProfileCompletedEventHandler CheckLoadUserProfileCompleted; + + /// + public event EnableLoadUserProfileCompletedEventHandler EnableLoadUserProfileCompleted; + + /// + public event InitWPIFeedsCompletedEventHandler InitWPIFeedsCompleted; + + /// + public event GetWPITabsCompletedEventHandler GetWPITabsCompleted; + + /// + public event GetWPIKeywordsCompletedEventHandler GetWPIKeywordsCompleted; + + /// + public event GetWPIProductsCompletedEventHandler GetWPIProductsCompleted; + + /// + public event GetWPIProductsFilteredCompletedEventHandler GetWPIProductsFilteredCompleted; + + /// + public event GetWPIProductByIdCompletedEventHandler GetWPIProductByIdCompleted; + + /// + public event GetWPIProductsWithDependenciesCompletedEventHandler GetWPIProductsWithDependenciesCompleted; + + /// + public event InstallWPIProductsCompletedEventHandler InstallWPIProductsCompleted; + + /// + public event CancelInstallWPIProductsCompletedEventHandler CancelInstallWPIProductsCompleted; + + /// + public event GetWPIStatusCompletedEventHandler GetWPIStatusCompleted; + + /// + public event WpiGetLogFileDirectoryCompletedEventHandler WpiGetLogFileDirectoryCompleted; + + /// + public event WpiGetLogsInDirectoryCompletedEventHandler WpiGetLogsInDirectoryCompleted; + + /// + public event GetWindowsServicesCompletedEventHandler GetWindowsServicesCompleted; + + /// + public event ChangeWindowsServiceStatusCompletedEventHandler ChangeWindowsServiceStatusCompleted; + + /// + public event GetLogNamesCompletedEventHandler GetLogNamesCompleted; + + /// + public event GetLogEntriesCompletedEventHandler GetLogEntriesCompleted; + + /// + public event GetLogEntriesPagedCompletedEventHandler GetLogEntriesPagedCompleted; + + /// + public event ClearLogCompletedEventHandler ClearLogCompleted; + + /// + public event RebootSystemCompletedEventHandler RebootSystemCompleted; + /// public event GetAllServersCompletedEventHandler GetAllServersCompleted; @@ -492,2945 +618,6 @@ namespace WebsitePanel.EnterpriseServer { /// public event GetDnsRecordsByServiceCompletedEventHandler GetDnsRecordsByServiceCompleted; - /// - public event GetDnsRecordsByServerCompletedEventHandler GetDnsRecordsByServerCompleted; - - /// - public event GetDnsRecordsByPackageCompletedEventHandler GetDnsRecordsByPackageCompleted; - - /// - public event GetDnsRecordsByGroupCompletedEventHandler GetDnsRecordsByGroupCompleted; - - /// - public event GetDnsRecordCompletedEventHandler GetDnsRecordCompleted; - - /// - public event AddDnsRecordCompletedEventHandler AddDnsRecordCompleted; - - /// - public event UpdateDnsRecordCompletedEventHandler UpdateDnsRecordCompleted; - - /// - public event DeleteDnsRecordCompletedEventHandler DeleteDnsRecordCompleted; - - /// - public event GetDomainsCompletedEventHandler GetDomainsCompleted; - - /// - public event GetDomainsByDomainIdCompletedEventHandler GetDomainsByDomainIdCompleted; - - /// - public event GetMyDomainsCompletedEventHandler GetMyDomainsCompleted; - - /// - public event GetResellerDomainsCompletedEventHandler GetResellerDomainsCompleted; - - /// - public event GetDomainsPagedCompletedEventHandler GetDomainsPagedCompleted; - - /// - public event GetDomainCompletedEventHandler GetDomainCompleted; - - /// - public event AddDomainCompletedEventHandler AddDomainCompleted; - - /// - public event AddDomainWithProvisioningCompletedEventHandler AddDomainWithProvisioningCompleted; - - /// - public event UpdateDomainCompletedEventHandler UpdateDomainCompleted; - - /// - public event DeleteDomainCompletedEventHandler DeleteDomainCompleted; - - /// - public event DetachDomainCompletedEventHandler DetachDomainCompleted; - - /// - public event EnableDomainDnsCompletedEventHandler EnableDomainDnsCompleted; - - /// - public event DisableDomainDnsCompletedEventHandler DisableDomainDnsCompleted; - - /// - public event CreateDomainInstantAliasCompletedEventHandler CreateDomainInstantAliasCompleted; - - /// - public event DeleteDomainInstantAliasCompletedEventHandler DeleteDomainInstantAliasCompleted; - - /// - public event GetDnsZoneRecordsCompletedEventHandler GetDnsZoneRecordsCompleted; - - /// - public event GetRawDnsZoneRecordsCompletedEventHandler GetRawDnsZoneRecordsCompleted; - - /// - public event AddDnsZoneRecordCompletedEventHandler AddDnsZoneRecordCompleted; - - /// - public event UpdateDnsZoneRecordCompletedEventHandler UpdateDnsZoneRecordCompleted; - - /// - public event DeleteDnsZoneRecordCompletedEventHandler DeleteDnsZoneRecordCompleted; - - /// - public event GetTerminalServicesSessionsCompletedEventHandler GetTerminalServicesSessionsCompleted; - - /// - public event CloseTerminalServicesSessionCompletedEventHandler CloseTerminalServicesSessionCompleted; - - /// - public event GetWindowsProcessesCompletedEventHandler GetWindowsProcessesCompleted; - - /// - public event TerminateWindowsProcessCompletedEventHandler TerminateWindowsProcessCompleted; - - /// - public event CheckLoadUserProfileCompletedEventHandler CheckLoadUserProfileCompleted; - - /// - public event EnableLoadUserProfileCompletedEventHandler EnableLoadUserProfileCompleted; - - /// - public event InitWPIFeedsCompletedEventHandler InitWPIFeedsCompleted; - - /// - public event GetWPITabsCompletedEventHandler GetWPITabsCompleted; - - /// - public event GetWPIKeywordsCompletedEventHandler GetWPIKeywordsCompleted; - - /// - public event GetWPIProductsCompletedEventHandler GetWPIProductsCompleted; - - /// - public event GetWPIProductsFilteredCompletedEventHandler GetWPIProductsFilteredCompleted; - - /// - public event GetWPIProductByIdCompletedEventHandler GetWPIProductByIdCompleted; - - /// - public event GetWPIProductsWithDependenciesCompletedEventHandler GetWPIProductsWithDependenciesCompleted; - - /// - public event InstallWPIProductsCompletedEventHandler InstallWPIProductsCompleted; - - /// - public event CancelInstallWPIProductsCompletedEventHandler CancelInstallWPIProductsCompleted; - - /// - public event GetWPIStatusCompletedEventHandler GetWPIStatusCompleted; - - /// - public event WpiGetLogFileDirectoryCompletedEventHandler WpiGetLogFileDirectoryCompleted; - - /// - public event WpiGetLogsInDirectoryCompletedEventHandler WpiGetLogsInDirectoryCompleted; - - /// - public event GetWindowsServicesCompletedEventHandler GetWindowsServicesCompleted; - - /// - public event ChangeWindowsServiceStatusCompletedEventHandler ChangeWindowsServiceStatusCompleted; - - /// - public event GetLogNamesCompletedEventHandler GetLogNamesCompleted; - - /// - public event GetLogEntriesCompletedEventHandler GetLogEntriesCompleted; - - /// - public event GetLogEntriesPagedCompletedEventHandler GetLogEntriesPagedCompleted; - - /// - public event ClearLogCompletedEventHandler ClearLogCompleted; - - /// - public event RebootSystemCompletedEventHandler RebootSystemCompleted; - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAllServers", 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 ServerInfo[] GetAllServers() { - object[] results = this.Invoke("GetAllServers", new object[0]); - return ((ServerInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetAllServers(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetAllServers", new object[0], callback, asyncState); - } - - /// - public ServerInfo[] EndGetAllServers(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServerInfo[])(results[0])); - } - - /// - public void GetAllServersAsync() { - this.GetAllServersAsync(null); - } - - /// - public void GetAllServersAsync(object userState) { - if ((this.GetAllServersOperationCompleted == null)) { - this.GetAllServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllServersOperationCompleted); - } - this.InvokeAsync("GetAllServers", new object[0], this.GetAllServersOperationCompleted, userState); - } - - private void OnGetAllServersOperationCompleted(object arg) { - if ((this.GetAllServersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetAllServersCompleted(this, new GetAllServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawAllServers", 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 System.Data.DataSet GetRawAllServers() { - object[] results = this.Invoke("GetRawAllServers", new object[0]); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawAllServers(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawAllServers", new object[0], callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawAllServers(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawAllServersAsync() { - this.GetRawAllServersAsync(null); - } - - /// - public void GetRawAllServersAsync(object userState) { - if ((this.GetRawAllServersOperationCompleted == null)) { - this.GetRawAllServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawAllServersOperationCompleted); - } - this.InvokeAsync("GetRawAllServers", new object[0], this.GetRawAllServersOperationCompleted, userState); - } - - private void OnGetRawAllServersOperationCompleted(object arg) { - if ((this.GetRawAllServersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawAllServersCompleted(this, new GetRawAllServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServers", 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 ServerInfo[] GetServers() { - object[] results = this.Invoke("GetServers", new object[0]); - return ((ServerInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetServers(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServers", new object[0], callback, asyncState); - } - - /// - public ServerInfo[] EndGetServers(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServerInfo[])(results[0])); - } - - /// - public void GetServersAsync() { - this.GetServersAsync(null); - } - - /// - public void GetServersAsync(object userState) { - if ((this.GetServersOperationCompleted == null)) { - this.GetServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServersOperationCompleted); - } - this.InvokeAsync("GetServers", new object[0], this.GetServersOperationCompleted, userState); - } - - private void OnGetServersOperationCompleted(object arg) { - if ((this.GetServersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServersCompleted(this, new GetServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServers", 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 System.Data.DataSet GetRawServers() { - object[] results = this.Invoke("GetRawServers", new object[0]); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawServers(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawServers", new object[0], callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawServers(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawServersAsync() { - this.GetRawServersAsync(null); - } - - /// - public void GetRawServersAsync(object userState) { - if ((this.GetRawServersOperationCompleted == null)) { - this.GetRawServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServersOperationCompleted); - } - this.InvokeAsync("GetRawServers", new object[0], this.GetRawServersOperationCompleted, userState); - } - - private void OnGetRawServersOperationCompleted(object arg) { - if ((this.GetRawServersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawServersCompleted(this, new GetRawServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerShortDetails", 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 ServerInfo GetServerShortDetails(int serverId) { - object[] results = this.Invoke("GetServerShortDetails", new object[] { - serverId}); - return ((ServerInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetServerShortDetails(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServerShortDetails", new object[] { - serverId}, callback, asyncState); - } - - /// - public ServerInfo EndGetServerShortDetails(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServerInfo)(results[0])); - } - - /// - public void GetServerShortDetailsAsync(int serverId) { - this.GetServerShortDetailsAsync(serverId, null); - } - - /// - public void GetServerShortDetailsAsync(int serverId, object userState) { - if ((this.GetServerShortDetailsOperationCompleted == null)) { - this.GetServerShortDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerShortDetailsOperationCompleted); - } - this.InvokeAsync("GetServerShortDetails", new object[] { - serverId}, this.GetServerShortDetailsOperationCompleted, userState); - } - - private void OnGetServerShortDetailsOperationCompleted(object arg) { - if ((this.GetServerShortDetailsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServerShortDetailsCompleted(this, new GetServerShortDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerById", 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 ServerInfo GetServerById(int serverId) { - object[] results = this.Invoke("GetServerById", new object[] { - serverId}); - return ((ServerInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetServerById(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServerById", new object[] { - serverId}, callback, asyncState); - } - - /// - public ServerInfo EndGetServerById(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServerInfo)(results[0])); - } - - /// - public void GetServerByIdAsync(int serverId) { - this.GetServerByIdAsync(serverId, null); - } - - /// - public void GetServerByIdAsync(int serverId, object userState) { - if ((this.GetServerByIdOperationCompleted == null)) { - this.GetServerByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerByIdOperationCompleted); - } - this.InvokeAsync("GetServerById", new object[] { - serverId}, this.GetServerByIdOperationCompleted, userState); - } - - private void OnGetServerByIdOperationCompleted(object arg) { - if ((this.GetServerByIdCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServerByIdCompleted(this, new GetServerByIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerByName", 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 ServerInfo GetServerByName(string serverName) { - object[] results = this.Invoke("GetServerByName", new object[] { - serverName}); - return ((ServerInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetServerByName(string serverName, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServerByName", new object[] { - serverName}, callback, asyncState); - } - - /// - public ServerInfo EndGetServerByName(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServerInfo)(results[0])); - } - - /// - public void GetServerByNameAsync(string serverName) { - this.GetServerByNameAsync(serverName, null); - } - - /// - public void GetServerByNameAsync(string serverName, object userState) { - if ((this.GetServerByNameOperationCompleted == null)) { - this.GetServerByNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerByNameOperationCompleted); - } - this.InvokeAsync("GetServerByName", new object[] { - serverName}, this.GetServerByNameOperationCompleted, userState); - } - - private void OnGetServerByNameOperationCompleted(object arg) { - if ((this.GetServerByNameCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServerByNameCompleted(this, new GetServerByNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckServerAvailable", 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 CheckServerAvailable(string serverUrl, string password) { - object[] results = this.Invoke("CheckServerAvailable", new object[] { - serverUrl, - password}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginCheckServerAvailable(string serverUrl, string password, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("CheckServerAvailable", new object[] { - serverUrl, - password}, callback, asyncState); - } - - /// - public int EndCheckServerAvailable(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void CheckServerAvailableAsync(string serverUrl, string password) { - this.CheckServerAvailableAsync(serverUrl, password, null); - } - - /// - public void CheckServerAvailableAsync(string serverUrl, string password, object userState) { - if ((this.CheckServerAvailableOperationCompleted == null)) { - this.CheckServerAvailableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckServerAvailableOperationCompleted); - } - this.InvokeAsync("CheckServerAvailable", new object[] { - serverUrl, - password}, this.CheckServerAvailableOperationCompleted, userState); - } - - private void OnCheckServerAvailableOperationCompleted(object arg) { - if ((this.CheckServerAvailableCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.CheckServerAvailableCompleted(this, new CheckServerAvailableCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddServer", 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 AddServer(ServerInfo server, bool autoDiscovery) { - object[] results = this.Invoke("AddServer", new object[] { - server, - autoDiscovery}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginAddServer(ServerInfo server, bool autoDiscovery, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddServer", new object[] { - server, - autoDiscovery}, callback, asyncState); - } - - /// - public int EndAddServer(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void AddServerAsync(ServerInfo server, bool autoDiscovery) { - this.AddServerAsync(server, autoDiscovery, null); - } - - /// - public void AddServerAsync(ServerInfo server, bool autoDiscovery, object userState) { - if ((this.AddServerOperationCompleted == null)) { - this.AddServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddServerOperationCompleted); - } - this.InvokeAsync("AddServer", new object[] { - server, - autoDiscovery}, this.AddServerOperationCompleted, userState); - } - - private void OnAddServerOperationCompleted(object arg) { - if ((this.AddServerCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddServerCompleted(this, new AddServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServer", 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 UpdateServer(ServerInfo server) { - object[] results = this.Invoke("UpdateServer", new object[] { - server}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateServer(ServerInfo server, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateServer", new object[] { - server}, callback, asyncState); - } - - /// - public int EndUpdateServer(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void UpdateServerAsync(ServerInfo server) { - this.UpdateServerAsync(server, null); - } - - /// - public void UpdateServerAsync(ServerInfo server, object userState) { - if ((this.UpdateServerOperationCompleted == null)) { - this.UpdateServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServerOperationCompleted); - } - this.InvokeAsync("UpdateServer", new object[] { - server}, this.UpdateServerOperationCompleted, userState); - } - - private void OnUpdateServerOperationCompleted(object arg) { - if ((this.UpdateServerCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateServerCompleted(this, new UpdateServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServerConnectionPassword", 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 UpdateServerConnectionPassword(int serverId, string password) { - object[] results = this.Invoke("UpdateServerConnectionPassword", new object[] { - serverId, - password}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateServerConnectionPassword(int serverId, string password, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateServerConnectionPassword", new object[] { - serverId, - password}, callback, asyncState); - } - - /// - public int EndUpdateServerConnectionPassword(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void UpdateServerConnectionPasswordAsync(int serverId, string password) { - this.UpdateServerConnectionPasswordAsync(serverId, password, null); - } - - /// - public void UpdateServerConnectionPasswordAsync(int serverId, string password, object userState) { - if ((this.UpdateServerConnectionPasswordOperationCompleted == null)) { - this.UpdateServerConnectionPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServerConnectionPasswordOperationCompleted); - } - this.InvokeAsync("UpdateServerConnectionPassword", new object[] { - serverId, - password}, this.UpdateServerConnectionPasswordOperationCompleted, userState); - } - - private void OnUpdateServerConnectionPasswordOperationCompleted(object arg) { - if ((this.UpdateServerConnectionPasswordCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateServerConnectionPasswordCompleted(this, new UpdateServerConnectionPasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServerADPassword", 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 UpdateServerADPassword(int serverId, string adPassword) { - object[] results = this.Invoke("UpdateServerADPassword", new object[] { - serverId, - adPassword}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateServerADPassword(int serverId, string adPassword, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateServerADPassword", new object[] { - serverId, - adPassword}, callback, asyncState); - } - - /// - public int EndUpdateServerADPassword(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void UpdateServerADPasswordAsync(int serverId, string adPassword) { - this.UpdateServerADPasswordAsync(serverId, adPassword, null); - } - - /// - public void UpdateServerADPasswordAsync(int serverId, string adPassword, object userState) { - if ((this.UpdateServerADPasswordOperationCompleted == null)) { - this.UpdateServerADPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServerADPasswordOperationCompleted); - } - this.InvokeAsync("UpdateServerADPassword", new object[] { - serverId, - adPassword}, this.UpdateServerADPasswordOperationCompleted, userState); - } - - private void OnUpdateServerADPasswordOperationCompleted(object arg) { - if ((this.UpdateServerADPasswordCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateServerADPasswordCompleted(this, new UpdateServerADPasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteServer", 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 DeleteServer(int serverId) { - object[] results = this.Invoke("DeleteServer", new object[] { - serverId}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteServer(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteServer", new object[] { - serverId}, callback, asyncState); - } - - /// - public int EndDeleteServer(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void DeleteServerAsync(int serverId) { - this.DeleteServerAsync(serverId, null); - } - - /// - public void DeleteServerAsync(int serverId, object userState) { - if ((this.DeleteServerOperationCompleted == null)) { - this.DeleteServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteServerOperationCompleted); - } - this.InvokeAsync("DeleteServer", new object[] { - serverId}, this.DeleteServerOperationCompleted, userState); - } - - private void OnDeleteServerOperationCompleted(object arg) { - if ((this.DeleteServerCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteServerCompleted(this, new DeleteServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetVirtualServers", 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 System.Data.DataSet GetVirtualServers() { - object[] results = this.Invoke("GetVirtualServers", new object[0]); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetVirtualServers(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetVirtualServers", new object[0], callback, asyncState); - } - - /// - public System.Data.DataSet EndGetVirtualServers(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetVirtualServersAsync() { - this.GetVirtualServersAsync(null); - } - - /// - public void GetVirtualServersAsync(object userState) { - if ((this.GetVirtualServersOperationCompleted == null)) { - this.GetVirtualServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetVirtualServersOperationCompleted); - } - this.InvokeAsync("GetVirtualServers", new object[0], this.GetVirtualServersOperationCompleted, userState); - } - - private void OnGetVirtualServersOperationCompleted(object arg) { - if ((this.GetVirtualServersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetVirtualServersCompleted(this, new GetVirtualServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAvailableVirtualServices", 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 System.Data.DataSet GetAvailableVirtualServices(int serverId) { - object[] results = this.Invoke("GetAvailableVirtualServices", new object[] { - serverId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetAvailableVirtualServices(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetAvailableVirtualServices", new object[] { - serverId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetAvailableVirtualServices(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetAvailableVirtualServicesAsync(int serverId) { - this.GetAvailableVirtualServicesAsync(serverId, null); - } - - /// - public void GetAvailableVirtualServicesAsync(int serverId, object userState) { - if ((this.GetAvailableVirtualServicesOperationCompleted == null)) { - this.GetAvailableVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAvailableVirtualServicesOperationCompleted); - } - this.InvokeAsync("GetAvailableVirtualServices", new object[] { - serverId}, this.GetAvailableVirtualServicesOperationCompleted, userState); - } - - private void OnGetAvailableVirtualServicesOperationCompleted(object arg) { - if ((this.GetAvailableVirtualServicesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetAvailableVirtualServicesCompleted(this, new GetAvailableVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetVirtualServices", 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 System.Data.DataSet GetVirtualServices(int serverId) { - object[] results = this.Invoke("GetVirtualServices", new object[] { - serverId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetVirtualServices(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetVirtualServices", new object[] { - serverId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetVirtualServices(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetVirtualServicesAsync(int serverId) { - this.GetVirtualServicesAsync(serverId, null); - } - - /// - public void GetVirtualServicesAsync(int serverId, object userState) { - if ((this.GetVirtualServicesOperationCompleted == null)) { - this.GetVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetVirtualServicesOperationCompleted); - } - this.InvokeAsync("GetVirtualServices", new object[] { - serverId}, this.GetVirtualServicesOperationCompleted, userState); - } - - private void OnGetVirtualServicesOperationCompleted(object arg) { - if ((this.GetVirtualServicesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetVirtualServicesCompleted(this, new GetVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddVirtualServices", 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 AddVirtualServices(int serverId, int[] ids) { - object[] results = this.Invoke("AddVirtualServices", new object[] { - serverId, - ids}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginAddVirtualServices(int serverId, int[] ids, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddVirtualServices", new object[] { - serverId, - ids}, callback, asyncState); - } - - /// - public int EndAddVirtualServices(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void AddVirtualServicesAsync(int serverId, int[] ids) { - this.AddVirtualServicesAsync(serverId, ids, null); - } - - /// - public void AddVirtualServicesAsync(int serverId, int[] ids, object userState) { - if ((this.AddVirtualServicesOperationCompleted == null)) { - this.AddVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddVirtualServicesOperationCompleted); - } - this.InvokeAsync("AddVirtualServices", new object[] { - serverId, - ids}, this.AddVirtualServicesOperationCompleted, userState); - } - - private void OnAddVirtualServicesOperationCompleted(object arg) { - if ((this.AddVirtualServicesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddVirtualServicesCompleted(this, new AddVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteVirtualServices", 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 DeleteVirtualServices(int serverId, int[] ids) { - object[] results = this.Invoke("DeleteVirtualServices", new object[] { - serverId, - ids}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteVirtualServices(int serverId, int[] ids, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteVirtualServices", new object[] { - serverId, - ids}, callback, asyncState); - } - - /// - public int EndDeleteVirtualServices(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void DeleteVirtualServicesAsync(int serverId, int[] ids) { - this.DeleteVirtualServicesAsync(serverId, ids, null); - } - - /// - public void DeleteVirtualServicesAsync(int serverId, int[] ids, object userState) { - if ((this.DeleteVirtualServicesOperationCompleted == null)) { - this.DeleteVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteVirtualServicesOperationCompleted); - } - this.InvokeAsync("DeleteVirtualServices", new object[] { - serverId, - ids}, this.DeleteVirtualServicesOperationCompleted, userState); - } - - private void OnDeleteVirtualServicesOperationCompleted(object arg) { - if ((this.DeleteVirtualServicesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteVirtualServicesCompleted(this, new DeleteVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateVirtualGroups", 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 UpdateVirtualGroups(int serverId, VirtualGroupInfo[] groups) { - object[] results = this.Invoke("UpdateVirtualGroups", new object[] { - serverId, - groups}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateVirtualGroups(int serverId, VirtualGroupInfo[] groups, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateVirtualGroups", new object[] { - serverId, - groups}, callback, asyncState); - } - - /// - public int EndUpdateVirtualGroups(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void UpdateVirtualGroupsAsync(int serverId, VirtualGroupInfo[] groups) { - this.UpdateVirtualGroupsAsync(serverId, groups, null); - } - - /// - public void UpdateVirtualGroupsAsync(int serverId, VirtualGroupInfo[] groups, object userState) { - if ((this.UpdateVirtualGroupsOperationCompleted == null)) { - this.UpdateVirtualGroupsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateVirtualGroupsOperationCompleted); - } - this.InvokeAsync("UpdateVirtualGroups", new object[] { - serverId, - groups}, this.UpdateVirtualGroupsOperationCompleted, userState); - } - - private void OnUpdateVirtualGroupsOperationCompleted(object arg) { - if ((this.UpdateVirtualGroupsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateVirtualGroupsCompleted(this, new UpdateVirtualGroupsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServicesByServerId", 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 System.Data.DataSet GetRawServicesByServerId(int serverId) { - object[] results = this.Invoke("GetRawServicesByServerId", new object[] { - serverId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawServicesByServerId(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawServicesByServerId", new object[] { - serverId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawServicesByServerId(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawServicesByServerIdAsync(int serverId) { - this.GetRawServicesByServerIdAsync(serverId, null); - } - - /// - public void GetRawServicesByServerIdAsync(int serverId, object userState) { - if ((this.GetRawServicesByServerIdOperationCompleted == null)) { - this.GetRawServicesByServerIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServicesByServerIdOperationCompleted); - } - this.InvokeAsync("GetRawServicesByServerId", new object[] { - serverId}, this.GetRawServicesByServerIdOperationCompleted, userState); - } - - private void OnGetRawServicesByServerIdOperationCompleted(object arg) { - if ((this.GetRawServicesByServerIdCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawServicesByServerIdCompleted(this, new GetRawServicesByServerIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServicesByServerId", 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 ServiceInfo[] GetServicesByServerId(int serverId) { - object[] results = this.Invoke("GetServicesByServerId", new object[] { - serverId}); - return ((ServiceInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetServicesByServerId(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServicesByServerId", new object[] { - serverId}, callback, asyncState); - } - - /// - public ServiceInfo[] EndGetServicesByServerId(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServiceInfo[])(results[0])); - } - - /// - public void GetServicesByServerIdAsync(int serverId) { - this.GetServicesByServerIdAsync(serverId, null); - } - - /// - public void GetServicesByServerIdAsync(int serverId, object userState) { - if ((this.GetServicesByServerIdOperationCompleted == null)) { - this.GetServicesByServerIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServicesByServerIdOperationCompleted); - } - this.InvokeAsync("GetServicesByServerId", new object[] { - serverId}, this.GetServicesByServerIdOperationCompleted, userState); - } - - private void OnGetServicesByServerIdOperationCompleted(object arg) { - if ((this.GetServicesByServerIdCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServicesByServerIdCompleted(this, new GetServicesByServerIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServicesByServerIdGroupName", 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 ServiceInfo[] GetServicesByServerIdGroupName(int serverId, string groupName) { - object[] results = this.Invoke("GetServicesByServerIdGroupName", new object[] { - serverId, - groupName}); - return ((ServiceInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetServicesByServerIdGroupName(int serverId, string groupName, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServicesByServerIdGroupName", new object[] { - serverId, - groupName}, callback, asyncState); - } - - /// - public ServiceInfo[] EndGetServicesByServerIdGroupName(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServiceInfo[])(results[0])); - } - - /// - public void GetServicesByServerIdGroupNameAsync(int serverId, string groupName) { - this.GetServicesByServerIdGroupNameAsync(serverId, groupName, null); - } - - /// - public void GetServicesByServerIdGroupNameAsync(int serverId, string groupName, object userState) { - if ((this.GetServicesByServerIdGroupNameOperationCompleted == null)) { - this.GetServicesByServerIdGroupNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServicesByServerIdGroupNameOperationCompleted); - } - this.InvokeAsync("GetServicesByServerIdGroupName", new object[] { - serverId, - groupName}, this.GetServicesByServerIdGroupNameOperationCompleted, userState); - } - - private void OnGetServicesByServerIdGroupNameOperationCompleted(object arg) { - if ((this.GetServicesByServerIdGroupNameCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServicesByServerIdGroupNameCompleted(this, new GetServicesByServerIdGroupNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServicesByGroupId", 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 System.Data.DataSet GetRawServicesByGroupId(int groupId) { - object[] results = this.Invoke("GetRawServicesByGroupId", new object[] { - groupId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawServicesByGroupId(int groupId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawServicesByGroupId", new object[] { - groupId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawServicesByGroupId(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawServicesByGroupIdAsync(int groupId) { - this.GetRawServicesByGroupIdAsync(groupId, null); - } - - /// - public void GetRawServicesByGroupIdAsync(int groupId, object userState) { - if ((this.GetRawServicesByGroupIdOperationCompleted == null)) { - this.GetRawServicesByGroupIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServicesByGroupIdOperationCompleted); - } - this.InvokeAsync("GetRawServicesByGroupId", new object[] { - groupId}, this.GetRawServicesByGroupIdOperationCompleted, userState); - } - - private void OnGetRawServicesByGroupIdOperationCompleted(object arg) { - if ((this.GetRawServicesByGroupIdCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawServicesByGroupIdCompleted(this, new GetRawServicesByGroupIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServicesByGroupName", 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 System.Data.DataSet GetRawServicesByGroupName(string groupName) { - object[] results = this.Invoke("GetRawServicesByGroupName", new object[] { - groupName}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawServicesByGroupName(string groupName, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawServicesByGroupName", new object[] { - groupName}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawServicesByGroupName(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawServicesByGroupNameAsync(string groupName) { - this.GetRawServicesByGroupNameAsync(groupName, null); - } - - /// - public void GetRawServicesByGroupNameAsync(string groupName, object userState) { - if ((this.GetRawServicesByGroupNameOperationCompleted == null)) { - this.GetRawServicesByGroupNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServicesByGroupNameOperationCompleted); - } - this.InvokeAsync("GetRawServicesByGroupName", new object[] { - groupName}, this.GetRawServicesByGroupNameOperationCompleted, userState); - } - - private void OnGetRawServicesByGroupNameOperationCompleted(object arg) { - if ((this.GetRawServicesByGroupNameCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawServicesByGroupNameCompleted(this, new GetRawServicesByGroupNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServiceInfo", 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 ServiceInfo GetServiceInfo(int serviceId) { - object[] results = this.Invoke("GetServiceInfo", new object[] { - serviceId}); - return ((ServiceInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetServiceInfo(int serviceId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServiceInfo", new object[] { - serviceId}, callback, asyncState); - } - - /// - public ServiceInfo EndGetServiceInfo(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ServiceInfo)(results[0])); - } - - /// - public void GetServiceInfoAsync(int serviceId) { - this.GetServiceInfoAsync(serviceId, null); - } - - /// - public void GetServiceInfoAsync(int serviceId, object userState) { - if ((this.GetServiceInfoOperationCompleted == null)) { - this.GetServiceInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServiceInfoOperationCompleted); - } - this.InvokeAsync("GetServiceInfo", new object[] { - serviceId}, this.GetServiceInfoOperationCompleted, userState); - } - - private void OnGetServiceInfoOperationCompleted(object arg) { - if ((this.GetServiceInfoCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServiceInfoCompleted(this, new GetServiceInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddService", 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 AddService(ServiceInfo service) { - object[] results = this.Invoke("AddService", new object[] { - service}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginAddService(ServiceInfo service, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddService", new object[] { - service}, callback, asyncState); - } - - /// - public int EndAddService(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void AddServiceAsync(ServiceInfo service) { - this.AddServiceAsync(service, null); - } - - /// - public void AddServiceAsync(ServiceInfo service, object userState) { - if ((this.AddServiceOperationCompleted == null)) { - this.AddServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddServiceOperationCompleted); - } - this.InvokeAsync("AddService", new object[] { - service}, this.AddServiceOperationCompleted, userState); - } - - private void OnAddServiceOperationCompleted(object arg) { - if ((this.AddServiceCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddServiceCompleted(this, new AddServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateService", 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 UpdateService(ServiceInfo service) { - object[] results = this.Invoke("UpdateService", new object[] { - service}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateService(ServiceInfo service, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateService", new object[] { - service}, callback, asyncState); - } - - /// - public int EndUpdateService(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void UpdateServiceAsync(ServiceInfo service) { - this.UpdateServiceAsync(service, null); - } - - /// - public void UpdateServiceAsync(ServiceInfo service, object userState) { - if ((this.UpdateServiceOperationCompleted == null)) { - this.UpdateServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServiceOperationCompleted); - } - this.InvokeAsync("UpdateService", new object[] { - service}, this.UpdateServiceOperationCompleted, userState); - } - - private void OnUpdateServiceOperationCompleted(object arg) { - if ((this.UpdateServiceCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateServiceCompleted(this, new UpdateServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteService", 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 DeleteService(int serviceId) { - object[] results = this.Invoke("DeleteService", new object[] { - serviceId}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteService(int serviceId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteService", new object[] { - serviceId}, callback, asyncState); - } - - /// - public int EndDeleteService(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void DeleteServiceAsync(int serviceId) { - this.DeleteServiceAsync(serviceId, null); - } - - /// - public void DeleteServiceAsync(int serviceId, object userState) { - if ((this.DeleteServiceOperationCompleted == null)) { - this.DeleteServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteServiceOperationCompleted); - } - this.InvokeAsync("DeleteService", new object[] { - serviceId}, this.DeleteServiceOperationCompleted, userState); - } - - private void OnDeleteServiceOperationCompleted(object arg) { - if ((this.DeleteServiceCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteServiceCompleted(this, new DeleteServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServiceSettings", 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 string[] GetServiceSettings(int serviceId) { - object[] results = this.Invoke("GetServiceSettings", new object[] { - serviceId}); - return ((string[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetServiceSettings(int serviceId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServiceSettings", new object[] { - serviceId}, callback, asyncState); - } - - /// - public string[] EndGetServiceSettings(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((string[])(results[0])); - } - - /// - public void GetServiceSettingsAsync(int serviceId) { - this.GetServiceSettingsAsync(serviceId, null); - } - - /// - public void GetServiceSettingsAsync(int serviceId, object userState) { - if ((this.GetServiceSettingsOperationCompleted == null)) { - this.GetServiceSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServiceSettingsOperationCompleted); - } - this.InvokeAsync("GetServiceSettings", new object[] { - serviceId}, this.GetServiceSettingsOperationCompleted, userState); - } - - private void OnGetServiceSettingsOperationCompleted(object arg) { - if ((this.GetServiceSettingsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServiceSettingsCompleted(this, new GetServiceSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServiceSettings", 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 UpdateServiceSettings(int serviceId, string[] settings) { - object[] results = this.Invoke("UpdateServiceSettings", new object[] { - serviceId, - settings}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateServiceSettings(int serviceId, string[] settings, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateServiceSettings", new object[] { - serviceId, - settings}, callback, asyncState); - } - - /// - public int EndUpdateServiceSettings(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void UpdateServiceSettingsAsync(int serviceId, string[] settings) { - this.UpdateServiceSettingsAsync(serviceId, settings, null); - } - - /// - public void UpdateServiceSettingsAsync(int serviceId, string[] settings, object userState) { - if ((this.UpdateServiceSettingsOperationCompleted == null)) { - this.UpdateServiceSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServiceSettingsOperationCompleted); - } - this.InvokeAsync("UpdateServiceSettings", new object[] { - serviceId, - settings}, this.UpdateServiceSettingsOperationCompleted, userState); - } - - private void OnUpdateServiceSettingsOperationCompleted(object arg) { - if ((this.UpdateServiceSettingsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateServiceSettingsCompleted(this, new UpdateServiceSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/InstallService", 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 string[] InstallService(int serviceId) { - object[] results = this.Invoke("InstallService", new object[] { - serviceId}); - return ((string[])(results[0])); - } - - /// - public System.IAsyncResult BeginInstallService(int serviceId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("InstallService", new object[] { - serviceId}, callback, asyncState); - } - - /// - public string[] EndInstallService(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((string[])(results[0])); - } - - /// - public void InstallServiceAsync(int serviceId) { - this.InstallServiceAsync(serviceId, null); - } - - /// - public void InstallServiceAsync(int serviceId, object userState) { - if ((this.InstallServiceOperationCompleted == null)) { - this.InstallServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInstallServiceOperationCompleted); - } - this.InvokeAsync("InstallService", new object[] { - serviceId}, this.InstallServiceOperationCompleted, userState); - } - - private void OnInstallServiceOperationCompleted(object arg) { - if ((this.InstallServiceCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.InstallServiceCompleted(this, new InstallServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProviderServiceQuota", 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 QuotaInfo GetProviderServiceQuota(int providerId) { - object[] results = this.Invoke("GetProviderServiceQuota", new object[] { - providerId}); - return ((QuotaInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetProviderServiceQuota(int providerId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetProviderServiceQuota", new object[] { - providerId}, callback, asyncState); - } - - /// - public QuotaInfo EndGetProviderServiceQuota(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((QuotaInfo)(results[0])); - } - - /// - public void GetProviderServiceQuotaAsync(int providerId) { - this.GetProviderServiceQuotaAsync(providerId, null); - } - - /// - public void GetProviderServiceQuotaAsync(int providerId, object userState) { - if ((this.GetProviderServiceQuotaOperationCompleted == null)) { - this.GetProviderServiceQuotaOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProviderServiceQuotaOperationCompleted); - } - this.InvokeAsync("GetProviderServiceQuota", new object[] { - providerId}, this.GetProviderServiceQuotaOperationCompleted, userState); - } - - private void OnGetProviderServiceQuotaOperationCompleted(object arg) { - if ((this.GetProviderServiceQuotaCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetProviderServiceQuotaCompleted(this, new GetProviderServiceQuotaCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetInstalledProviders", 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 ProviderInfo[] GetInstalledProviders(int groupId) { - object[] results = this.Invoke("GetInstalledProviders", new object[] { - groupId}); - return ((ProviderInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetInstalledProviders(int groupId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetInstalledProviders", new object[] { - groupId}, callback, asyncState); - } - - /// - public ProviderInfo[] EndGetInstalledProviders(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ProviderInfo[])(results[0])); - } - - /// - public void GetInstalledProvidersAsync(int groupId) { - this.GetInstalledProvidersAsync(groupId, null); - } - - /// - public void GetInstalledProvidersAsync(int groupId, object userState) { - if ((this.GetInstalledProvidersOperationCompleted == null)) { - this.GetInstalledProvidersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetInstalledProvidersOperationCompleted); - } - this.InvokeAsync("GetInstalledProviders", new object[] { - groupId}, this.GetInstalledProvidersOperationCompleted, userState); - } - - private void OnGetInstalledProvidersOperationCompleted(object arg) { - if ((this.GetInstalledProvidersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetInstalledProvidersCompleted(this, new GetInstalledProvidersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetResourceGroups", 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 ResourceGroupInfo[] GetResourceGroups() { - object[] results = this.Invoke("GetResourceGroups", new object[0]); - return ((ResourceGroupInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetResourceGroups(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetResourceGroups", new object[0], callback, asyncState); - } - - /// - public ResourceGroupInfo[] EndGetResourceGroups(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResourceGroupInfo[])(results[0])); - } - - /// - public void GetResourceGroupsAsync() { - this.GetResourceGroupsAsync(null); - } - - /// - public void GetResourceGroupsAsync(object userState) { - if ((this.GetResourceGroupsOperationCompleted == null)) { - this.GetResourceGroupsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetResourceGroupsOperationCompleted); - } - this.InvokeAsync("GetResourceGroups", new object[0], this.GetResourceGroupsOperationCompleted, userState); - } - - private void OnGetResourceGroupsOperationCompleted(object arg) { - if ((this.GetResourceGroupsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetResourceGroupsCompleted(this, new GetResourceGroupsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetResourceGroup", 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 ResourceGroupInfo GetResourceGroup(int groupId) { - object[] results = this.Invoke("GetResourceGroup", new object[] { - groupId}); - return ((ResourceGroupInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetResourceGroup(int groupId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetResourceGroup", new object[] { - groupId}, callback, asyncState); - } - - /// - public ResourceGroupInfo EndGetResourceGroup(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResourceGroupInfo)(results[0])); - } - - /// - public void GetResourceGroupAsync(int groupId) { - this.GetResourceGroupAsync(groupId, null); - } - - /// - public void GetResourceGroupAsync(int groupId, object userState) { - if ((this.GetResourceGroupOperationCompleted == null)) { - this.GetResourceGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetResourceGroupOperationCompleted); - } - this.InvokeAsync("GetResourceGroup", new object[] { - groupId}, this.GetResourceGroupOperationCompleted, userState); - } - - private void OnGetResourceGroupOperationCompleted(object arg) { - if ((this.GetResourceGroupCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetResourceGroupCompleted(this, new GetResourceGroupCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProvider", 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 ProviderInfo GetProvider(int providerId) { - object[] results = this.Invoke("GetProvider", new object[] { - providerId}); - return ((ProviderInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetProvider(int providerId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetProvider", new object[] { - providerId}, callback, asyncState); - } - - /// - public ProviderInfo EndGetProvider(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ProviderInfo)(results[0])); - } - - /// - public void GetProviderAsync(int providerId) { - this.GetProviderAsync(providerId, null); - } - - /// - public void GetProviderAsync(int providerId, object userState) { - if ((this.GetProviderOperationCompleted == null)) { - this.GetProviderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProviderOperationCompleted); - } - this.InvokeAsync("GetProvider", new object[] { - providerId}, this.GetProviderOperationCompleted, userState); - } - - private void OnGetProviderOperationCompleted(object arg) { - if ((this.GetProviderCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetProviderCompleted(this, new GetProviderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProviders", 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 ProviderInfo[] GetProviders() { - object[] results = this.Invoke("GetProviders", new object[0]); - return ((ProviderInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetProviders(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetProviders", new object[0], callback, asyncState); - } - - /// - public ProviderInfo[] EndGetProviders(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ProviderInfo[])(results[0])); - } - - /// - public void GetProvidersAsync() { - this.GetProvidersAsync(null); - } - - /// - public void GetProvidersAsync(object userState) { - if ((this.GetProvidersOperationCompleted == null)) { - this.GetProvidersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProvidersOperationCompleted); - } - this.InvokeAsync("GetProviders", new object[0], this.GetProvidersOperationCompleted, userState); - } - - private void OnGetProvidersOperationCompleted(object arg) { - if ((this.GetProvidersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetProvidersCompleted(this, new GetProvidersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProvidersByGroupId", 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 ProviderInfo[] GetProvidersByGroupId(int groupId) { - object[] results = this.Invoke("GetProvidersByGroupId", new object[] { - groupId}); - return ((ProviderInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetProvidersByGroupId(int groupId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetProvidersByGroupId", new object[] { - groupId}, callback, asyncState); - } - - /// - public ProviderInfo[] EndGetProvidersByGroupId(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ProviderInfo[])(results[0])); - } - - /// - public void GetProvidersByGroupIdAsync(int groupId) { - this.GetProvidersByGroupIdAsync(groupId, null); - } - - /// - public void GetProvidersByGroupIdAsync(int groupId, object userState) { - if ((this.GetProvidersByGroupIdOperationCompleted == null)) { - this.GetProvidersByGroupIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProvidersByGroupIdOperationCompleted); - } - this.InvokeAsync("GetProvidersByGroupId", new object[] { - groupId}, this.GetProvidersByGroupIdOperationCompleted, userState); - } - - private void OnGetProvidersByGroupIdOperationCompleted(object arg) { - if ((this.GetProvidersByGroupIdCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetProvidersByGroupIdCompleted(this, new GetProvidersByGroupIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetPackageServiceProvider", 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 ProviderInfo GetPackageServiceProvider(int packageId, string groupName) { - object[] results = this.Invoke("GetPackageServiceProvider", new object[] { - packageId, - groupName}); - return ((ProviderInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetPackageServiceProvider(int packageId, string groupName, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetPackageServiceProvider", new object[] { - packageId, - groupName}, callback, asyncState); - } - - /// - public ProviderInfo EndGetPackageServiceProvider(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ProviderInfo)(results[0])); - } - - /// - public void GetPackageServiceProviderAsync(int packageId, string groupName) { - this.GetPackageServiceProviderAsync(packageId, groupName, null); - } - - /// - public void GetPackageServiceProviderAsync(int packageId, string groupName, object userState) { - if ((this.GetPackageServiceProviderOperationCompleted == null)) { - this.GetPackageServiceProviderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPackageServiceProviderOperationCompleted); - } - this.InvokeAsync("GetPackageServiceProvider", new object[] { - packageId, - groupName}, this.GetPackageServiceProviderOperationCompleted, userState); - } - - private void OnGetPackageServiceProviderOperationCompleted(object arg) { - if ((this.GetPackageServiceProviderCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetPackageServiceProviderCompleted(this, new GetPackageServiceProviderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/IsInstalled", 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 BoolResult IsInstalled(int serverId, int providerId) { - object[] results = this.Invoke("IsInstalled", new object[] { - serverId, - providerId}); - return ((BoolResult)(results[0])); - } - - /// - public System.IAsyncResult BeginIsInstalled(int serverId, int providerId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("IsInstalled", new object[] { - serverId, - providerId}, callback, asyncState); - } - - /// - public BoolResult EndIsInstalled(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((BoolResult)(results[0])); - } - - /// - public void IsInstalledAsync(int serverId, int providerId) { - this.IsInstalledAsync(serverId, providerId, null); - } - - /// - public void IsInstalledAsync(int serverId, int providerId, object userState) { - if ((this.IsInstalledOperationCompleted == null)) { - this.IsInstalledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsInstalledOperationCompleted); - } - this.InvokeAsync("IsInstalled", new object[] { - serverId, - providerId}, this.IsInstalledOperationCompleted, userState); - } - - private void OnIsInstalledOperationCompleted(object arg) { - if ((this.IsInstalledCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.IsInstalledCompleted(this, new IsInstalledCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerVersion", 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 string GetServerVersion(int serverId) { - object[] results = this.Invoke("GetServerVersion", new object[] { - serverId}); - return ((string)(results[0])); - } - - /// - public System.IAsyncResult BeginGetServerVersion(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetServerVersion", new object[] { - serverId}, callback, asyncState); - } - - /// - public string EndGetServerVersion(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((string)(results[0])); - } - - /// - public void GetServerVersionAsync(int serverId) { - this.GetServerVersionAsync(serverId, null); - } - - /// - public void GetServerVersionAsync(int serverId, object userState) { - if ((this.GetServerVersionOperationCompleted == null)) { - this.GetServerVersionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerVersionOperationCompleted); - } - this.InvokeAsync("GetServerVersion", new object[] { - serverId}, this.GetServerVersionOperationCompleted, userState); - } - - private void OnGetServerVersionOperationCompleted(object arg) { - if ((this.GetServerVersionCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetServerVersionCompleted(this, new GetServerVersionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetIPAddresses", 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 IPAddressInfo[] GetIPAddresses(IPAddressPool pool, int serverId) { - object[] results = this.Invoke("GetIPAddresses", new object[] { - pool, - serverId}); - return ((IPAddressInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetIPAddresses(IPAddressPool pool, int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetIPAddresses", new object[] { - pool, - serverId}, callback, asyncState); - } - - /// - public IPAddressInfo[] EndGetIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((IPAddressInfo[])(results[0])); - } - - /// - public void GetIPAddressesAsync(IPAddressPool pool, int serverId) { - this.GetIPAddressesAsync(pool, serverId, null); - } - - /// - public void GetIPAddressesAsync(IPAddressPool pool, int serverId, object userState) { - if ((this.GetIPAddressesOperationCompleted == null)) { - this.GetIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetIPAddressesOperationCompleted); - } - this.InvokeAsync("GetIPAddresses", new object[] { - pool, - serverId}, this.GetIPAddressesOperationCompleted, userState); - } - - private void OnGetIPAddressesOperationCompleted(object arg) { - if ((this.GetIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetIPAddressesCompleted(this, new GetIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetIPAddressesPaged", 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 IPAddressesPaged GetIPAddressesPaged(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { - object[] results = this.Invoke("GetIPAddressesPaged", new object[] { - pool, - serverId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}); - return ((IPAddressesPaged)(results[0])); - } - - /// - public System.IAsyncResult BeginGetIPAddressesPaged(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetIPAddressesPaged", new object[] { - pool, - serverId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); - } - - /// - public IPAddressesPaged EndGetIPAddressesPaged(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((IPAddressesPaged)(results[0])); - } - - /// - public void GetIPAddressesPagedAsync(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { - this.GetIPAddressesPagedAsync(pool, serverId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null); - } - - /// - public void GetIPAddressesPagedAsync(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { - if ((this.GetIPAddressesPagedOperationCompleted == null)) { - this.GetIPAddressesPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetIPAddressesPagedOperationCompleted); - } - this.InvokeAsync("GetIPAddressesPaged", new object[] { - pool, - serverId, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetIPAddressesPagedOperationCompleted, userState); - } - - private void OnGetIPAddressesPagedOperationCompleted(object arg) { - if ((this.GetIPAddressesPagedCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetIPAddressesPagedCompleted(this, new GetIPAddressesPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetIPAddress", 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 IPAddressInfo GetIPAddress(int addressId) { - object[] results = this.Invoke("GetIPAddress", new object[] { - addressId}); - return ((IPAddressInfo)(results[0])); - } - - /// - public System.IAsyncResult BeginGetIPAddress(int addressId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetIPAddress", new object[] { - addressId}, callback, asyncState); - } - - /// - public IPAddressInfo EndGetIPAddress(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((IPAddressInfo)(results[0])); - } - - /// - public void GetIPAddressAsync(int addressId) { - this.GetIPAddressAsync(addressId, null); - } - - /// - public void GetIPAddressAsync(int addressId, object userState) { - if ((this.GetIPAddressOperationCompleted == null)) { - this.GetIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetIPAddressOperationCompleted); - } - this.InvokeAsync("GetIPAddress", new object[] { - addressId}, this.GetIPAddressOperationCompleted, userState); - } - - private void OnGetIPAddressOperationCompleted(object arg) { - if ((this.GetIPAddressCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetIPAddressCompleted(this, new GetIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddIPAddress", 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 IntResult AddIPAddress(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { - object[] results = this.Invoke("AddIPAddress", new object[] { - pool, - serverId, - externalIP, - internalIP, - subnetMask, - defaultGateway, - comments}); - return ((IntResult)(results[0])); - } - - /// - public System.IAsyncResult BeginAddIPAddress(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddIPAddress", new object[] { - pool, - serverId, - externalIP, - internalIP, - subnetMask, - defaultGateway, - comments}, callback, asyncState); - } - - /// - public IntResult EndAddIPAddress(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((IntResult)(results[0])); - } - - /// - public void AddIPAddressAsync(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { - this.AddIPAddressAsync(pool, serverId, externalIP, internalIP, subnetMask, defaultGateway, comments, null); - } - - /// - public void AddIPAddressAsync(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, object userState) { - if ((this.AddIPAddressOperationCompleted == null)) { - this.AddIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddIPAddressOperationCompleted); - } - this.InvokeAsync("AddIPAddress", new object[] { - pool, - serverId, - externalIP, - internalIP, - subnetMask, - defaultGateway, - comments}, this.AddIPAddressOperationCompleted, userState); - } - - private void OnAddIPAddressOperationCompleted(object arg) { - if ((this.AddIPAddressCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddIPAddressCompleted(this, new AddIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddIPAddressesRange", 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 AddIPAddressesRange(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments) { - object[] results = this.Invoke("AddIPAddressesRange", new object[] { - pool, - serverId, - externalIP, - endIP, - internalIP, - subnetMask, - defaultGateway, - comments}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginAddIPAddressesRange(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddIPAddressesRange", new object[] { - pool, - serverId, - externalIP, - endIP, - internalIP, - subnetMask, - defaultGateway, - comments}, callback, asyncState); - } - - /// - public ResultObject EndAddIPAddressesRange(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void AddIPAddressesRangeAsync(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments) { - this.AddIPAddressesRangeAsync(pool, serverId, externalIP, endIP, internalIP, subnetMask, defaultGateway, comments, null); - } - - /// - public void AddIPAddressesRangeAsync(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments, object userState) { - if ((this.AddIPAddressesRangeOperationCompleted == null)) { - this.AddIPAddressesRangeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddIPAddressesRangeOperationCompleted); - } - this.InvokeAsync("AddIPAddressesRange", new object[] { - pool, - serverId, - externalIP, - endIP, - internalIP, - subnetMask, - defaultGateway, - comments}, this.AddIPAddressesRangeOperationCompleted, userState); - } - - private void OnAddIPAddressesRangeOperationCompleted(object arg) { - if ((this.AddIPAddressesRangeCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddIPAddressesRangeCompleted(this, new AddIPAddressesRangeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateIPAddress", 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 UpdateIPAddress(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { - object[] results = this.Invoke("UpdateIPAddress", new object[] { - addressId, - pool, - serverId, - externalIP, - internalIP, - subnetMask, - defaultGateway, - comments}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateIPAddress(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateIPAddress", new object[] { - addressId, - pool, - serverId, - externalIP, - internalIP, - subnetMask, - defaultGateway, - comments}, callback, asyncState); - } - - /// - public ResultObject EndUpdateIPAddress(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void UpdateIPAddressAsync(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { - this.UpdateIPAddressAsync(addressId, pool, serverId, externalIP, internalIP, subnetMask, defaultGateway, comments, null); - } - - /// - public void UpdateIPAddressAsync(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, object userState) { - if ((this.UpdateIPAddressOperationCompleted == null)) { - this.UpdateIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateIPAddressOperationCompleted); - } - this.InvokeAsync("UpdateIPAddress", new object[] { - addressId, - pool, - serverId, - externalIP, - internalIP, - subnetMask, - defaultGateway, - comments}, this.UpdateIPAddressOperationCompleted, userState); - } - - private void OnUpdateIPAddressOperationCompleted(object arg) { - if ((this.UpdateIPAddressCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateIPAddressCompleted(this, new UpdateIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateIPAddresses", 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 UpdateIPAddresses(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments) { - object[] results = this.Invoke("UpdateIPAddresses", new object[] { - addresses, - pool, - serverId, - subnetMask, - defaultGateway, - comments}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateIPAddresses(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateIPAddresses", new object[] { - addresses, - pool, - serverId, - subnetMask, - defaultGateway, - comments}, callback, asyncState); - } - - /// - public ResultObject EndUpdateIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void UpdateIPAddressesAsync(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments) { - this.UpdateIPAddressesAsync(addresses, pool, serverId, subnetMask, defaultGateway, comments, null); - } - - /// - public void UpdateIPAddressesAsync(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments, object userState) { - if ((this.UpdateIPAddressesOperationCompleted == null)) { - this.UpdateIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateIPAddressesOperationCompleted); - } - this.InvokeAsync("UpdateIPAddresses", new object[] { - addresses, - pool, - serverId, - subnetMask, - defaultGateway, - comments}, this.UpdateIPAddressesOperationCompleted, userState); - } - - private void OnUpdateIPAddressesOperationCompleted(object arg) { - if ((this.UpdateIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateIPAddressesCompleted(this, new UpdateIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteIPAddress", 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 DeleteIPAddress(int addressId) { - object[] results = this.Invoke("DeleteIPAddress", new object[] { - addressId}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteIPAddress(int addressId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteIPAddress", new object[] { - addressId}, callback, asyncState); - } - - /// - public ResultObject EndDeleteIPAddress(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void DeleteIPAddressAsync(int addressId) { - this.DeleteIPAddressAsync(addressId, null); - } - - /// - public void DeleteIPAddressAsync(int addressId, object userState) { - if ((this.DeleteIPAddressOperationCompleted == null)) { - this.DeleteIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteIPAddressOperationCompleted); - } - this.InvokeAsync("DeleteIPAddress", new object[] { - addressId}, this.DeleteIPAddressOperationCompleted, userState); - } - - private void OnDeleteIPAddressOperationCompleted(object arg) { - if ((this.DeleteIPAddressCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteIPAddressCompleted(this, new DeleteIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteIPAddresses", 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 DeleteIPAddresses(int[] addresses) { - object[] results = this.Invoke("DeleteIPAddresses", new object[] { - addresses}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteIPAddresses(int[] addresses, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteIPAddresses", new object[] { - addresses}, callback, asyncState); - } - - /// - public ResultObject EndDeleteIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void DeleteIPAddressesAsync(int[] addresses) { - this.DeleteIPAddressesAsync(addresses, null); - } - - /// - public void DeleteIPAddressesAsync(int[] addresses, object userState) { - if ((this.DeleteIPAddressesOperationCompleted == null)) { - this.DeleteIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteIPAddressesOperationCompleted); - } - this.InvokeAsync("DeleteIPAddresses", new object[] { - addresses}, this.DeleteIPAddressesOperationCompleted, userState); - } - - private void OnDeleteIPAddressesOperationCompleted(object arg) { - if ((this.DeleteIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteIPAddressesCompleted(this, new DeleteIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetUnallottedIPAddresses", 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 IPAddressInfo[] GetUnallottedIPAddresses(int packageId, string groupName, IPAddressPool pool) { - object[] results = this.Invoke("GetUnallottedIPAddresses", new object[] { - packageId, - groupName, - pool}); - return ((IPAddressInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetUnallottedIPAddresses(int packageId, string groupName, IPAddressPool pool, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetUnallottedIPAddresses", new object[] { - packageId, - groupName, - pool}, callback, asyncState); - } - - /// - public IPAddressInfo[] EndGetUnallottedIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((IPAddressInfo[])(results[0])); - } - - /// - public void GetUnallottedIPAddressesAsync(int packageId, string groupName, IPAddressPool pool) { - this.GetUnallottedIPAddressesAsync(packageId, groupName, pool, null); - } - - /// - public void GetUnallottedIPAddressesAsync(int packageId, string groupName, IPAddressPool pool, object userState) { - if ((this.GetUnallottedIPAddressesOperationCompleted == null)) { - this.GetUnallottedIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUnallottedIPAddressesOperationCompleted); - } - this.InvokeAsync("GetUnallottedIPAddresses", new object[] { - packageId, - groupName, - pool}, this.GetUnallottedIPAddressesOperationCompleted, userState); - } - - private void OnGetUnallottedIPAddressesOperationCompleted(object arg) { - if ((this.GetUnallottedIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetUnallottedIPAddressesCompleted(this, new GetUnallottedIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetPackageIPAddresses", 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 PackageIPAddressesPaged GetPackageIPAddresses(int packageId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) { - object[] results = this.Invoke("GetPackageIPAddresses", new object[] { - packageId, - pool, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows, - recursive}); - return ((PackageIPAddressesPaged)(results[0])); - } - - /// - public System.IAsyncResult BeginGetPackageIPAddresses(int packageId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetPackageIPAddresses", new object[] { - packageId, - pool, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows, - recursive}, callback, asyncState); - } - - /// - public PackageIPAddressesPaged EndGetPackageIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((PackageIPAddressesPaged)(results[0])); - } - - /// - public void GetPackageIPAddressesAsync(int packageId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) { - this.GetPackageIPAddressesAsync(packageId, pool, filterColumn, filterValue, sortColumn, startRow, maximumRows, recursive, null); - } - - /// - public void GetPackageIPAddressesAsync(int packageId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive, object userState) { - if ((this.GetPackageIPAddressesOperationCompleted == null)) { - this.GetPackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPackageIPAddressesOperationCompleted); - } - this.InvokeAsync("GetPackageIPAddresses", new object[] { - packageId, - pool, - filterColumn, - filterValue, - sortColumn, - startRow, - maximumRows, - recursive}, this.GetPackageIPAddressesOperationCompleted, userState); - } - - private void OnGetPackageIPAddressesOperationCompleted(object arg) { - if ((this.GetPackageIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetPackageIPAddressesCompleted(this, new GetPackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetPackageUnassignedIPAddresses", 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 PackageIPAddress[] GetPackageUnassignedIPAddresses(int packageId, IPAddressPool pool) { - object[] results = this.Invoke("GetPackageUnassignedIPAddresses", new object[] { - packageId, - pool}); - return ((PackageIPAddress[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetPackageUnassignedIPAddresses(int packageId, IPAddressPool pool, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetPackageUnassignedIPAddresses", new object[] { - packageId, - pool}, callback, asyncState); - } - - /// - public PackageIPAddress[] EndGetPackageUnassignedIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((PackageIPAddress[])(results[0])); - } - - /// - public void GetPackageUnassignedIPAddressesAsync(int packageId, IPAddressPool pool) { - this.GetPackageUnassignedIPAddressesAsync(packageId, pool, null); - } - - /// - public void GetPackageUnassignedIPAddressesAsync(int packageId, IPAddressPool pool, object userState) { - if ((this.GetPackageUnassignedIPAddressesOperationCompleted == null)) { - this.GetPackageUnassignedIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPackageUnassignedIPAddressesOperationCompleted); - } - this.InvokeAsync("GetPackageUnassignedIPAddresses", new object[] { - packageId, - pool}, this.GetPackageUnassignedIPAddressesOperationCompleted, userState); - } - - private void OnGetPackageUnassignedIPAddressesOperationCompleted(object arg) { - if ((this.GetPackageUnassignedIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetPackageUnassignedIPAddressesCompleted(this, new GetPackageUnassignedIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AllocatePackageIPAddresses", 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 AllocatePackageIPAddresses(int packageId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId) { - object[] results = this.Invoke("AllocatePackageIPAddresses", new object[] { - packageId, - groupName, - pool, - allocateRandom, - addressesNumber, - addressId}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginAllocatePackageIPAddresses(int packageId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AllocatePackageIPAddresses", new object[] { - packageId, - groupName, - pool, - allocateRandom, - addressesNumber, - addressId}, callback, asyncState); - } - - /// - public ResultObject EndAllocatePackageIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void AllocatePackageIPAddressesAsync(int packageId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId) { - this.AllocatePackageIPAddressesAsync(packageId, groupName, pool, allocateRandom, addressesNumber, addressId, null); - } - - /// - public void AllocatePackageIPAddressesAsync(int packageId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId, object userState) { - if ((this.AllocatePackageIPAddressesOperationCompleted == null)) { - this.AllocatePackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAllocatePackageIPAddressesOperationCompleted); - } - this.InvokeAsync("AllocatePackageIPAddresses", new object[] { - packageId, - groupName, - pool, - allocateRandom, - addressesNumber, - addressId}, this.AllocatePackageIPAddressesOperationCompleted, userState); - } - - private void OnAllocatePackageIPAddressesOperationCompleted(object arg) { - if ((this.AllocatePackageIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AllocatePackageIPAddressesCompleted(this, new AllocatePackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AllocateMaximumPackageIPAddresses", 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 AllocateMaximumPackageIPAddresses(int packageId, string groupName, IPAddressPool pool) { - object[] results = this.Invoke("AllocateMaximumPackageIPAddresses", new object[] { - packageId, - groupName, - pool}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginAllocateMaximumPackageIPAddresses(int packageId, string groupName, IPAddressPool pool, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AllocateMaximumPackageIPAddresses", new object[] { - packageId, - groupName, - pool}, callback, asyncState); - } - - /// - public ResultObject EndAllocateMaximumPackageIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void AllocateMaximumPackageIPAddressesAsync(int packageId, string groupName, IPAddressPool pool) { - this.AllocateMaximumPackageIPAddressesAsync(packageId, groupName, pool, null); - } - - /// - public void AllocateMaximumPackageIPAddressesAsync(int packageId, string groupName, IPAddressPool pool, object userState) { - if ((this.AllocateMaximumPackageIPAddressesOperationCompleted == null)) { - this.AllocateMaximumPackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAllocateMaximumPackageIPAddressesOperationCompleted); - } - this.InvokeAsync("AllocateMaximumPackageIPAddresses", new object[] { - packageId, - groupName, - pool}, this.AllocateMaximumPackageIPAddressesOperationCompleted, userState); - } - - private void OnAllocateMaximumPackageIPAddressesOperationCompleted(object arg) { - if ((this.AllocateMaximumPackageIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AllocateMaximumPackageIPAddressesCompleted(this, new AllocateMaximumPackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeallocatePackageIPAddresses", 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 DeallocatePackageIPAddresses(int packageId, int[] addressId) { - object[] results = this.Invoke("DeallocatePackageIPAddresses", new object[] { - packageId, - addressId}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginDeallocatePackageIPAddresses(int packageId, int[] addressId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeallocatePackageIPAddresses", new object[] { - packageId, - addressId}, callback, asyncState); - } - - /// - public ResultObject EndDeallocatePackageIPAddresses(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void DeallocatePackageIPAddressesAsync(int packageId, int[] addressId) { - this.DeallocatePackageIPAddressesAsync(packageId, addressId, null); - } - - /// - public void DeallocatePackageIPAddressesAsync(int packageId, int[] addressId, object userState) { - if ((this.DeallocatePackageIPAddressesOperationCompleted == null)) { - this.DeallocatePackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeallocatePackageIPAddressesOperationCompleted); - } - this.InvokeAsync("DeallocatePackageIPAddresses", new object[] { - packageId, - addressId}, this.DeallocatePackageIPAddressesOperationCompleted, userState); - } - - private void OnDeallocatePackageIPAddressesOperationCompleted(object arg) { - if ((this.DeallocatePackageIPAddressesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeallocatePackageIPAddressesCompleted(this, new DeallocatePackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetClusters", 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 ClusterInfo[] GetClusters() { - object[] results = this.Invoke("GetClusters", new object[0]); - return ((ClusterInfo[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetClusters(System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetClusters", new object[0], callback, asyncState); - } - - /// - public ClusterInfo[] EndGetClusters(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ClusterInfo[])(results[0])); - } - - /// - public void GetClustersAsync() { - this.GetClustersAsync(null); - } - - /// - public void GetClustersAsync(object userState) { - if ((this.GetClustersOperationCompleted == null)) { - this.GetClustersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetClustersOperationCompleted); - } - this.InvokeAsync("GetClusters", new object[0], this.GetClustersOperationCompleted, userState); - } - - private void OnGetClustersOperationCompleted(object arg) { - if ((this.GetClustersCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetClustersCompleted(this, new GetClustersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddCluster", 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 AddCluster(ClusterInfo cluster) { - object[] results = this.Invoke("AddCluster", new object[] { - cluster}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginAddCluster(ClusterInfo cluster, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddCluster", new object[] { - cluster}, callback, asyncState); - } - - /// - public int EndAddCluster(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void AddClusterAsync(ClusterInfo cluster) { - this.AddClusterAsync(cluster, null); - } - - /// - public void AddClusterAsync(ClusterInfo cluster, object userState) { - if ((this.AddClusterOperationCompleted == null)) { - this.AddClusterOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddClusterOperationCompleted); - } - this.InvokeAsync("AddCluster", new object[] { - cluster}, this.AddClusterOperationCompleted, userState); - } - - private void OnAddClusterOperationCompleted(object arg) { - if ((this.AddClusterCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddClusterCompleted(this, new AddClusterCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteCluster", 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 DeleteCluster(int clusterId) { - object[] results = this.Invoke("DeleteCluster", new object[] { - clusterId}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteCluster(int clusterId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteCluster", new object[] { - clusterId}, callback, asyncState); - } - - /// - public int EndDeleteCluster(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void DeleteClusterAsync(int clusterId) { - this.DeleteClusterAsync(clusterId, null); - } - - /// - public void DeleteClusterAsync(int clusterId, object userState) { - if ((this.DeleteClusterOperationCompleted == null)) { - this.DeleteClusterOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteClusterOperationCompleted); - } - this.InvokeAsync("DeleteCluster", new object[] { - clusterId}, this.DeleteClusterOperationCompleted, userState); - } - - private void OnDeleteClusterOperationCompleted(object arg) { - if ((this.DeleteClusterCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteClusterCompleted(this, new DeleteClusterCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByService", 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 System.Data.DataSet GetRawDnsRecordsByService(int serviceId) { - object[] results = this.Invoke("GetRawDnsRecordsByService", new object[] { - serviceId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawDnsRecordsByService(int serviceId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawDnsRecordsByService", new object[] { - serviceId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawDnsRecordsByService(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawDnsRecordsByServiceAsync(int serviceId) { - this.GetRawDnsRecordsByServiceAsync(serviceId, null); - } - - /// - public void GetRawDnsRecordsByServiceAsync(int serviceId, object userState) { - if ((this.GetRawDnsRecordsByServiceOperationCompleted == null)) { - this.GetRawDnsRecordsByServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByServiceOperationCompleted); - } - this.InvokeAsync("GetRawDnsRecordsByService", new object[] { - serviceId}, this.GetRawDnsRecordsByServiceOperationCompleted, userState); - } - - private void OnGetRawDnsRecordsByServiceOperationCompleted(object arg) { - if ((this.GetRawDnsRecordsByServiceCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawDnsRecordsByServiceCompleted(this, new GetRawDnsRecordsByServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByServer", 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 System.Data.DataSet GetRawDnsRecordsByServer(int serverId) { - object[] results = this.Invoke("GetRawDnsRecordsByServer", new object[] { - serverId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawDnsRecordsByServer(int serverId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawDnsRecordsByServer", new object[] { - serverId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawDnsRecordsByServer(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawDnsRecordsByServerAsync(int serverId) { - this.GetRawDnsRecordsByServerAsync(serverId, null); - } - - /// - public void GetRawDnsRecordsByServerAsync(int serverId, object userState) { - if ((this.GetRawDnsRecordsByServerOperationCompleted == null)) { - this.GetRawDnsRecordsByServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByServerOperationCompleted); - } - this.InvokeAsync("GetRawDnsRecordsByServer", new object[] { - serverId}, this.GetRawDnsRecordsByServerOperationCompleted, userState); - } - - private void OnGetRawDnsRecordsByServerOperationCompleted(object arg) { - if ((this.GetRawDnsRecordsByServerCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawDnsRecordsByServerCompleted(this, new GetRawDnsRecordsByServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByPackage", 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 System.Data.DataSet GetRawDnsRecordsByPackage(int packageId) { - object[] results = this.Invoke("GetRawDnsRecordsByPackage", new object[] { - packageId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawDnsRecordsByPackage(int packageId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawDnsRecordsByPackage", new object[] { - packageId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawDnsRecordsByPackage(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawDnsRecordsByPackageAsync(int packageId) { - this.GetRawDnsRecordsByPackageAsync(packageId, null); - } - - /// - public void GetRawDnsRecordsByPackageAsync(int packageId, object userState) { - if ((this.GetRawDnsRecordsByPackageOperationCompleted == null)) { - this.GetRawDnsRecordsByPackageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByPackageOperationCompleted); - } - this.InvokeAsync("GetRawDnsRecordsByPackage", new object[] { - packageId}, this.GetRawDnsRecordsByPackageOperationCompleted, userState); - } - - private void OnGetRawDnsRecordsByPackageOperationCompleted(object arg) { - if ((this.GetRawDnsRecordsByPackageCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawDnsRecordsByPackageCompleted(this, new GetRawDnsRecordsByPackageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByGroup", 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 System.Data.DataSet GetRawDnsRecordsByGroup(int groupId) { - object[] results = this.Invoke("GetRawDnsRecordsByGroup", new object[] { - groupId}); - return ((System.Data.DataSet)(results[0])); - } - - /// - public System.IAsyncResult BeginGetRawDnsRecordsByGroup(int groupId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetRawDnsRecordsByGroup", new object[] { - groupId}, callback, asyncState); - } - - /// - public System.Data.DataSet EndGetRawDnsRecordsByGroup(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((System.Data.DataSet)(results[0])); - } - - /// - public void GetRawDnsRecordsByGroupAsync(int groupId) { - this.GetRawDnsRecordsByGroupAsync(groupId, null); - } - - /// - public void GetRawDnsRecordsByGroupAsync(int groupId, object userState) { - if ((this.GetRawDnsRecordsByGroupOperationCompleted == null)) { - this.GetRawDnsRecordsByGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByGroupOperationCompleted); - } - this.InvokeAsync("GetRawDnsRecordsByGroup", new object[] { - groupId}, this.GetRawDnsRecordsByGroupOperationCompleted, userState); - } - - private void OnGetRawDnsRecordsByGroupOperationCompleted(object arg) { - if ((this.GetRawDnsRecordsByGroupCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetRawDnsRecordsByGroupCompleted(this, new GetRawDnsRecordsByGroupCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecordsByService", 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 GlobalDnsRecord[] GetDnsRecordsByService(int serviceId) { - object[] results = this.Invoke("GetDnsRecordsByService", new object[] { - serviceId}); - return ((GlobalDnsRecord[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetDnsRecordsByService(int serviceId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetDnsRecordsByService", new object[] { - serviceId}, callback, asyncState); - } - - /// - public GlobalDnsRecord[] EndGetDnsRecordsByService(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((GlobalDnsRecord[])(results[0])); - } - - /// - public void GetDnsRecordsByServiceAsync(int serviceId) { - this.GetDnsRecordsByServiceAsync(serviceId, null); - } - - /// - public void GetDnsRecordsByServiceAsync(int serviceId, object userState) { - if ((this.GetDnsRecordsByServiceOperationCompleted == null)) { - this.GetDnsRecordsByServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDnsRecordsByServiceOperationCompleted); - } - this.InvokeAsync("GetDnsRecordsByService", new object[] { - serviceId}, this.GetDnsRecordsByServiceOperationCompleted, userState); - } - - private void OnGetDnsRecordsByServiceOperationCompleted(object arg) { - if ((this.GetDnsRecordsByServiceCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetDnsRecordsByServiceCompleted(this, new GetDnsRecordsByServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecordsByServer", 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 GlobalDnsRecord[] GetDnsRecordsByServer(int serverId) { @@ -5711,12 +2898,4068 @@ namespace WebsitePanel.EnterpriseServer { } } + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAllServers", 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 ServerInfo[] GetAllServers() { + object[] results = this.Invoke("GetAllServers", new object[0]); + return ((ServerInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetAllServers(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetAllServers", new object[0], callback, asyncState); + } + + /// + public ServerInfo[] EndGetAllServers(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServerInfo[])(results[0])); + } + + /// + public void GetAllServersAsync() { + this.GetAllServersAsync(null); + } + + /// + public void GetAllServersAsync(object userState) { + if ((this.GetAllServersOperationCompleted == null)) { + this.GetAllServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllServersOperationCompleted); + } + this.InvokeAsync("GetAllServers", new object[0], this.GetAllServersOperationCompleted, userState); + } + + private void OnGetAllServersOperationCompleted(object arg) { + if ((this.GetAllServersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetAllServersCompleted(this, new GetAllServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawAllServers", 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 System.Data.DataSet GetRawAllServers() { + object[] results = this.Invoke("GetRawAllServers", new object[0]); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawAllServers(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawAllServers", new object[0], callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawAllServers(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawAllServersAsync() { + this.GetRawAllServersAsync(null); + } + + /// + public void GetRawAllServersAsync(object userState) { + if ((this.GetRawAllServersOperationCompleted == null)) { + this.GetRawAllServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawAllServersOperationCompleted); + } + this.InvokeAsync("GetRawAllServers", new object[0], this.GetRawAllServersOperationCompleted, userState); + } + + private void OnGetRawAllServersOperationCompleted(object arg) { + if ((this.GetRawAllServersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawAllServersCompleted(this, new GetRawAllServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServers", 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 ServerInfo[] GetServers() { + object[] results = this.Invoke("GetServers", new object[0]); + return ((ServerInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetServers(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServers", new object[0], callback, asyncState); + } + + /// + public ServerInfo[] EndGetServers(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServerInfo[])(results[0])); + } + + /// + public void GetServersAsync() { + this.GetServersAsync(null); + } + + /// + public void GetServersAsync(object userState) { + if ((this.GetServersOperationCompleted == null)) { + this.GetServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServersOperationCompleted); + } + this.InvokeAsync("GetServers", new object[0], this.GetServersOperationCompleted, userState); + } + + private void OnGetServersOperationCompleted(object arg) { + if ((this.GetServersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServersCompleted(this, new GetServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServers", 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 System.Data.DataSet GetRawServers() { + object[] results = this.Invoke("GetRawServers", new object[0]); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawServers(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawServers", new object[0], callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawServers(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawServersAsync() { + this.GetRawServersAsync(null); + } + + /// + public void GetRawServersAsync(object userState) { + if ((this.GetRawServersOperationCompleted == null)) { + this.GetRawServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServersOperationCompleted); + } + this.InvokeAsync("GetRawServers", new object[0], this.GetRawServersOperationCompleted, userState); + } + + private void OnGetRawServersOperationCompleted(object arg) { + if ((this.GetRawServersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawServersCompleted(this, new GetRawServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerShortDetails", 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 ServerInfo GetServerShortDetails(int serverId) { + object[] results = this.Invoke("GetServerShortDetails", new object[] { + serverId}); + return ((ServerInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetServerShortDetails(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServerShortDetails", new object[] { + serverId}, callback, asyncState); + } + + /// + public ServerInfo EndGetServerShortDetails(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServerInfo)(results[0])); + } + + /// + public void GetServerShortDetailsAsync(int serverId) { + this.GetServerShortDetailsAsync(serverId, null); + } + + /// + public void GetServerShortDetailsAsync(int serverId, object userState) { + if ((this.GetServerShortDetailsOperationCompleted == null)) { + this.GetServerShortDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerShortDetailsOperationCompleted); + } + this.InvokeAsync("GetServerShortDetails", new object[] { + serverId}, this.GetServerShortDetailsOperationCompleted, userState); + } + + private void OnGetServerShortDetailsOperationCompleted(object arg) { + if ((this.GetServerShortDetailsCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServerShortDetailsCompleted(this, new GetServerShortDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerById", 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 ServerInfo GetServerById(int serverId) { + object[] results = this.Invoke("GetServerById", new object[] { + serverId}); + return ((ServerInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetServerById(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServerById", new object[] { + serverId}, callback, asyncState); + } + + /// + public ServerInfo EndGetServerById(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServerInfo)(results[0])); + } + + /// + public void GetServerByIdAsync(int serverId) { + this.GetServerByIdAsync(serverId, null); + } + + /// + public void GetServerByIdAsync(int serverId, object userState) { + if ((this.GetServerByIdOperationCompleted == null)) { + this.GetServerByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerByIdOperationCompleted); + } + this.InvokeAsync("GetServerById", new object[] { + serverId}, this.GetServerByIdOperationCompleted, userState); + } + + private void OnGetServerByIdOperationCompleted(object arg) { + if ((this.GetServerByIdCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServerByIdCompleted(this, new GetServerByIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerByName", 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 ServerInfo GetServerByName(string serverName) { + object[] results = this.Invoke("GetServerByName", new object[] { + serverName}); + return ((ServerInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetServerByName(string serverName, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServerByName", new object[] { + serverName}, callback, asyncState); + } + + /// + public ServerInfo EndGetServerByName(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServerInfo)(results[0])); + } + + /// + public void GetServerByNameAsync(string serverName) { + this.GetServerByNameAsync(serverName, null); + } + + /// + public void GetServerByNameAsync(string serverName, object userState) { + if ((this.GetServerByNameOperationCompleted == null)) { + this.GetServerByNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerByNameOperationCompleted); + } + this.InvokeAsync("GetServerByName", new object[] { + serverName}, this.GetServerByNameOperationCompleted, userState); + } + + private void OnGetServerByNameOperationCompleted(object arg) { + if ((this.GetServerByNameCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServerByNameCompleted(this, new GetServerByNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckServerAvailable", 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 CheckServerAvailable(string serverUrl, string password) { + object[] results = this.Invoke("CheckServerAvailable", new object[] { + serverUrl, + password}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginCheckServerAvailable(string serverUrl, string password, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("CheckServerAvailable", new object[] { + serverUrl, + password}, callback, asyncState); + } + + /// + public int EndCheckServerAvailable(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void CheckServerAvailableAsync(string serverUrl, string password) { + this.CheckServerAvailableAsync(serverUrl, password, null); + } + + /// + public void CheckServerAvailableAsync(string serverUrl, string password, object userState) { + if ((this.CheckServerAvailableOperationCompleted == null)) { + this.CheckServerAvailableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckServerAvailableOperationCompleted); + } + this.InvokeAsync("CheckServerAvailable", new object[] { + serverUrl, + password}, this.CheckServerAvailableOperationCompleted, userState); + } + + private void OnCheckServerAvailableOperationCompleted(object arg) { + if ((this.CheckServerAvailableCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.CheckServerAvailableCompleted(this, new CheckServerAvailableCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddServer", 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 AddServer(ServerInfo server, bool autoDiscovery) { + object[] results = this.Invoke("AddServer", new object[] { + server, + autoDiscovery}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginAddServer(ServerInfo server, bool autoDiscovery, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AddServer", new object[] { + server, + autoDiscovery}, callback, asyncState); + } + + /// + public int EndAddServer(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void AddServerAsync(ServerInfo server, bool autoDiscovery) { + this.AddServerAsync(server, autoDiscovery, null); + } + + /// + public void AddServerAsync(ServerInfo server, bool autoDiscovery, object userState) { + if ((this.AddServerOperationCompleted == null)) { + this.AddServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddServerOperationCompleted); + } + this.InvokeAsync("AddServer", new object[] { + server, + autoDiscovery}, this.AddServerOperationCompleted, userState); + } + + private void OnAddServerOperationCompleted(object arg) { + if ((this.AddServerCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AddServerCompleted(this, new AddServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServer", 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 UpdateServer(ServerInfo server) { + object[] results = this.Invoke("UpdateServer", new object[] { + server}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateServer(ServerInfo server, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateServer", new object[] { + server}, callback, asyncState); + } + + /// + public int EndUpdateServer(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void UpdateServerAsync(ServerInfo server) { + this.UpdateServerAsync(server, null); + } + + /// + public void UpdateServerAsync(ServerInfo server, object userState) { + if ((this.UpdateServerOperationCompleted == null)) { + this.UpdateServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServerOperationCompleted); + } + this.InvokeAsync("UpdateServer", new object[] { + server}, this.UpdateServerOperationCompleted, userState); + } + + private void OnUpdateServerOperationCompleted(object arg) { + if ((this.UpdateServerCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateServerCompleted(this, new UpdateServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServerConnectionPassword", 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 UpdateServerConnectionPassword(int serverId, string password) { + object[] results = this.Invoke("UpdateServerConnectionPassword", new object[] { + serverId, + password}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateServerConnectionPassword(int serverId, string password, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateServerConnectionPassword", new object[] { + serverId, + password}, callback, asyncState); + } + + /// + public int EndUpdateServerConnectionPassword(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void UpdateServerConnectionPasswordAsync(int serverId, string password) { + this.UpdateServerConnectionPasswordAsync(serverId, password, null); + } + + /// + public void UpdateServerConnectionPasswordAsync(int serverId, string password, object userState) { + if ((this.UpdateServerConnectionPasswordOperationCompleted == null)) { + this.UpdateServerConnectionPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServerConnectionPasswordOperationCompleted); + } + this.InvokeAsync("UpdateServerConnectionPassword", new object[] { + serverId, + password}, this.UpdateServerConnectionPasswordOperationCompleted, userState); + } + + private void OnUpdateServerConnectionPasswordOperationCompleted(object arg) { + if ((this.UpdateServerConnectionPasswordCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateServerConnectionPasswordCompleted(this, new UpdateServerConnectionPasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServerADPassword", 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 UpdateServerADPassword(int serverId, string adPassword) { + object[] results = this.Invoke("UpdateServerADPassword", new object[] { + serverId, + adPassword}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateServerADPassword(int serverId, string adPassword, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateServerADPassword", new object[] { + serverId, + adPassword}, callback, asyncState); + } + + /// + public int EndUpdateServerADPassword(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void UpdateServerADPasswordAsync(int serverId, string adPassword) { + this.UpdateServerADPasswordAsync(serverId, adPassword, null); + } + + /// + public void UpdateServerADPasswordAsync(int serverId, string adPassword, object userState) { + if ((this.UpdateServerADPasswordOperationCompleted == null)) { + this.UpdateServerADPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServerADPasswordOperationCompleted); + } + this.InvokeAsync("UpdateServerADPassword", new object[] { + serverId, + adPassword}, this.UpdateServerADPasswordOperationCompleted, userState); + } + + private void OnUpdateServerADPasswordOperationCompleted(object arg) { + if ((this.UpdateServerADPasswordCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateServerADPasswordCompleted(this, new UpdateServerADPasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteServer", 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 DeleteServer(int serverId) { + object[] results = this.Invoke("DeleteServer", new object[] { + serverId}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginDeleteServer(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteServer", new object[] { + serverId}, callback, asyncState); + } + + /// + public int EndDeleteServer(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void DeleteServerAsync(int serverId) { + this.DeleteServerAsync(serverId, null); + } + + /// + public void DeleteServerAsync(int serverId, object userState) { + if ((this.DeleteServerOperationCompleted == null)) { + this.DeleteServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteServerOperationCompleted); + } + this.InvokeAsync("DeleteServer", new object[] { + serverId}, this.DeleteServerOperationCompleted, userState); + } + + private void OnDeleteServerOperationCompleted(object arg) { + if ((this.DeleteServerCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteServerCompleted(this, new DeleteServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetVirtualServers", 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 System.Data.DataSet GetVirtualServers() { + object[] results = this.Invoke("GetVirtualServers", new object[0]); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetVirtualServers(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetVirtualServers", new object[0], callback, asyncState); + } + + /// + public System.Data.DataSet EndGetVirtualServers(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetVirtualServersAsync() { + this.GetVirtualServersAsync(null); + } + + /// + public void GetVirtualServersAsync(object userState) { + if ((this.GetVirtualServersOperationCompleted == null)) { + this.GetVirtualServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetVirtualServersOperationCompleted); + } + this.InvokeAsync("GetVirtualServers", new object[0], this.GetVirtualServersOperationCompleted, userState); + } + + private void OnGetVirtualServersOperationCompleted(object arg) { + if ((this.GetVirtualServersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetVirtualServersCompleted(this, new GetVirtualServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAvailableVirtualServices", 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 System.Data.DataSet GetAvailableVirtualServices(int serverId) { + object[] results = this.Invoke("GetAvailableVirtualServices", new object[] { + serverId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetAvailableVirtualServices(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetAvailableVirtualServices", new object[] { + serverId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetAvailableVirtualServices(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetAvailableVirtualServicesAsync(int serverId) { + this.GetAvailableVirtualServicesAsync(serverId, null); + } + + /// + public void GetAvailableVirtualServicesAsync(int serverId, object userState) { + if ((this.GetAvailableVirtualServicesOperationCompleted == null)) { + this.GetAvailableVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAvailableVirtualServicesOperationCompleted); + } + this.InvokeAsync("GetAvailableVirtualServices", new object[] { + serverId}, this.GetAvailableVirtualServicesOperationCompleted, userState); + } + + private void OnGetAvailableVirtualServicesOperationCompleted(object arg) { + if ((this.GetAvailableVirtualServicesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetAvailableVirtualServicesCompleted(this, new GetAvailableVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetVirtualServices", 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 System.Data.DataSet GetVirtualServices(int serverId) { + object[] results = this.Invoke("GetVirtualServices", new object[] { + serverId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetVirtualServices(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetVirtualServices", new object[] { + serverId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetVirtualServices(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetVirtualServicesAsync(int serverId) { + this.GetVirtualServicesAsync(serverId, null); + } + + /// + public void GetVirtualServicesAsync(int serverId, object userState) { + if ((this.GetVirtualServicesOperationCompleted == null)) { + this.GetVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetVirtualServicesOperationCompleted); + } + this.InvokeAsync("GetVirtualServices", new object[] { + serverId}, this.GetVirtualServicesOperationCompleted, userState); + } + + private void OnGetVirtualServicesOperationCompleted(object arg) { + if ((this.GetVirtualServicesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetVirtualServicesCompleted(this, new GetVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddVirtualServices", 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 AddVirtualServices(int serverId, int[] ids) { + object[] results = this.Invoke("AddVirtualServices", new object[] { + serverId, + ids}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginAddVirtualServices(int serverId, int[] ids, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AddVirtualServices", new object[] { + serverId, + ids}, callback, asyncState); + } + + /// + public int EndAddVirtualServices(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void AddVirtualServicesAsync(int serverId, int[] ids) { + this.AddVirtualServicesAsync(serverId, ids, null); + } + + /// + public void AddVirtualServicesAsync(int serverId, int[] ids, object userState) { + if ((this.AddVirtualServicesOperationCompleted == null)) { + this.AddVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddVirtualServicesOperationCompleted); + } + this.InvokeAsync("AddVirtualServices", new object[] { + serverId, + ids}, this.AddVirtualServicesOperationCompleted, userState); + } + + private void OnAddVirtualServicesOperationCompleted(object arg) { + if ((this.AddVirtualServicesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AddVirtualServicesCompleted(this, new AddVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteVirtualServices", 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 DeleteVirtualServices(int serverId, int[] ids) { + object[] results = this.Invoke("DeleteVirtualServices", new object[] { + serverId, + ids}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginDeleteVirtualServices(int serverId, int[] ids, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteVirtualServices", new object[] { + serverId, + ids}, callback, asyncState); + } + + /// + public int EndDeleteVirtualServices(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void DeleteVirtualServicesAsync(int serverId, int[] ids) { + this.DeleteVirtualServicesAsync(serverId, ids, null); + } + + /// + public void DeleteVirtualServicesAsync(int serverId, int[] ids, object userState) { + if ((this.DeleteVirtualServicesOperationCompleted == null)) { + this.DeleteVirtualServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteVirtualServicesOperationCompleted); + } + this.InvokeAsync("DeleteVirtualServices", new object[] { + serverId, + ids}, this.DeleteVirtualServicesOperationCompleted, userState); + } + + private void OnDeleteVirtualServicesOperationCompleted(object arg) { + if ((this.DeleteVirtualServicesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteVirtualServicesCompleted(this, new DeleteVirtualServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateVirtualGroups", 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 UpdateVirtualGroups(int serverId, VirtualGroupInfo[] groups) { + object[] results = this.Invoke("UpdateVirtualGroups", new object[] { + serverId, + groups}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateVirtualGroups(int serverId, VirtualGroupInfo[] groups, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateVirtualGroups", new object[] { + serverId, + groups}, callback, asyncState); + } + + /// + public int EndUpdateVirtualGroups(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void UpdateVirtualGroupsAsync(int serverId, VirtualGroupInfo[] groups) { + this.UpdateVirtualGroupsAsync(serverId, groups, null); + } + + /// + public void UpdateVirtualGroupsAsync(int serverId, VirtualGroupInfo[] groups, object userState) { + if ((this.UpdateVirtualGroupsOperationCompleted == null)) { + this.UpdateVirtualGroupsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateVirtualGroupsOperationCompleted); + } + this.InvokeAsync("UpdateVirtualGroups", new object[] { + serverId, + groups}, this.UpdateVirtualGroupsOperationCompleted, userState); + } + + private void OnUpdateVirtualGroupsOperationCompleted(object arg) { + if ((this.UpdateVirtualGroupsCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateVirtualGroupsCompleted(this, new UpdateVirtualGroupsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServicesByServerId", 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 System.Data.DataSet GetRawServicesByServerId(int serverId) { + object[] results = this.Invoke("GetRawServicesByServerId", new object[] { + serverId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawServicesByServerId(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawServicesByServerId", new object[] { + serverId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawServicesByServerId(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawServicesByServerIdAsync(int serverId) { + this.GetRawServicesByServerIdAsync(serverId, null); + } + + /// + public void GetRawServicesByServerIdAsync(int serverId, object userState) { + if ((this.GetRawServicesByServerIdOperationCompleted == null)) { + this.GetRawServicesByServerIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServicesByServerIdOperationCompleted); + } + this.InvokeAsync("GetRawServicesByServerId", new object[] { + serverId}, this.GetRawServicesByServerIdOperationCompleted, userState); + } + + private void OnGetRawServicesByServerIdOperationCompleted(object arg) { + if ((this.GetRawServicesByServerIdCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawServicesByServerIdCompleted(this, new GetRawServicesByServerIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServicesByServerId", 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 ServiceInfo[] GetServicesByServerId(int serverId) { + object[] results = this.Invoke("GetServicesByServerId", new object[] { + serverId}); + return ((ServiceInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetServicesByServerId(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServicesByServerId", new object[] { + serverId}, callback, asyncState); + } + + /// + public ServiceInfo[] EndGetServicesByServerId(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServiceInfo[])(results[0])); + } + + /// + public void GetServicesByServerIdAsync(int serverId) { + this.GetServicesByServerIdAsync(serverId, null); + } + + /// + public void GetServicesByServerIdAsync(int serverId, object userState) { + if ((this.GetServicesByServerIdOperationCompleted == null)) { + this.GetServicesByServerIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServicesByServerIdOperationCompleted); + } + this.InvokeAsync("GetServicesByServerId", new object[] { + serverId}, this.GetServicesByServerIdOperationCompleted, userState); + } + + private void OnGetServicesByServerIdOperationCompleted(object arg) { + if ((this.GetServicesByServerIdCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServicesByServerIdCompleted(this, new GetServicesByServerIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServicesByServerIdGroupName", 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 ServiceInfo[] GetServicesByServerIdGroupName(int serverId, string groupName) { + object[] results = this.Invoke("GetServicesByServerIdGroupName", new object[] { + serverId, + groupName}); + return ((ServiceInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetServicesByServerIdGroupName(int serverId, string groupName, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServicesByServerIdGroupName", new object[] { + serverId, + groupName}, callback, asyncState); + } + + /// + public ServiceInfo[] EndGetServicesByServerIdGroupName(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServiceInfo[])(results[0])); + } + + /// + public void GetServicesByServerIdGroupNameAsync(int serverId, string groupName) { + this.GetServicesByServerIdGroupNameAsync(serverId, groupName, null); + } + + /// + public void GetServicesByServerIdGroupNameAsync(int serverId, string groupName, object userState) { + if ((this.GetServicesByServerIdGroupNameOperationCompleted == null)) { + this.GetServicesByServerIdGroupNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServicesByServerIdGroupNameOperationCompleted); + } + this.InvokeAsync("GetServicesByServerIdGroupName", new object[] { + serverId, + groupName}, this.GetServicesByServerIdGroupNameOperationCompleted, userState); + } + + private void OnGetServicesByServerIdGroupNameOperationCompleted(object arg) { + if ((this.GetServicesByServerIdGroupNameCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServicesByServerIdGroupNameCompleted(this, new GetServicesByServerIdGroupNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServicesByGroupId", 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 System.Data.DataSet GetRawServicesByGroupId(int groupId) { + object[] results = this.Invoke("GetRawServicesByGroupId", new object[] { + groupId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawServicesByGroupId(int groupId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawServicesByGroupId", new object[] { + groupId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawServicesByGroupId(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawServicesByGroupIdAsync(int groupId) { + this.GetRawServicesByGroupIdAsync(groupId, null); + } + + /// + public void GetRawServicesByGroupIdAsync(int groupId, object userState) { + if ((this.GetRawServicesByGroupIdOperationCompleted == null)) { + this.GetRawServicesByGroupIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServicesByGroupIdOperationCompleted); + } + this.InvokeAsync("GetRawServicesByGroupId", new object[] { + groupId}, this.GetRawServicesByGroupIdOperationCompleted, userState); + } + + private void OnGetRawServicesByGroupIdOperationCompleted(object arg) { + if ((this.GetRawServicesByGroupIdCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawServicesByGroupIdCompleted(this, new GetRawServicesByGroupIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawServicesByGroupName", 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 System.Data.DataSet GetRawServicesByGroupName(string groupName) { + object[] results = this.Invoke("GetRawServicesByGroupName", new object[] { + groupName}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawServicesByGroupName(string groupName, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawServicesByGroupName", new object[] { + groupName}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawServicesByGroupName(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawServicesByGroupNameAsync(string groupName) { + this.GetRawServicesByGroupNameAsync(groupName, null); + } + + /// + public void GetRawServicesByGroupNameAsync(string groupName, object userState) { + if ((this.GetRawServicesByGroupNameOperationCompleted == null)) { + this.GetRawServicesByGroupNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawServicesByGroupNameOperationCompleted); + } + this.InvokeAsync("GetRawServicesByGroupName", new object[] { + groupName}, this.GetRawServicesByGroupNameOperationCompleted, userState); + } + + private void OnGetRawServicesByGroupNameOperationCompleted(object arg) { + if ((this.GetRawServicesByGroupNameCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawServicesByGroupNameCompleted(this, new GetRawServicesByGroupNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServiceInfo", 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 ServiceInfo GetServiceInfo(int serviceId) { + object[] results = this.Invoke("GetServiceInfo", new object[] { + serviceId}); + return ((ServiceInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetServiceInfo(int serviceId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServiceInfo", new object[] { + serviceId}, callback, asyncState); + } + + /// + public ServiceInfo EndGetServiceInfo(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ServiceInfo)(results[0])); + } + + /// + public void GetServiceInfoAsync(int serviceId) { + this.GetServiceInfoAsync(serviceId, null); + } + + /// + public void GetServiceInfoAsync(int serviceId, object userState) { + if ((this.GetServiceInfoOperationCompleted == null)) { + this.GetServiceInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServiceInfoOperationCompleted); + } + this.InvokeAsync("GetServiceInfo", new object[] { + serviceId}, this.GetServiceInfoOperationCompleted, userState); + } + + private void OnGetServiceInfoOperationCompleted(object arg) { + if ((this.GetServiceInfoCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServiceInfoCompleted(this, new GetServiceInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddService", 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 AddService(ServiceInfo service) { + object[] results = this.Invoke("AddService", new object[] { + service}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginAddService(ServiceInfo service, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AddService", new object[] { + service}, callback, asyncState); + } + + /// + public int EndAddService(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void AddServiceAsync(ServiceInfo service) { + this.AddServiceAsync(service, null); + } + + /// + public void AddServiceAsync(ServiceInfo service, object userState) { + if ((this.AddServiceOperationCompleted == null)) { + this.AddServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddServiceOperationCompleted); + } + this.InvokeAsync("AddService", new object[] { + service}, this.AddServiceOperationCompleted, userState); + } + + private void OnAddServiceOperationCompleted(object arg) { + if ((this.AddServiceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AddServiceCompleted(this, new AddServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateService", 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 UpdateService(ServiceInfo service) { + object[] results = this.Invoke("UpdateService", new object[] { + service}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateService(ServiceInfo service, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateService", new object[] { + service}, callback, asyncState); + } + + /// + public int EndUpdateService(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void UpdateServiceAsync(ServiceInfo service) { + this.UpdateServiceAsync(service, null); + } + + /// + public void UpdateServiceAsync(ServiceInfo service, object userState) { + if ((this.UpdateServiceOperationCompleted == null)) { + this.UpdateServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServiceOperationCompleted); + } + this.InvokeAsync("UpdateService", new object[] { + service}, this.UpdateServiceOperationCompleted, userState); + } + + private void OnUpdateServiceOperationCompleted(object arg) { + if ((this.UpdateServiceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateServiceCompleted(this, new UpdateServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteService", 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 DeleteService(int serviceId) { + object[] results = this.Invoke("DeleteService", new object[] { + serviceId}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginDeleteService(int serviceId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteService", new object[] { + serviceId}, callback, asyncState); + } + + /// + public int EndDeleteService(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void DeleteServiceAsync(int serviceId) { + this.DeleteServiceAsync(serviceId, null); + } + + /// + public void DeleteServiceAsync(int serviceId, object userState) { + if ((this.DeleteServiceOperationCompleted == null)) { + this.DeleteServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteServiceOperationCompleted); + } + this.InvokeAsync("DeleteService", new object[] { + serviceId}, this.DeleteServiceOperationCompleted, userState); + } + + private void OnDeleteServiceOperationCompleted(object arg) { + if ((this.DeleteServiceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteServiceCompleted(this, new DeleteServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServiceSettings", 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 string[] GetServiceSettings(int serviceId) { + object[] results = this.Invoke("GetServiceSettings", new object[] { + serviceId}); + return ((string[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetServiceSettings(int serviceId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServiceSettings", new object[] { + serviceId}, callback, asyncState); + } + + /// + public string[] EndGetServiceSettings(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((string[])(results[0])); + } + + /// + public void GetServiceSettingsAsync(int serviceId) { + this.GetServiceSettingsAsync(serviceId, null); + } + + /// + public void GetServiceSettingsAsync(int serviceId, object userState) { + if ((this.GetServiceSettingsOperationCompleted == null)) { + this.GetServiceSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServiceSettingsOperationCompleted); + } + this.InvokeAsync("GetServiceSettings", new object[] { + serviceId}, this.GetServiceSettingsOperationCompleted, userState); + } + + private void OnGetServiceSettingsOperationCompleted(object arg) { + if ((this.GetServiceSettingsCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServiceSettingsCompleted(this, new GetServiceSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateServiceSettings", 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 UpdateServiceSettings(int serviceId, string[] settings) { + object[] results = this.Invoke("UpdateServiceSettings", new object[] { + serviceId, + settings}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateServiceSettings(int serviceId, string[] settings, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateServiceSettings", new object[] { + serviceId, + settings}, callback, asyncState); + } + + /// + public int EndUpdateServiceSettings(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void UpdateServiceSettingsAsync(int serviceId, string[] settings) { + this.UpdateServiceSettingsAsync(serviceId, settings, null); + } + + /// + public void UpdateServiceSettingsAsync(int serviceId, string[] settings, object userState) { + if ((this.UpdateServiceSettingsOperationCompleted == null)) { + this.UpdateServiceSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateServiceSettingsOperationCompleted); + } + this.InvokeAsync("UpdateServiceSettings", new object[] { + serviceId, + settings}, this.UpdateServiceSettingsOperationCompleted, userState); + } + + private void OnUpdateServiceSettingsOperationCompleted(object arg) { + if ((this.UpdateServiceSettingsCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateServiceSettingsCompleted(this, new UpdateServiceSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/InstallService", 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 string[] InstallService(int serviceId) { + object[] results = this.Invoke("InstallService", new object[] { + serviceId}); + return ((string[])(results[0])); + } + + /// + public System.IAsyncResult BeginInstallService(int serviceId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("InstallService", new object[] { + serviceId}, callback, asyncState); + } + + /// + public string[] EndInstallService(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((string[])(results[0])); + } + + /// + public void InstallServiceAsync(int serviceId) { + this.InstallServiceAsync(serviceId, null); + } + + /// + public void InstallServiceAsync(int serviceId, object userState) { + if ((this.InstallServiceOperationCompleted == null)) { + this.InstallServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInstallServiceOperationCompleted); + } + this.InvokeAsync("InstallService", new object[] { + serviceId}, this.InstallServiceOperationCompleted, userState); + } + + private void OnInstallServiceOperationCompleted(object arg) { + if ((this.InstallServiceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.InstallServiceCompleted(this, new InstallServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProviderServiceQuota", 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 QuotaInfo GetProviderServiceQuota(int providerId) { + object[] results = this.Invoke("GetProviderServiceQuota", new object[] { + providerId}); + return ((QuotaInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetProviderServiceQuota(int providerId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetProviderServiceQuota", new object[] { + providerId}, callback, asyncState); + } + + /// + public QuotaInfo EndGetProviderServiceQuota(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((QuotaInfo)(results[0])); + } + + /// + public void GetProviderServiceQuotaAsync(int providerId) { + this.GetProviderServiceQuotaAsync(providerId, null); + } + + /// + public void GetProviderServiceQuotaAsync(int providerId, object userState) { + if ((this.GetProviderServiceQuotaOperationCompleted == null)) { + this.GetProviderServiceQuotaOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProviderServiceQuotaOperationCompleted); + } + this.InvokeAsync("GetProviderServiceQuota", new object[] { + providerId}, this.GetProviderServiceQuotaOperationCompleted, userState); + } + + private void OnGetProviderServiceQuotaOperationCompleted(object arg) { + if ((this.GetProviderServiceQuotaCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetProviderServiceQuotaCompleted(this, new GetProviderServiceQuotaCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetInstalledProviders", 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 ProviderInfo[] GetInstalledProviders(int groupId) { + object[] results = this.Invoke("GetInstalledProviders", new object[] { + groupId}); + return ((ProviderInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetInstalledProviders(int groupId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetInstalledProviders", new object[] { + groupId}, callback, asyncState); + } + + /// + public ProviderInfo[] EndGetInstalledProviders(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ProviderInfo[])(results[0])); + } + + /// + public void GetInstalledProvidersAsync(int groupId) { + this.GetInstalledProvidersAsync(groupId, null); + } + + /// + public void GetInstalledProvidersAsync(int groupId, object userState) { + if ((this.GetInstalledProvidersOperationCompleted == null)) { + this.GetInstalledProvidersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetInstalledProvidersOperationCompleted); + } + this.InvokeAsync("GetInstalledProviders", new object[] { + groupId}, this.GetInstalledProvidersOperationCompleted, userState); + } + + private void OnGetInstalledProvidersOperationCompleted(object arg) { + if ((this.GetInstalledProvidersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetInstalledProvidersCompleted(this, new GetInstalledProvidersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetResourceGroups", 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 ResourceGroupInfo[] GetResourceGroups() { + object[] results = this.Invoke("GetResourceGroups", new object[0]); + return ((ResourceGroupInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetResourceGroups(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetResourceGroups", new object[0], callback, asyncState); + } + + /// + public ResourceGroupInfo[] EndGetResourceGroups(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResourceGroupInfo[])(results[0])); + } + + /// + public void GetResourceGroupsAsync() { + this.GetResourceGroupsAsync(null); + } + + /// + public void GetResourceGroupsAsync(object userState) { + if ((this.GetResourceGroupsOperationCompleted == null)) { + this.GetResourceGroupsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetResourceGroupsOperationCompleted); + } + this.InvokeAsync("GetResourceGroups", new object[0], this.GetResourceGroupsOperationCompleted, userState); + } + + private void OnGetResourceGroupsOperationCompleted(object arg) { + if ((this.GetResourceGroupsCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetResourceGroupsCompleted(this, new GetResourceGroupsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetResourceGroup", 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 ResourceGroupInfo GetResourceGroup(int groupId) { + object[] results = this.Invoke("GetResourceGroup", new object[] { + groupId}); + return ((ResourceGroupInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetResourceGroup(int groupId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetResourceGroup", new object[] { + groupId}, callback, asyncState); + } + + /// + public ResourceGroupInfo EndGetResourceGroup(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResourceGroupInfo)(results[0])); + } + + /// + public void GetResourceGroupAsync(int groupId) { + this.GetResourceGroupAsync(groupId, null); + } + + /// + public void GetResourceGroupAsync(int groupId, object userState) { + if ((this.GetResourceGroupOperationCompleted == null)) { + this.GetResourceGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetResourceGroupOperationCompleted); + } + this.InvokeAsync("GetResourceGroup", new object[] { + groupId}, this.GetResourceGroupOperationCompleted, userState); + } + + private void OnGetResourceGroupOperationCompleted(object arg) { + if ((this.GetResourceGroupCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetResourceGroupCompleted(this, new GetResourceGroupCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProvider", 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 ProviderInfo GetProvider(int providerId) { + object[] results = this.Invoke("GetProvider", new object[] { + providerId}); + return ((ProviderInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetProvider(int providerId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetProvider", new object[] { + providerId}, callback, asyncState); + } + + /// + public ProviderInfo EndGetProvider(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ProviderInfo)(results[0])); + } + + /// + public void GetProviderAsync(int providerId) { + this.GetProviderAsync(providerId, null); + } + + /// + public void GetProviderAsync(int providerId, object userState) { + if ((this.GetProviderOperationCompleted == null)) { + this.GetProviderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProviderOperationCompleted); + } + this.InvokeAsync("GetProvider", new object[] { + providerId}, this.GetProviderOperationCompleted, userState); + } + + private void OnGetProviderOperationCompleted(object arg) { + if ((this.GetProviderCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetProviderCompleted(this, new GetProviderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProviders", 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 ProviderInfo[] GetProviders() { + object[] results = this.Invoke("GetProviders", new object[0]); + return ((ProviderInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetProviders(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetProviders", new object[0], callback, asyncState); + } + + /// + public ProviderInfo[] EndGetProviders(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ProviderInfo[])(results[0])); + } + + /// + public void GetProvidersAsync() { + this.GetProvidersAsync(null); + } + + /// + public void GetProvidersAsync(object userState) { + if ((this.GetProvidersOperationCompleted == null)) { + this.GetProvidersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProvidersOperationCompleted); + } + this.InvokeAsync("GetProviders", new object[0], this.GetProvidersOperationCompleted, userState); + } + + private void OnGetProvidersOperationCompleted(object arg) { + if ((this.GetProvidersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetProvidersCompleted(this, new GetProvidersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetProvidersByGroupId", 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 ProviderInfo[] GetProvidersByGroupId(int groupId) { + object[] results = this.Invoke("GetProvidersByGroupId", new object[] { + groupId}); + return ((ProviderInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetProvidersByGroupId(int groupId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetProvidersByGroupId", new object[] { + groupId}, callback, asyncState); + } + + /// + public ProviderInfo[] EndGetProvidersByGroupId(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ProviderInfo[])(results[0])); + } + + /// + public void GetProvidersByGroupIdAsync(int groupId) { + this.GetProvidersByGroupIdAsync(groupId, null); + } + + /// + public void GetProvidersByGroupIdAsync(int groupId, object userState) { + if ((this.GetProvidersByGroupIdOperationCompleted == null)) { + this.GetProvidersByGroupIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProvidersByGroupIdOperationCompleted); + } + this.InvokeAsync("GetProvidersByGroupId", new object[] { + groupId}, this.GetProvidersByGroupIdOperationCompleted, userState); + } + + private void OnGetProvidersByGroupIdOperationCompleted(object arg) { + if ((this.GetProvidersByGroupIdCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetProvidersByGroupIdCompleted(this, new GetProvidersByGroupIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetPackageServiceProvider", 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 ProviderInfo GetPackageServiceProvider(int packageId, string groupName) { + object[] results = this.Invoke("GetPackageServiceProvider", new object[] { + packageId, + groupName}); + return ((ProviderInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetPackageServiceProvider(int packageId, string groupName, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetPackageServiceProvider", new object[] { + packageId, + groupName}, callback, asyncState); + } + + /// + public ProviderInfo EndGetPackageServiceProvider(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ProviderInfo)(results[0])); + } + + /// + public void GetPackageServiceProviderAsync(int packageId, string groupName) { + this.GetPackageServiceProviderAsync(packageId, groupName, null); + } + + /// + public void GetPackageServiceProviderAsync(int packageId, string groupName, object userState) { + if ((this.GetPackageServiceProviderOperationCompleted == null)) { + this.GetPackageServiceProviderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPackageServiceProviderOperationCompleted); + } + this.InvokeAsync("GetPackageServiceProvider", new object[] { + packageId, + groupName}, this.GetPackageServiceProviderOperationCompleted, userState); + } + + private void OnGetPackageServiceProviderOperationCompleted(object arg) { + if ((this.GetPackageServiceProviderCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetPackageServiceProviderCompleted(this, new GetPackageServiceProviderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/IsInstalled", 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 BoolResult IsInstalled(int serverId, int providerId) { + object[] results = this.Invoke("IsInstalled", new object[] { + serverId, + providerId}); + return ((BoolResult)(results[0])); + } + + /// + public System.IAsyncResult BeginIsInstalled(int serverId, int providerId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("IsInstalled", new object[] { + serverId, + providerId}, callback, asyncState); + } + + /// + public BoolResult EndIsInstalled(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((BoolResult)(results[0])); + } + + /// + public void IsInstalledAsync(int serverId, int providerId) { + this.IsInstalledAsync(serverId, providerId, null); + } + + /// + public void IsInstalledAsync(int serverId, int providerId, object userState) { + if ((this.IsInstalledOperationCompleted == null)) { + this.IsInstalledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsInstalledOperationCompleted); + } + this.InvokeAsync("IsInstalled", new object[] { + serverId, + providerId}, this.IsInstalledOperationCompleted, userState); + } + + private void OnIsInstalledOperationCompleted(object arg) { + if ((this.IsInstalledCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.IsInstalledCompleted(this, new IsInstalledCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServerVersion", 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 string GetServerVersion(int serverId) { + object[] results = this.Invoke("GetServerVersion", new object[] { + serverId}); + return ((string)(results[0])); + } + + /// + public System.IAsyncResult BeginGetServerVersion(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetServerVersion", new object[] { + serverId}, callback, asyncState); + } + + /// + public string EndGetServerVersion(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((string)(results[0])); + } + + /// + public void GetServerVersionAsync(int serverId) { + this.GetServerVersionAsync(serverId, null); + } + + /// + public void GetServerVersionAsync(int serverId, object userState) { + if ((this.GetServerVersionOperationCompleted == null)) { + this.GetServerVersionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerVersionOperationCompleted); + } + this.InvokeAsync("GetServerVersion", new object[] { + serverId}, this.GetServerVersionOperationCompleted, userState); + } + + private void OnGetServerVersionOperationCompleted(object arg) { + if ((this.GetServerVersionCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetServerVersionCompleted(this, new GetServerVersionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetIPAddresses", 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 IPAddressInfo[] GetIPAddresses(IPAddressPool pool, int serverId) { + object[] results = this.Invoke("GetIPAddresses", new object[] { + pool, + serverId}); + return ((IPAddressInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetIPAddresses(IPAddressPool pool, int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetIPAddresses", new object[] { + pool, + serverId}, callback, asyncState); + } + + /// + public IPAddressInfo[] EndGetIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((IPAddressInfo[])(results[0])); + } + + /// + public void GetIPAddressesAsync(IPAddressPool pool, int serverId) { + this.GetIPAddressesAsync(pool, serverId, null); + } + + /// + public void GetIPAddressesAsync(IPAddressPool pool, int serverId, object userState) { + if ((this.GetIPAddressesOperationCompleted == null)) { + this.GetIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetIPAddressesOperationCompleted); + } + this.InvokeAsync("GetIPAddresses", new object[] { + pool, + serverId}, this.GetIPAddressesOperationCompleted, userState); + } + + private void OnGetIPAddressesOperationCompleted(object arg) { + if ((this.GetIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetIPAddressesCompleted(this, new GetIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetIPAddressesPaged", 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 IPAddressesPaged GetIPAddressesPaged(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { + object[] results = this.Invoke("GetIPAddressesPaged", new object[] { + pool, + serverId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}); + return ((IPAddressesPaged)(results[0])); + } + + /// + public System.IAsyncResult BeginGetIPAddressesPaged(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetIPAddressesPaged", new object[] { + pool, + serverId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); + } + + /// + public IPAddressesPaged EndGetIPAddressesPaged(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((IPAddressesPaged)(results[0])); + } + + /// + public void GetIPAddressesPagedAsync(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { + this.GetIPAddressesPagedAsync(pool, serverId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null); + } + + /// + public void GetIPAddressesPagedAsync(IPAddressPool pool, int serverId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetIPAddressesPagedOperationCompleted == null)) { + this.GetIPAddressesPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetIPAddressesPagedOperationCompleted); + } + this.InvokeAsync("GetIPAddressesPaged", new object[] { + pool, + serverId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetIPAddressesPagedOperationCompleted, userState); + } + + private void OnGetIPAddressesPagedOperationCompleted(object arg) { + if ((this.GetIPAddressesPagedCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetIPAddressesPagedCompleted(this, new GetIPAddressesPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetIPAddress", 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 IPAddressInfo GetIPAddress(int addressId) { + object[] results = this.Invoke("GetIPAddress", new object[] { + addressId}); + return ((IPAddressInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetIPAddress(int addressId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetIPAddress", new object[] { + addressId}, callback, asyncState); + } + + /// + public IPAddressInfo EndGetIPAddress(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((IPAddressInfo)(results[0])); + } + + /// + public void GetIPAddressAsync(int addressId) { + this.GetIPAddressAsync(addressId, null); + } + + /// + public void GetIPAddressAsync(int addressId, object userState) { + if ((this.GetIPAddressOperationCompleted == null)) { + this.GetIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetIPAddressOperationCompleted); + } + this.InvokeAsync("GetIPAddress", new object[] { + addressId}, this.GetIPAddressOperationCompleted, userState); + } + + private void OnGetIPAddressOperationCompleted(object arg) { + if ((this.GetIPAddressCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetIPAddressCompleted(this, new GetIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddIPAddress", 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 IntResult AddIPAddress(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { + object[] results = this.Invoke("AddIPAddress", new object[] { + pool, + serverId, + externalIP, + internalIP, + subnetMask, + defaultGateway, + comments}); + return ((IntResult)(results[0])); + } + + /// + public System.IAsyncResult BeginAddIPAddress(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AddIPAddress", new object[] { + pool, + serverId, + externalIP, + internalIP, + subnetMask, + defaultGateway, + comments}, callback, asyncState); + } + + /// + public IntResult EndAddIPAddress(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((IntResult)(results[0])); + } + + /// + public void AddIPAddressAsync(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { + this.AddIPAddressAsync(pool, serverId, externalIP, internalIP, subnetMask, defaultGateway, comments, null); + } + + /// + public void AddIPAddressAsync(IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, object userState) { + if ((this.AddIPAddressOperationCompleted == null)) { + this.AddIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddIPAddressOperationCompleted); + } + this.InvokeAsync("AddIPAddress", new object[] { + pool, + serverId, + externalIP, + internalIP, + subnetMask, + defaultGateway, + comments}, this.AddIPAddressOperationCompleted, userState); + } + + private void OnAddIPAddressOperationCompleted(object arg) { + if ((this.AddIPAddressCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AddIPAddressCompleted(this, new AddIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddIPAddressesRange", 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 AddIPAddressesRange(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments) { + object[] results = this.Invoke("AddIPAddressesRange", new object[] { + pool, + serverId, + externalIP, + endIP, + internalIP, + subnetMask, + defaultGateway, + comments}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginAddIPAddressesRange(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AddIPAddressesRange", new object[] { + pool, + serverId, + externalIP, + endIP, + internalIP, + subnetMask, + defaultGateway, + comments}, callback, asyncState); + } + + /// + public ResultObject EndAddIPAddressesRange(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void AddIPAddressesRangeAsync(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments) { + this.AddIPAddressesRangeAsync(pool, serverId, externalIP, endIP, internalIP, subnetMask, defaultGateway, comments, null); + } + + /// + public void AddIPAddressesRangeAsync(IPAddressPool pool, int serverId, string externalIP, string endIP, string internalIP, string subnetMask, string defaultGateway, string comments, object userState) { + if ((this.AddIPAddressesRangeOperationCompleted == null)) { + this.AddIPAddressesRangeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddIPAddressesRangeOperationCompleted); + } + this.InvokeAsync("AddIPAddressesRange", new object[] { + pool, + serverId, + externalIP, + endIP, + internalIP, + subnetMask, + defaultGateway, + comments}, this.AddIPAddressesRangeOperationCompleted, userState); + } + + private void OnAddIPAddressesRangeOperationCompleted(object arg) { + if ((this.AddIPAddressesRangeCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AddIPAddressesRangeCompleted(this, new AddIPAddressesRangeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateIPAddress", 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 UpdateIPAddress(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { + object[] results = this.Invoke("UpdateIPAddress", new object[] { + addressId, + pool, + serverId, + externalIP, + internalIP, + subnetMask, + defaultGateway, + comments}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateIPAddress(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateIPAddress", new object[] { + addressId, + pool, + serverId, + externalIP, + internalIP, + subnetMask, + defaultGateway, + comments}, callback, asyncState); + } + + /// + public ResultObject EndUpdateIPAddress(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void UpdateIPAddressAsync(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments) { + this.UpdateIPAddressAsync(addressId, pool, serverId, externalIP, internalIP, subnetMask, defaultGateway, comments, null); + } + + /// + public void UpdateIPAddressAsync(int addressId, IPAddressPool pool, int serverId, string externalIP, string internalIP, string subnetMask, string defaultGateway, string comments, object userState) { + if ((this.UpdateIPAddressOperationCompleted == null)) { + this.UpdateIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateIPAddressOperationCompleted); + } + this.InvokeAsync("UpdateIPAddress", new object[] { + addressId, + pool, + serverId, + externalIP, + internalIP, + subnetMask, + defaultGateway, + comments}, this.UpdateIPAddressOperationCompleted, userState); + } + + private void OnUpdateIPAddressOperationCompleted(object arg) { + if ((this.UpdateIPAddressCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateIPAddressCompleted(this, new UpdateIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateIPAddresses", 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 UpdateIPAddresses(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments) { + object[] results = this.Invoke("UpdateIPAddresses", new object[] { + addresses, + pool, + serverId, + subnetMask, + defaultGateway, + comments}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginUpdateIPAddresses(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UpdateIPAddresses", new object[] { + addresses, + pool, + serverId, + subnetMask, + defaultGateway, + comments}, callback, asyncState); + } + + /// + public ResultObject EndUpdateIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void UpdateIPAddressesAsync(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments) { + this.UpdateIPAddressesAsync(addresses, pool, serverId, subnetMask, defaultGateway, comments, null); + } + + /// + public void UpdateIPAddressesAsync(int[] addresses, IPAddressPool pool, int serverId, string subnetMask, string defaultGateway, string comments, object userState) { + if ((this.UpdateIPAddressesOperationCompleted == null)) { + this.UpdateIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateIPAddressesOperationCompleted); + } + this.InvokeAsync("UpdateIPAddresses", new object[] { + addresses, + pool, + serverId, + subnetMask, + defaultGateway, + comments}, this.UpdateIPAddressesOperationCompleted, userState); + } + + private void OnUpdateIPAddressesOperationCompleted(object arg) { + if ((this.UpdateIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UpdateIPAddressesCompleted(this, new UpdateIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteIPAddress", 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 DeleteIPAddress(int addressId) { + object[] results = this.Invoke("DeleteIPAddress", new object[] { + addressId}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginDeleteIPAddress(int addressId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteIPAddress", new object[] { + addressId}, callback, asyncState); + } + + /// + public ResultObject EndDeleteIPAddress(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void DeleteIPAddressAsync(int addressId) { + this.DeleteIPAddressAsync(addressId, null); + } + + /// + public void DeleteIPAddressAsync(int addressId, object userState) { + if ((this.DeleteIPAddressOperationCompleted == null)) { + this.DeleteIPAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteIPAddressOperationCompleted); + } + this.InvokeAsync("DeleteIPAddress", new object[] { + addressId}, this.DeleteIPAddressOperationCompleted, userState); + } + + private void OnDeleteIPAddressOperationCompleted(object arg) { + if ((this.DeleteIPAddressCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteIPAddressCompleted(this, new DeleteIPAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteIPAddresses", 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 DeleteIPAddresses(int[] addresses) { + object[] results = this.Invoke("DeleteIPAddresses", new object[] { + addresses}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginDeleteIPAddresses(int[] addresses, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteIPAddresses", new object[] { + addresses}, callback, asyncState); + } + + /// + public ResultObject EndDeleteIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void DeleteIPAddressesAsync(int[] addresses) { + this.DeleteIPAddressesAsync(addresses, null); + } + + /// + public void DeleteIPAddressesAsync(int[] addresses, object userState) { + if ((this.DeleteIPAddressesOperationCompleted == null)) { + this.DeleteIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteIPAddressesOperationCompleted); + } + this.InvokeAsync("DeleteIPAddresses", new object[] { + addresses}, this.DeleteIPAddressesOperationCompleted, userState); + } + + private void OnDeleteIPAddressesOperationCompleted(object arg) { + if ((this.DeleteIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteIPAddressesCompleted(this, new DeleteIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetUnallottedIPAddresses", 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 IPAddressInfo[] GetUnallottedIPAddresses(int packageId, string groupName, IPAddressPool pool) { + object[] results = this.Invoke("GetUnallottedIPAddresses", new object[] { + packageId, + groupName, + pool}); + return ((IPAddressInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetUnallottedIPAddresses(int packageId, string groupName, IPAddressPool pool, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetUnallottedIPAddresses", new object[] { + packageId, + groupName, + pool}, callback, asyncState); + } + + /// + public IPAddressInfo[] EndGetUnallottedIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((IPAddressInfo[])(results[0])); + } + + /// + public void GetUnallottedIPAddressesAsync(int packageId, string groupName, IPAddressPool pool) { + this.GetUnallottedIPAddressesAsync(packageId, groupName, pool, null); + } + + /// + public void GetUnallottedIPAddressesAsync(int packageId, string groupName, IPAddressPool pool, object userState) { + if ((this.GetUnallottedIPAddressesOperationCompleted == null)) { + this.GetUnallottedIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUnallottedIPAddressesOperationCompleted); + } + this.InvokeAsync("GetUnallottedIPAddresses", new object[] { + packageId, + groupName, + pool}, this.GetUnallottedIPAddressesOperationCompleted, userState); + } + + private void OnGetUnallottedIPAddressesOperationCompleted(object arg) { + if ((this.GetUnallottedIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetUnallottedIPAddressesCompleted(this, new GetUnallottedIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetPackageIPAddresses", 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 PackageIPAddressesPaged GetPackageIPAddresses(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) { + object[] results = this.Invoke("GetPackageIPAddresses", new object[] { + packageId, + orgId, + pool, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows, + recursive}); + return ((PackageIPAddressesPaged)(results[0])); + } + + /// + public System.IAsyncResult BeginGetPackageIPAddresses(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetPackageIPAddresses", new object[] { + packageId, + orgId, + pool, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows, + recursive}, callback, asyncState); + } + + /// + public PackageIPAddressesPaged EndGetPackageIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((PackageIPAddressesPaged)(results[0])); + } + + /// + public void GetPackageIPAddressesAsync(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) { + this.GetPackageIPAddressesAsync(packageId, orgId, pool, filterColumn, filterValue, sortColumn, startRow, maximumRows, recursive, null); + } + + /// + public void GetPackageIPAddressesAsync(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive, object userState) { + if ((this.GetPackageIPAddressesOperationCompleted == null)) { + this.GetPackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPackageIPAddressesOperationCompleted); + } + this.InvokeAsync("GetPackageIPAddresses", new object[] { + packageId, + orgId, + pool, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows, + recursive}, this.GetPackageIPAddressesOperationCompleted, userState); + } + + private void OnGetPackageIPAddressesOperationCompleted(object arg) { + if ((this.GetPackageIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetPackageIPAddressesCompleted(this, new GetPackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetPackageUnassignedIPAddresses", 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 PackageIPAddress[] GetPackageUnassignedIPAddresses(int packageId, int orgId, IPAddressPool pool) { + object[] results = this.Invoke("GetPackageUnassignedIPAddresses", new object[] { + packageId, + orgId, + pool}); + return ((PackageIPAddress[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetPackageUnassignedIPAddresses(int packageId, int orgId, IPAddressPool pool, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetPackageUnassignedIPAddresses", new object[] { + packageId, + orgId, + pool}, callback, asyncState); + } + + /// + public PackageIPAddress[] EndGetPackageUnassignedIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((PackageIPAddress[])(results[0])); + } + + /// + public void GetPackageUnassignedIPAddressesAsync(int packageId, int orgId, IPAddressPool pool) { + this.GetPackageUnassignedIPAddressesAsync(packageId, orgId, pool, null); + } + + /// + public void GetPackageUnassignedIPAddressesAsync(int packageId, int orgId, IPAddressPool pool, object userState) { + if ((this.GetPackageUnassignedIPAddressesOperationCompleted == null)) { + this.GetPackageUnassignedIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPackageUnassignedIPAddressesOperationCompleted); + } + this.InvokeAsync("GetPackageUnassignedIPAddresses", new object[] { + packageId, + orgId, + pool}, this.GetPackageUnassignedIPAddressesOperationCompleted, userState); + } + + private void OnGetPackageUnassignedIPAddressesOperationCompleted(object arg) { + if ((this.GetPackageUnassignedIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetPackageUnassignedIPAddressesCompleted(this, new GetPackageUnassignedIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AllocatePackageIPAddresses", 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 AllocatePackageIPAddresses(int packageId, int orgId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId) { + object[] results = this.Invoke("AllocatePackageIPAddresses", new object[] { + packageId, + orgId, + groupName, + pool, + allocateRandom, + addressesNumber, + addressId}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginAllocatePackageIPAddresses(int packageId, int orgId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AllocatePackageIPAddresses", new object[] { + packageId, + orgId, + groupName, + pool, + allocateRandom, + addressesNumber, + addressId}, callback, asyncState); + } + + /// + public ResultObject EndAllocatePackageIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void AllocatePackageIPAddressesAsync(int packageId, int orgId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId) { + this.AllocatePackageIPAddressesAsync(packageId, orgId, groupName, pool, allocateRandom, addressesNumber, addressId, null); + } + + /// + public void AllocatePackageIPAddressesAsync(int packageId, int orgId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId, object userState) { + if ((this.AllocatePackageIPAddressesOperationCompleted == null)) { + this.AllocatePackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAllocatePackageIPAddressesOperationCompleted); + } + this.InvokeAsync("AllocatePackageIPAddresses", new object[] { + packageId, + orgId, + groupName, + pool, + allocateRandom, + addressesNumber, + addressId}, this.AllocatePackageIPAddressesOperationCompleted, userState); + } + + private void OnAllocatePackageIPAddressesOperationCompleted(object arg) { + if ((this.AllocatePackageIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AllocatePackageIPAddressesCompleted(this, new AllocatePackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AllocateMaximumPackageIPAddresses", 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 AllocateMaximumPackageIPAddresses(int packageId, string groupName, IPAddressPool pool) { + object[] results = this.Invoke("AllocateMaximumPackageIPAddresses", new object[] { + packageId, + groupName, + pool}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginAllocateMaximumPackageIPAddresses(int packageId, string groupName, IPAddressPool pool, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AllocateMaximumPackageIPAddresses", new object[] { + packageId, + groupName, + pool}, callback, asyncState); + } + + /// + public ResultObject EndAllocateMaximumPackageIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void AllocateMaximumPackageIPAddressesAsync(int packageId, string groupName, IPAddressPool pool) { + this.AllocateMaximumPackageIPAddressesAsync(packageId, groupName, pool, null); + } + + /// + public void AllocateMaximumPackageIPAddressesAsync(int packageId, string groupName, IPAddressPool pool, object userState) { + if ((this.AllocateMaximumPackageIPAddressesOperationCompleted == null)) { + this.AllocateMaximumPackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAllocateMaximumPackageIPAddressesOperationCompleted); + } + this.InvokeAsync("AllocateMaximumPackageIPAddresses", new object[] { + packageId, + groupName, + pool}, this.AllocateMaximumPackageIPAddressesOperationCompleted, userState); + } + + private void OnAllocateMaximumPackageIPAddressesOperationCompleted(object arg) { + if ((this.AllocateMaximumPackageIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AllocateMaximumPackageIPAddressesCompleted(this, new AllocateMaximumPackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeallocatePackageIPAddresses", 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 DeallocatePackageIPAddresses(int packageId, int[] addressId) { + object[] results = this.Invoke("DeallocatePackageIPAddresses", new object[] { + packageId, + addressId}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginDeallocatePackageIPAddresses(int packageId, int[] addressId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeallocatePackageIPAddresses", new object[] { + packageId, + addressId}, callback, asyncState); + } + + /// + public ResultObject EndDeallocatePackageIPAddresses(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void DeallocatePackageIPAddressesAsync(int packageId, int[] addressId) { + this.DeallocatePackageIPAddressesAsync(packageId, addressId, null); + } + + /// + public void DeallocatePackageIPAddressesAsync(int packageId, int[] addressId, object userState) { + if ((this.DeallocatePackageIPAddressesOperationCompleted == null)) { + this.DeallocatePackageIPAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeallocatePackageIPAddressesOperationCompleted); + } + this.InvokeAsync("DeallocatePackageIPAddresses", new object[] { + packageId, + addressId}, this.DeallocatePackageIPAddressesOperationCompleted, userState); + } + + private void OnDeallocatePackageIPAddressesOperationCompleted(object arg) { + if ((this.DeallocatePackageIPAddressesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeallocatePackageIPAddressesCompleted(this, new DeallocatePackageIPAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetClusters", 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 ClusterInfo[] GetClusters() { + object[] results = this.Invoke("GetClusters", new object[0]); + return ((ClusterInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetClusters(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetClusters", new object[0], callback, asyncState); + } + + /// + public ClusterInfo[] EndGetClusters(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ClusterInfo[])(results[0])); + } + + /// + public void GetClustersAsync() { + this.GetClustersAsync(null); + } + + /// + public void GetClustersAsync(object userState) { + if ((this.GetClustersOperationCompleted == null)) { + this.GetClustersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetClustersOperationCompleted); + } + this.InvokeAsync("GetClusters", new object[0], this.GetClustersOperationCompleted, userState); + } + + private void OnGetClustersOperationCompleted(object arg) { + if ((this.GetClustersCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetClustersCompleted(this, new GetClustersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddCluster", 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 AddCluster(ClusterInfo cluster) { + object[] results = this.Invoke("AddCluster", new object[] { + cluster}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginAddCluster(ClusterInfo cluster, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AddCluster", new object[] { + cluster}, callback, asyncState); + } + + /// + public int EndAddCluster(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void AddClusterAsync(ClusterInfo cluster) { + this.AddClusterAsync(cluster, null); + } + + /// + public void AddClusterAsync(ClusterInfo cluster, object userState) { + if ((this.AddClusterOperationCompleted == null)) { + this.AddClusterOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddClusterOperationCompleted); + } + this.InvokeAsync("AddCluster", new object[] { + cluster}, this.AddClusterOperationCompleted, userState); + } + + private void OnAddClusterOperationCompleted(object arg) { + if ((this.AddClusterCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AddClusterCompleted(this, new AddClusterCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteCluster", 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 DeleteCluster(int clusterId) { + object[] results = this.Invoke("DeleteCluster", new object[] { + clusterId}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginDeleteCluster(int clusterId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteCluster", new object[] { + clusterId}, callback, asyncState); + } + + /// + public int EndDeleteCluster(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void DeleteClusterAsync(int clusterId) { + this.DeleteClusterAsync(clusterId, null); + } + + /// + public void DeleteClusterAsync(int clusterId, object userState) { + if ((this.DeleteClusterOperationCompleted == null)) { + this.DeleteClusterOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteClusterOperationCompleted); + } + this.InvokeAsync("DeleteCluster", new object[] { + clusterId}, this.DeleteClusterOperationCompleted, userState); + } + + private void OnDeleteClusterOperationCompleted(object arg) { + if ((this.DeleteClusterCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteClusterCompleted(this, new DeleteClusterCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByService", 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 System.Data.DataSet GetRawDnsRecordsByService(int serviceId) { + object[] results = this.Invoke("GetRawDnsRecordsByService", new object[] { + serviceId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawDnsRecordsByService(int serviceId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawDnsRecordsByService", new object[] { + serviceId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawDnsRecordsByService(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawDnsRecordsByServiceAsync(int serviceId) { + this.GetRawDnsRecordsByServiceAsync(serviceId, null); + } + + /// + public void GetRawDnsRecordsByServiceAsync(int serviceId, object userState) { + if ((this.GetRawDnsRecordsByServiceOperationCompleted == null)) { + this.GetRawDnsRecordsByServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByServiceOperationCompleted); + } + this.InvokeAsync("GetRawDnsRecordsByService", new object[] { + serviceId}, this.GetRawDnsRecordsByServiceOperationCompleted, userState); + } + + private void OnGetRawDnsRecordsByServiceOperationCompleted(object arg) { + if ((this.GetRawDnsRecordsByServiceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawDnsRecordsByServiceCompleted(this, new GetRawDnsRecordsByServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByServer", 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 System.Data.DataSet GetRawDnsRecordsByServer(int serverId) { + object[] results = this.Invoke("GetRawDnsRecordsByServer", new object[] { + serverId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawDnsRecordsByServer(int serverId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawDnsRecordsByServer", new object[] { + serverId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawDnsRecordsByServer(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawDnsRecordsByServerAsync(int serverId) { + this.GetRawDnsRecordsByServerAsync(serverId, null); + } + + /// + public void GetRawDnsRecordsByServerAsync(int serverId, object userState) { + if ((this.GetRawDnsRecordsByServerOperationCompleted == null)) { + this.GetRawDnsRecordsByServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByServerOperationCompleted); + } + this.InvokeAsync("GetRawDnsRecordsByServer", new object[] { + serverId}, this.GetRawDnsRecordsByServerOperationCompleted, userState); + } + + private void OnGetRawDnsRecordsByServerOperationCompleted(object arg) { + if ((this.GetRawDnsRecordsByServerCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawDnsRecordsByServerCompleted(this, new GetRawDnsRecordsByServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByPackage", 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 System.Data.DataSet GetRawDnsRecordsByPackage(int packageId) { + object[] results = this.Invoke("GetRawDnsRecordsByPackage", new object[] { + packageId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawDnsRecordsByPackage(int packageId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawDnsRecordsByPackage", new object[] { + packageId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawDnsRecordsByPackage(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawDnsRecordsByPackageAsync(int packageId) { + this.GetRawDnsRecordsByPackageAsync(packageId, null); + } + + /// + public void GetRawDnsRecordsByPackageAsync(int packageId, object userState) { + if ((this.GetRawDnsRecordsByPackageOperationCompleted == null)) { + this.GetRawDnsRecordsByPackageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByPackageOperationCompleted); + } + this.InvokeAsync("GetRawDnsRecordsByPackage", new object[] { + packageId}, this.GetRawDnsRecordsByPackageOperationCompleted, userState); + } + + private void OnGetRawDnsRecordsByPackageOperationCompleted(object arg) { + if ((this.GetRawDnsRecordsByPackageCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawDnsRecordsByPackageCompleted(this, new GetRawDnsRecordsByPackageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsRecordsByGroup", 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 System.Data.DataSet GetRawDnsRecordsByGroup(int groupId) { + object[] results = this.Invoke("GetRawDnsRecordsByGroup", new object[] { + groupId}); + return ((System.Data.DataSet)(results[0])); + } + + /// + public System.IAsyncResult BeginGetRawDnsRecordsByGroup(int groupId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetRawDnsRecordsByGroup", new object[] { + groupId}, callback, asyncState); + } + + /// + public System.Data.DataSet EndGetRawDnsRecordsByGroup(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((System.Data.DataSet)(results[0])); + } + + /// + public void GetRawDnsRecordsByGroupAsync(int groupId) { + this.GetRawDnsRecordsByGroupAsync(groupId, null); + } + + /// + public void GetRawDnsRecordsByGroupAsync(int groupId, object userState) { + if ((this.GetRawDnsRecordsByGroupOperationCompleted == null)) { + this.GetRawDnsRecordsByGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsRecordsByGroupOperationCompleted); + } + this.InvokeAsync("GetRawDnsRecordsByGroup", new object[] { + groupId}, this.GetRawDnsRecordsByGroupOperationCompleted, userState); + } + + private void OnGetRawDnsRecordsByGroupOperationCompleted(object arg) { + if ((this.GetRawDnsRecordsByGroupCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetRawDnsRecordsByGroupCompleted(this, new GetRawDnsRecordsByGroupCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecordsByService", 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 GlobalDnsRecord[] GetDnsRecordsByService(int serviceId) { + object[] results = this.Invoke("GetDnsRecordsByService", new object[] { + serviceId}); + return ((GlobalDnsRecord[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetDnsRecordsByService(int serviceId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetDnsRecordsByService", new object[] { + serviceId}, callback, asyncState); + } + + /// + public GlobalDnsRecord[] EndGetDnsRecordsByService(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((GlobalDnsRecord[])(results[0])); + } + + /// + public void GetDnsRecordsByServiceAsync(int serviceId) { + this.GetDnsRecordsByServiceAsync(serviceId, null); + } + + /// + public void GetDnsRecordsByServiceAsync(int serviceId, object userState) { + if ((this.GetDnsRecordsByServiceOperationCompleted == null)) { + this.GetDnsRecordsByServiceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDnsRecordsByServiceOperationCompleted); + } + this.InvokeAsync("GetDnsRecordsByService", new object[] { + serviceId}, this.GetDnsRecordsByServiceOperationCompleted, userState); + } + + private void OnGetDnsRecordsByServiceOperationCompleted(object arg) { + if ((this.GetDnsRecordsByServiceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetDnsRecordsByServiceCompleted(this, new GetDnsRecordsByServiceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDnsRecordsByServerCompletedEventHandler(object sender, GetDnsRecordsByServerCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDnsRecordsByServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDnsRecordsByServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public GlobalDnsRecord[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((GlobalDnsRecord[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDnsRecordsByPackageCompletedEventHandler(object sender, GetDnsRecordsByPackageCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDnsRecordsByPackageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDnsRecordsByPackageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public GlobalDnsRecord[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((GlobalDnsRecord[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDnsRecordsByGroupCompletedEventHandler(object sender, GetDnsRecordsByGroupCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDnsRecordsByGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDnsRecordsByGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public GlobalDnsRecord[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((GlobalDnsRecord[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDnsRecordCompletedEventHandler(object sender, GetDnsRecordCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public GlobalDnsRecord Result { + get { + this.RaiseExceptionIfNecessary(); + return ((GlobalDnsRecord)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void AddDnsRecordCompletedEventHandler(object sender, AddDnsRecordCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class AddDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal AddDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UpdateDnsRecordCompletedEventHandler(object sender, UpdateDnsRecordCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class UpdateDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal UpdateDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteDnsRecordCompletedEventHandler(object sender, DeleteDnsRecordCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DeleteDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DeleteDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDomainsCompletedEventHandler(object sender, GetDomainsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public DomainInfo[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((DomainInfo[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDomainsByDomainIdCompletedEventHandler(object sender, GetDomainsByDomainIdCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDomainsByDomainIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDomainsByDomainIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public DomainInfo[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((DomainInfo[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetMyDomainsCompletedEventHandler(object sender, GetMyDomainsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetMyDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetMyDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public DomainInfo[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((DomainInfo[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetResellerDomainsCompletedEventHandler(object sender, GetResellerDomainsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetResellerDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetResellerDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public DomainInfo[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((DomainInfo[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDomainsPagedCompletedEventHandler(object sender, GetDomainsPagedCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDomainsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDomainsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public System.Data.DataSet Result { + get { + this.RaiseExceptionIfNecessary(); + return ((System.Data.DataSet)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDomainCompletedEventHandler(object sender, GetDomainCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public DomainInfo Result { + get { + this.RaiseExceptionIfNecessary(); + return ((DomainInfo)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void AddDomainCompletedEventHandler(object sender, AddDomainCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class AddDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal AddDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void AddDomainWithProvisioningCompletedEventHandler(object sender, AddDomainWithProvisioningCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class AddDomainWithProvisioningCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal AddDomainWithProvisioningCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UpdateDomainCompletedEventHandler(object sender, UpdateDomainCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class UpdateDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal UpdateDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteDomainCompletedEventHandler(object sender, DeleteDomainCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DeleteDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DeleteDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DetachDomainCompletedEventHandler(object sender, DetachDomainCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DetachDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DetachDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void EnableDomainDnsCompletedEventHandler(object sender, EnableDomainDnsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class EnableDomainDnsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal EnableDomainDnsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DisableDomainDnsCompletedEventHandler(object sender, DisableDomainDnsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DisableDomainDnsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DisableDomainDnsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CreateDomainInstantAliasCompletedEventHandler(object sender, CreateDomainInstantAliasCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class CreateDomainInstantAliasCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal CreateDomainInstantAliasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteDomainInstantAliasCompletedEventHandler(object sender, DeleteDomainInstantAliasCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DeleteDomainInstantAliasCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DeleteDomainInstantAliasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDnsZoneRecordsCompletedEventHandler(object sender, GetDnsZoneRecordsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDnsZoneRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetDnsZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public DnsRecord[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((DnsRecord[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetRawDnsZoneRecordsCompletedEventHandler(object sender, GetRawDnsZoneRecordsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetRawDnsZoneRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetRawDnsZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public System.Data.DataSet Result { + get { + this.RaiseExceptionIfNecessary(); + return ((System.Data.DataSet)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void AddDnsZoneRecordCompletedEventHandler(object sender, AddDnsZoneRecordCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class AddDnsZoneRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal AddDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UpdateDnsZoneRecordCompletedEventHandler(object sender, UpdateDnsZoneRecordCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class UpdateDnsZoneRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal UpdateDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteDnsZoneRecordCompletedEventHandler(object sender, DeleteDnsZoneRecordCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DeleteDnsZoneRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DeleteDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetTerminalServicesSessionsCompletedEventHandler(object sender, GetTerminalServicesSessionsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetTerminalServicesSessionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetTerminalServicesSessionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public TerminalSession[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((TerminalSession[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CloseTerminalServicesSessionCompletedEventHandler(object sender, CloseTerminalServicesSessionCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class CloseTerminalServicesSessionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal CloseTerminalServicesSessionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWindowsProcessesCompletedEventHandler(object sender, GetWindowsProcessesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWindowsProcessesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWindowsProcessesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WindowsProcess[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WindowsProcess[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void TerminateWindowsProcessCompletedEventHandler(object sender, TerminateWindowsProcessCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class TerminateWindowsProcessCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal TerminateWindowsProcessCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CheckLoadUserProfileCompletedEventHandler(object sender, CheckLoadUserProfileCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class CheckLoadUserProfileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal CheckLoadUserProfileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public bool Result { + get { + this.RaiseExceptionIfNecessary(); + return ((bool)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void EnableLoadUserProfileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void InitWPIFeedsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWPITabsCompletedEventHandler(object sender, GetWPITabsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWPITabsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWPITabsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WPITab[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WPITab[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWPIKeywordsCompletedEventHandler(object sender, GetWPIKeywordsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWPIKeywordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWPIKeywordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WPIKeyword[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WPIKeyword[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWPIProductsCompletedEventHandler(object sender, GetWPIProductsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWPIProductsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWPIProductsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WPIProduct[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WPIProduct[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWPIProductsFilteredCompletedEventHandler(object sender, GetWPIProductsFilteredCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWPIProductsFilteredCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWPIProductsFilteredCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WPIProduct[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WPIProduct[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWPIProductByIdCompletedEventHandler(object sender, GetWPIProductByIdCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWPIProductByIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWPIProductByIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WPIProduct Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WPIProduct)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWPIProductsWithDependenciesCompletedEventHandler(object sender, GetWPIProductsWithDependenciesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWPIProductsWithDependenciesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWPIProductsWithDependenciesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WPIProduct[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WPIProduct[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void InstallWPIProductsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CancelInstallWPIProductsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWPIStatusCompletedEventHandler(object sender, GetWPIStatusCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWPIStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWPIStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public string Result { + get { + this.RaiseExceptionIfNecessary(); + return ((string)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void WpiGetLogFileDirectoryCompletedEventHandler(object sender, WpiGetLogFileDirectoryCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class WpiGetLogFileDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal WpiGetLogFileDirectoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public string Result { + get { + this.RaiseExceptionIfNecessary(); + return ((string)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void WpiGetLogsInDirectoryCompletedEventHandler(object sender, WpiGetLogsInDirectoryCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class WpiGetLogsInDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal WpiGetLogsInDirectoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public SettingPair[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((SettingPair[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetWindowsServicesCompletedEventHandler(object sender, GetWindowsServicesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWindowsServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWindowsServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WindowsService[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WindowsService[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void ChangeWindowsServiceStatusCompletedEventHandler(object sender, ChangeWindowsServiceStatusCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class ChangeWindowsServiceStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal ChangeWindowsServiceStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetLogNamesCompletedEventHandler(object sender, GetLogNamesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetLogNamesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetLogNamesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public string[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((string[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetLogEntriesCompletedEventHandler(object sender, GetLogEntriesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetLogEntriesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetLogEntriesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public SystemLogEntry[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((SystemLogEntry[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetLogEntriesPagedCompletedEventHandler(object sender, GetLogEntriesPagedCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetLogEntriesPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetLogEntriesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public SystemLogEntriesPaged Result { + get { + this.RaiseExceptionIfNecessary(); + return ((SystemLogEntriesPaged)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void ClearLogCompletedEventHandler(object sender, ClearLogCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class ClearLogCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal ClearLogCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void RebootSystemCompletedEventHandler(object sender, RebootSystemCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class RebootSystemCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal RebootSystemCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetAllServersCompletedEventHandler(object sender, GetAllServersCompletedEventArgs e); @@ -7380,1268 +8623,4 @@ namespace WebsitePanel.EnterpriseServer { } } } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDnsRecordsByServerCompletedEventHandler(object sender, GetDnsRecordsByServerCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDnsRecordsByServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDnsRecordsByServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public GlobalDnsRecord[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((GlobalDnsRecord[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDnsRecordsByPackageCompletedEventHandler(object sender, GetDnsRecordsByPackageCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDnsRecordsByPackageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDnsRecordsByPackageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public GlobalDnsRecord[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((GlobalDnsRecord[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDnsRecordsByGroupCompletedEventHandler(object sender, GetDnsRecordsByGroupCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDnsRecordsByGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDnsRecordsByGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public GlobalDnsRecord[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((GlobalDnsRecord[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDnsRecordCompletedEventHandler(object sender, GetDnsRecordCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public GlobalDnsRecord Result { - get { - this.RaiseExceptionIfNecessary(); - return ((GlobalDnsRecord)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void AddDnsRecordCompletedEventHandler(object sender, AddDnsRecordCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal AddDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateDnsRecordCompletedEventHandler(object sender, UpdateDnsRecordCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal UpdateDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteDnsRecordCompletedEventHandler(object sender, DeleteDnsRecordCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteDnsRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DeleteDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDomainsCompletedEventHandler(object sender, GetDomainsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public DomainInfo[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((DomainInfo[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDomainsByDomainIdCompletedEventHandler(object sender, GetDomainsByDomainIdCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDomainsByDomainIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDomainsByDomainIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public DomainInfo[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((DomainInfo[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetMyDomainsCompletedEventHandler(object sender, GetMyDomainsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMyDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetMyDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public DomainInfo[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((DomainInfo[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetResellerDomainsCompletedEventHandler(object sender, GetResellerDomainsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetResellerDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetResellerDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public DomainInfo[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((DomainInfo[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDomainsPagedCompletedEventHandler(object sender, GetDomainsPagedCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDomainsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDomainsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public System.Data.DataSet Result { - get { - this.RaiseExceptionIfNecessary(); - return ((System.Data.DataSet)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDomainCompletedEventHandler(object sender, GetDomainCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public DomainInfo Result { - get { - this.RaiseExceptionIfNecessary(); - return ((DomainInfo)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void AddDomainCompletedEventHandler(object sender, AddDomainCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal AddDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void AddDomainWithProvisioningCompletedEventHandler(object sender, AddDomainWithProvisioningCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddDomainWithProvisioningCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal AddDomainWithProvisioningCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateDomainCompletedEventHandler(object sender, UpdateDomainCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal UpdateDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteDomainCompletedEventHandler(object sender, DeleteDomainCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DeleteDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DetachDomainCompletedEventHandler(object sender, DetachDomainCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DetachDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DetachDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void EnableDomainDnsCompletedEventHandler(object sender, EnableDomainDnsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class EnableDomainDnsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal EnableDomainDnsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DisableDomainDnsCompletedEventHandler(object sender, DisableDomainDnsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DisableDomainDnsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DisableDomainDnsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateDomainInstantAliasCompletedEventHandler(object sender, CreateDomainInstantAliasCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateDomainInstantAliasCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal CreateDomainInstantAliasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteDomainInstantAliasCompletedEventHandler(object sender, DeleteDomainInstantAliasCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteDomainInstantAliasCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DeleteDomainInstantAliasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDnsZoneRecordsCompletedEventHandler(object sender, GetDnsZoneRecordsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDnsZoneRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDnsZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public DnsRecord[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((DnsRecord[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetRawDnsZoneRecordsCompletedEventHandler(object sender, GetRawDnsZoneRecordsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawDnsZoneRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetRawDnsZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public System.Data.DataSet Result { - get { - this.RaiseExceptionIfNecessary(); - return ((System.Data.DataSet)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void AddDnsZoneRecordCompletedEventHandler(object sender, AddDnsZoneRecordCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddDnsZoneRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal AddDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateDnsZoneRecordCompletedEventHandler(object sender, UpdateDnsZoneRecordCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateDnsZoneRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal UpdateDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteDnsZoneRecordCompletedEventHandler(object sender, DeleteDnsZoneRecordCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteDnsZoneRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DeleteDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetTerminalServicesSessionsCompletedEventHandler(object sender, GetTerminalServicesSessionsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetTerminalServicesSessionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetTerminalServicesSessionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public TerminalSession[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((TerminalSession[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CloseTerminalServicesSessionCompletedEventHandler(object sender, CloseTerminalServicesSessionCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CloseTerminalServicesSessionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal CloseTerminalServicesSessionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWindowsProcessesCompletedEventHandler(object sender, GetWindowsProcessesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWindowsProcessesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWindowsProcessesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WindowsProcess[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WindowsProcess[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void TerminateWindowsProcessCompletedEventHandler(object sender, TerminateWindowsProcessCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class TerminateWindowsProcessCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal TerminateWindowsProcessCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CheckLoadUserProfileCompletedEventHandler(object sender, CheckLoadUserProfileCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CheckLoadUserProfileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal CheckLoadUserProfileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public bool Result { - get { - this.RaiseExceptionIfNecessary(); - return ((bool)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void EnableLoadUserProfileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void InitWPIFeedsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWPITabsCompletedEventHandler(object sender, GetWPITabsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWPITabsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWPITabsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WPITab[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WPITab[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWPIKeywordsCompletedEventHandler(object sender, GetWPIKeywordsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWPIKeywordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWPIKeywordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WPIKeyword[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WPIKeyword[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWPIProductsCompletedEventHandler(object sender, GetWPIProductsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWPIProductsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWPIProductsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WPIProduct[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WPIProduct[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWPIProductsFilteredCompletedEventHandler(object sender, GetWPIProductsFilteredCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWPIProductsFilteredCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWPIProductsFilteredCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WPIProduct[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WPIProduct[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWPIProductByIdCompletedEventHandler(object sender, GetWPIProductByIdCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWPIProductByIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWPIProductByIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WPIProduct Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WPIProduct)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWPIProductsWithDependenciesCompletedEventHandler(object sender, GetWPIProductsWithDependenciesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWPIProductsWithDependenciesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWPIProductsWithDependenciesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WPIProduct[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WPIProduct[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void InstallWPIProductsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CancelInstallWPIProductsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWPIStatusCompletedEventHandler(object sender, GetWPIStatusCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWPIStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWPIStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void WpiGetLogFileDirectoryCompletedEventHandler(object sender, WpiGetLogFileDirectoryCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class WpiGetLogFileDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal WpiGetLogFileDirectoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void WpiGetLogsInDirectoryCompletedEventHandler(object sender, WpiGetLogsInDirectoryCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class WpiGetLogsInDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal WpiGetLogsInDirectoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SettingPair[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SettingPair[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetWindowsServicesCompletedEventHandler(object sender, GetWindowsServicesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetWindowsServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetWindowsServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public WindowsService[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((WindowsService[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void ChangeWindowsServiceStatusCompletedEventHandler(object sender, ChangeWindowsServiceStatusCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class ChangeWindowsServiceStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal ChangeWindowsServiceStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetLogNamesCompletedEventHandler(object sender, GetLogNamesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetLogNamesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetLogNamesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetLogEntriesCompletedEventHandler(object sender, GetLogEntriesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetLogEntriesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetLogEntriesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemLogEntry[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemLogEntry[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetLogEntriesPagedCompletedEventHandler(object sender, GetLogEntriesPagedCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetLogEntriesPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetLogEntriesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemLogEntriesPaged Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemLogEntriesPaged)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void ClearLogCompletedEventHandler(object sender, ClearLogCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class ClearLogCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal ClearLogCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void RebootSystemCompletedEventHandler(object sender, RebootSystemCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RebootSystemCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal RebootSystemCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs index 3bc214d1..822224b6 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs @@ -3245,23 +3245,25 @@ namespace WebsitePanel.EnterpriseServer } - public static void AllocatePackageIPAddresses(int packageId, string xml) + public static void AllocatePackageIPAddresses(int packageId, int orgId, string xml) { SqlParameter[] param = new[] { new SqlParameter("@PackageID", packageId), + new SqlParameter("@OrgID", orgId), new SqlParameter("@xml", xml) }; ExecuteLongNonQuery("AllocatePackageIPAddresses", param); } - public static IDataReader GetPackageIPAddresses(int packageId, int poolId, string filterColumn, string filterValue, + public static IDataReader GetPackageIPAddresses(int packageId, int orgId, int poolId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) { IDataReader reader = SqlHelper.ExecuteReader(ConnectionString, CommandType.StoredProcedure, "GetPackageIPAddresses", new SqlParameter("@PackageID", packageId), + new SqlParameter("@OrgID", orgId), new SqlParameter("@PoolId", poolId), new SqlParameter("@FilterColumn", VerifyColumnName(filterColumn)), new SqlParameter("@FilterValue", VerifyColumnValue(filterValue)), @@ -3306,12 +3308,13 @@ namespace WebsitePanel.EnterpriseServer #endregion #region VPS - External Network Adapter - public static IDataReader GetPackageUnassignedIPAddresses(int actorId, int packageId, int poolId) + public static IDataReader GetPackageUnassignedIPAddresses(int actorId, int packageId, int orgId, int poolId) { return SqlHelper.ExecuteReader(ConnectionString, CommandType.StoredProcedure, "GetPackageUnassignedIPAddresses", new SqlParameter("@ActorID", actorId), new SqlParameter("@PackageID", packageId), + new SqlParameter("@OrgID", orgId), new SqlParameter("@PoolId", poolId)); } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/CRMController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/CRMController.cs index ed6cb8d0..b0a415dd 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/CRMController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/CRMController.cs @@ -200,6 +200,32 @@ namespace WebsitePanel.EnterpriseServer return res; } + private static string GetProviderProperty(int organizationServiceId, string property) + { + + Organizations orgProxy = new Organizations(); + + ServiceProviderProxy.Init(orgProxy, organizationServiceId); + + string[] organizationSettings = orgProxy.ServiceProviderSettingsSoapHeaderValue.Settings; + + string value = string.Empty; + foreach (string str in organizationSettings) + { + string[] props = str.Split('='); + if (props.Length == 2) + { + if (props[0].ToLower() == property) + { + value = props[1]; + break; + } + } + } + + return value; + } + public static OrganizationResult CreateOrganization(int organizationId, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string regionName, int userId, string collation) { OrganizationResult res = StartTask("CRM", "CREATE_ORGANIZATION"); @@ -239,6 +265,10 @@ namespace WebsitePanel.EnterpriseServer return res; } + + + int serviceid = PackageController.GetPackageServiceId(org.PackageId, ResourceGroups.HostedOrganizations); + string rootOU = GetProviderProperty(serviceid, "rootou"); org.CrmAdministratorId = user.AccountId; org.CrmCurrency = @@ -248,7 +278,10 @@ namespace WebsitePanel.EnterpriseServer org.CrmOrganizationId = orgId; OrganizationResult serverRes = - crm.CreateOrganization(orgId, org.OrganizationId, org.Name, baseCurrencyCode, baseCurrencyName, + crm.CreateOrganization(orgId, org.OrganizationId, org.Name, + org.DefaultDomain, + org.OrganizationId + "." + rootOU, + baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, user.SamAccountName, user.FirstName, user.LastName, user.PrimaryEmailAddress, collation); diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Servers/ServerController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Servers/ServerController.cs index 24711133..248730f1 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Servers/ServerController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Servers/ServerController.cs @@ -1167,13 +1167,13 @@ namespace WebsitePanel.EnterpriseServer #endregion #region Package IP Addresses - public static PackageIPAddressesPaged GetPackageIPAddresses(int packageId, IPAddressPool pool, + public static PackageIPAddressesPaged GetPackageIPAddresses(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) { PackageIPAddressesPaged result = new PackageIPAddressesPaged(); // get reader - IDataReader reader = DataProvider.GetPackageIPAddresses(packageId, (int)pool, filterColumn, filterValue, sortColumn, startRow, maximumRows, recursive); + IDataReader reader = DataProvider.GetPackageIPAddresses(packageId, orgId, (int)pool, filterColumn, filterValue, sortColumn, startRow, maximumRows, recursive); // number of items = first data reader reader.Read(); @@ -1196,10 +1196,15 @@ namespace WebsitePanel.EnterpriseServer DataProvider.GetUnallottedIPAddresses(packageId, serviceId, (int)pool)); } - public static List GetPackageUnassignedIPAddresses(int packageId, IPAddressPool pool) + public static List GetPackageUnassignedIPAddresses(int packageId, int orgId, IPAddressPool pool) { return ObjectUtils.CreateListFromDataReader( - DataProvider.GetPackageUnassignedIPAddresses(SecurityContext.User.UserId, packageId, (int)pool)); + DataProvider.GetPackageUnassignedIPAddresses(SecurityContext.User.UserId, packageId, orgId, (int)pool)); + } + + public static List GetPackageUnassignedIPAddresses(int packageId, IPAddressPool pool) + { + return GetPackageUnassignedIPAddresses(packageId, 0, pool); } public static void AllocatePackageIPAddresses(int packageId, int[] addressId) @@ -1208,10 +1213,10 @@ namespace WebsitePanel.EnterpriseServer string xml = PrepareIPsXML(addressId); // save to database - DataProvider.AllocatePackageIPAddresses(packageId, xml); + DataProvider.AllocatePackageIPAddresses(packageId, 0, xml); } - public static ResultObject AllocatePackageIPAddresses(int packageId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId) + public static ResultObject AllocatePackageIPAddresses(int packageId, int orgId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId) { #region Check account and space statuses // create result object @@ -1288,7 +1293,7 @@ namespace WebsitePanel.EnterpriseServer // save to database try { - DataProvider.AllocatePackageIPAddresses(packageId, xml); + DataProvider.AllocatePackageIPAddresses(packageId, orgId, xml); } catch (Exception ex) { @@ -1335,7 +1340,7 @@ namespace WebsitePanel.EnterpriseServer } // allocate - return AllocatePackageIPAddresses(packageId, groupName, pool, + return AllocatePackageIPAddresses(packageId, 0, groupName, pool, true, number, new int[0]); } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs index 13e9059f..bde7c636 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs @@ -386,24 +386,24 @@ namespace WebsitePanel.EnterpriseServer } [WebMethod] - public PackageIPAddressesPaged GetPackageIPAddresses(int packageId, IPAddressPool pool, + public PackageIPAddressesPaged GetPackageIPAddresses(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) { - return ServerController.GetPackageIPAddresses(packageId, pool, + return ServerController.GetPackageIPAddresses(packageId, orgId, pool, filterColumn, filterValue, sortColumn, startRow, maximumRows, recursive); } [WebMethod] - public List GetPackageUnassignedIPAddresses(int packageId, IPAddressPool pool) + public List GetPackageUnassignedIPAddresses(int packageId, int orgId, IPAddressPool pool) { - return ServerController.GetPackageUnassignedIPAddresses(packageId, pool); + return ServerController.GetPackageUnassignedIPAddresses(packageId, orgId, pool); } [WebMethod] - public ResultObject AllocatePackageIPAddresses(int packageId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, + public ResultObject AllocatePackageIPAddresses(int packageId,int orgId, string groupName, IPAddressPool pool, bool allocateRandom, int addressesNumber, int[] addressId) { - return ServerController.AllocatePackageIPAddresses(packageId, groupName, pool, allocateRandom, + return ServerController.AllocatePackageIPAddresses(packageId, orgId, groupName, pool, allocateRandom, addressesNumber, addressId); } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs index 9d5bfab4..d99847d0 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/Common/Constants.cs @@ -58,6 +58,12 @@ namespace WebsitePanel.Providers.Common public const string AppRootDomain = "AppRootDomain"; + public const string OrganizationWebService = "OrganizationWebService"; + + public const string DiscoveryWebService = "DiscoveryWebService"; + + public const string DeploymentWebService = "DeploymentWebService"; + public const string UtilityPath = "UtilityPath"; public const string EnterpriseServer = "EnterpriseServer"; diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/CRMOrganizationStatistics.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/CRMOrganizationStatistics.cs index cabe1bed..1ad2f6e3 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/CRMOrganizationStatistics.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/CRMOrganizationStatistics.cs @@ -36,5 +36,14 @@ namespace WebsitePanel.Providers.HostedSolution public string CRMUserName { get; set; } public CRMUserAccessMode ClientAccessMode { get; set; } public bool CRMDisabled { get; set; } + + public int CRMUsersCount { get; set; } + public string AccountNumber { get; set; } + public string СRMOrganizationName { get; set; } + public int CRMUsersFullLicenceCount { get; set; } + public int CRMUsersReadOnlyLicenceCount { get; set; } + public int UsedSpace { get; set; } + public string UsageMonth { get; set; } + } } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ICRM.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ICRM.cs index 4a02c4ca..930a8081 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ICRM.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ICRM.cs @@ -35,6 +35,7 @@ namespace WebsitePanel.Providers.HostedSolution public interface ICRM { OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, + string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation); @@ -60,5 +61,8 @@ namespace WebsitePanel.Providers.HostedSolution CrmUserResult GetCrmUserById(Guid crmUserId, string orgName); ResultObject ChangeUserState(bool disable, string orgName, Guid crmUserId); + + long GetUsedSpace(Guid organizationId); + } } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Crm2011/CRMProvider2011.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Crm2011/CRMProvider2011.cs index 8da7c628..6855bfe2 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Crm2011/CRMProvider2011.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Crm2011/CRMProvider2011.cs @@ -11,6 +11,7 @@ using System.Security.Principal; using System.Security.Cryptography.X509Certificates; using System.Threading; using System.ServiceModel.Description; +using System.Text.RegularExpressions; using Microsoft.Win32; using WebsitePanel.Providers.Common; using WebsitePanel.Providers.ResultObjects; @@ -58,7 +59,9 @@ namespace WebsitePanel.Providers.HostedSolution { get { - string cRMServiceUrl = "https://" + ProviderSettings[Constants.AppRootDomain] + ":" + ProviderSettings[Constants.Port] + "/XRMDeployment/2011/Deployment.svc"; + string uri = ProviderSettings[Constants.DeploymentWebService]; + if (String.IsNullOrEmpty(uri)) uri = ProviderSettings[Constants.AppRootDomain]; + string cRMServiceUrl = "https://" + uri + ":" + ProviderSettings[Constants.Port] + "/XRMDeployment/2011/Deployment.svc"; return cRMServiceUrl; } } @@ -67,7 +70,9 @@ namespace WebsitePanel.Providers.HostedSolution { get { - string cRMDiscoveryUri = "https://" + ProviderSettings[Constants.AppRootDomain] + ":" + ProviderSettings[Constants.Port] + "/XRMServices/2011/Discovery.svc"; + string uri = ProviderSettings[Constants.DiscoveryWebService]; + if (String.IsNullOrEmpty(uri)) uri = ProviderSettings[Constants.AppRootDomain]; + string cRMDiscoveryUri = "https://" + uri + ":" + ProviderSettings[Constants.Port] + "/XRMServices/2011/Discovery.svc"; return cRMDiscoveryUri; } } @@ -174,6 +179,75 @@ namespace WebsitePanel.Providers.HostedSolution return res; } + public long GetUsedSpace(Guid organizationId) + { + Log.WriteStart("GetUsedSpace"); + long res = 0; + + string crmDatabaseName = "MSCRM_CONFIG"; + string databasename = ""; + + SqlConnection connection = null; + try + { + connection = new SqlConnection(); + connection.ConnectionString = + string.Format("Server={1};Initial Catalog={0};Integrated Security=SSPI", + crmDatabaseName, SqlServer); + + connection.Open(); + + string commandText = string.Format("SELECT DatabaseName FROM dbo.Organization where id = '{0}'", organizationId); + SqlCommand command = new SqlCommand(commandText, connection); + databasename = command.ExecuteScalar().ToString(); + + } + catch (Exception ex) + { + Log.WriteError(ex); + } + finally + { + if (connection != null) + connection.Dispose(); + } + + try + { + connection = new SqlConnection(); + connection.ConnectionString = + string.Format("Server={1};Initial Catalog={0};Integrated Security=SSPI", + databasename, SqlServer); + + connection.Open(); + + string commandText = "SELECT ((dbsize + logsize) * 8192 ) size FROM " + + "( " + + "SELECT SUM(CONVERT(BIGINT,CASE WHEN status & 64 = 0 THEN size ELSE 0 END)) dbsize " + + ", SUM(CONVERT(BIGINT,CASE WHEN status & 64 <> 0 THEN size ELSE 0 END)) logsize " + + "FROM dbo.sysfiles " + + ") big"; + + SqlCommand command = new SqlCommand(commandText, connection); + res = (long)command.ExecuteScalar(); + + } + catch (Exception ex) + { + Log.WriteError(ex); + } + finally + { + if (connection != null) + connection.Dispose(); + + } + + Log.WriteEnd("GetUsedSpace"); + return res; + + } + private bool CheckOrganizationUnique(string databaseName, string orgName) { Log.WriteStart("CheckOrganizationUnique"); @@ -319,17 +393,39 @@ namespace WebsitePanel.Providers.HostedSolution return retOrganization; } - public OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) + public OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { - return CreateOrganizationInternal(organizationId, organizationUniqueName, organizationFriendlyName, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, initialUserDomainName, initialUserFirstName, initialUserLastName, initialUserPrimaryEmail, organizationCollation); + return CreateOrganizationInternal(organizationId, organizationUniqueName, organizationFriendlyName, organizationDomainName, ou , baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, initialUserDomainName, initialUserFirstName, initialUserLastName, initialUserPrimaryEmail, organizationCollation); } - const string CRMSysAdminRoleStr = "Ñèñòåìíûé àäìèíèñòðàòîð;System Administrator"; + const string CRMSysAdminRoleStr = "Системный администратор;System Administrator"; - internal OrganizationResult CreateOrganizationInternal(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) + internal OrganizationResult CreateOrganizationInternal(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { + OrganizationResult ret = StartLog("CreateOrganizationInternal"); + organizationUniqueName = Regex.Replace(organizationUniqueName, @"[^\dA-Za-z]", "-", RegexOptions.Compiled); + + // calculate UserRootPath + string ldapstr = ""; + + string[] ouItems = ou.Split('.'); + foreach (string ouItem in ouItems) + { + if (ldapstr.Length != 0) ldapstr += ","; + ldapstr += "OU=" + ouItem; + } + + string rootDomain = ServerSettings.ADRootDomain; + string[] domainItems = rootDomain.Split('.'); + foreach (string domainItem in domainItems) + ldapstr += ",DC=" + domainItem; + + ldapstr = @"LDAP://" + rootDomain + "/" + ldapstr; + + + if (organizationId == Guid.Empty) throw new ArgumentException("OrganizationId is Guid.Empty"); @@ -362,6 +458,8 @@ namespace WebsitePanel.Providers.HostedSolution Uri serviceUrl = new Uri(CRMServiceUrl); DeploymentServiceClient deploymentService = Microsoft.Xrm.Sdk.Deployment.Proxy.ProxyClientHelper.CreateClient(serviceUrl); + if (!String.IsNullOrEmpty(UserName)) + deploymentService.ClientCredentials.Windows.ClientCredential = new NetworkCredential(UserName, Password); Microsoft.Xrm.Sdk.Deployment.Organization org = new Microsoft.Xrm.Sdk.Deployment.Organization { @@ -397,9 +495,11 @@ namespace WebsitePanel.Providers.HostedSolution Microsoft.Xrm.Sdk.Deployment.OrganizationState OperationState = Microsoft.Xrm.Sdk.Deployment.OrganizationState.Pending; + int timeout = 30000; + do { - Thread.Sleep(30000); + Thread.Sleep(timeout); try { Microsoft.Xrm.Sdk.Deployment.Organization getorg @@ -413,16 +513,50 @@ namespace WebsitePanel.Providers.HostedSolution if (OperationState == Microsoft.Xrm.Sdk.Deployment.OrganizationState.Failed) throw new ArgumentException("Create organization failed."); - - try + // update UserRootPath setting + Microsoft.Xrm.Sdk.Deployment.ConfigurationEntity orgSettings = new Microsoft.Xrm.Sdk.Deployment.ConfigurationEntity { - OrganizationServiceProxy _serviceProxy = GetOrganizationProxy(organizationUniqueName); + Id = org.Id, + LogicalName = "Organization" + }; + orgSettings.Attributes = new Microsoft.Xrm.Sdk.Deployment.AttributeCollection(); + orgSettings.Attributes.Add(new KeyValuePair("UserRootPath", ldapstr)); + Microsoft.Xrm.Sdk.Deployment.UpdateAdvancedSettingsRequest reqUpdateSettings = new Microsoft.Xrm.Sdk.Deployment.UpdateAdvancedSettingsRequest + { + Entity = orgSettings + }; + Microsoft.Xrm.Sdk.Deployment.UpdateAdvancedSettingsResponse respUpdateSettings = (Microsoft.Xrm.Sdk.Deployment.UpdateAdvancedSettingsResponse) deploymentService.Execute(reqUpdateSettings); - string ldap = ""; + int tryTimeout = 30000; + int tryCount = 10; - Guid SysAdminGuid = RetrieveSystemUser(GetDomainName(initialUserDomainName), initialUserFirstName, initialUserLastName, CRMSysAdminRoleStr, _serviceProxy, ref ldap); + bool success = false; + int tryItem = 0; + + while (!success) + { + + try + { + Thread.Sleep(tryTimeout); + + OrganizationServiceProxy _serviceProxy = GetOrganizationProxy(organizationUniqueName, 0, 0); + + string ldap = ""; + + Guid SysAdminGuid = RetrieveSystemUser(GetDomainName(initialUserDomainName), initialUserFirstName, initialUserLastName, CRMSysAdminRoleStr, _serviceProxy, ref ldap); + + success = true; + + } + catch (Exception exc) + { + tryItem++; + if (tryItem >= tryCount) + success = true; + } } - catch { } + } catch (Exception ex) @@ -944,10 +1078,15 @@ namespace WebsitePanel.Providers.HostedSolution return false; } - int GetOrganizationProxyTryCount = 5; + int GetOrganizationProxyTryCount = 10; int GetOrganizationProxyTryTimeout = 30000; private OrganizationServiceProxy GetOrganizationProxy(string orgName) + { + return GetOrganizationProxy(orgName, GetOrganizationProxyTryCount, GetOrganizationProxyTryTimeout); + } + + private OrganizationServiceProxy GetOrganizationProxy(string orgName, int TryCount, int TryTimeout) { Uri OrganizationUri = GetOrganizationAddress(orgName); @@ -977,9 +1116,9 @@ namespace WebsitePanel.Providers.HostedSolution } catch (Exception exc) { - Thread.Sleep(GetOrganizationProxyTryTimeout); + Thread.Sleep(TryTimeout); tryItem++; - if (tryItem >= GetOrganizationProxyTryCount) + if (tryItem >= TryCount) { exception = exc; success = true; @@ -1013,7 +1152,6 @@ namespace WebsitePanel.Providers.HostedSolution return credentials; } - private DiscoveryServiceProxy GetDiscoveryProxy() { @@ -1041,7 +1179,20 @@ namespace WebsitePanel.Providers.HostedSolution protected virtual Uri GetOrganizationAddress(string orgName) { - string url = "https://" + ProviderSettings[Constants.AppRootDomain] + ":" + ProviderSettings[Constants.Port] + "/" + orgName + "/XRMServices/2011/Organization.svc"; + //string url = "https://" + ProviderSettings[Constants.AppRootDomain] + ":" + ProviderSettings[Constants.Port] + "/" + orgName + "/XRMServices/2011/Organization.svc"; + + string url; + + string organizationWebServiceUri = ProviderSettings[Constants.OrganizationWebService]; + + if (!String.IsNullOrEmpty(organizationWebServiceUri)) + { + url = "https://" + organizationWebServiceUri + ":" + ProviderSettings[Constants.Port] + "/" + orgName + "/XRMServices/2011/Organization.svc"; + } + else + { + url = "https://" + orgName + "." + ProviderSettings[Constants.IFDWebApplicationRootDomain] + ":" + ProviderSettings[Constants.Port] + "/XRMServices/2011/Organization.svc"; + } try { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/CRMProvider.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/CRMProvider.cs index 9f00bc92..7a551525 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/CRMProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/CRMProvider.cs @@ -328,7 +328,7 @@ namespace WebsitePanel.Providers.HostedSolution return retOrganization; } - public OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) + public OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { return CreateOrganizationInternal(organizationId, organizationUniqueName, organizationFriendlyName, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, initialUserDomainName, initialUserFirstName, initialUserLastName, initialUserPrimaryEmail, organizationCollation); } @@ -1545,6 +1545,11 @@ namespace WebsitePanel.Providers.HostedSolution return value.StartsWith("4."); } + public long GetUsedSpace(Guid organizationId) + { + return 0; + } + } } diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/CRMProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/CRMProxy.cs index 1d98cbc3..4939fae4 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/CRMProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/CRMProxy.cs @@ -1,55 +1,26 @@ -// Copyright (c) 2012, 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.3053 +// Runtime Version:2.0.50727.5466 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ -// -// This source code was auto-generated by wsdl, Version=2.0.50727.42. -// using WebsitePanel.Providers.Common; using WebsitePanel.Providers.HostedSolution; using WebsitePanel.Providers.ResultObjects; - +// +// This source code was auto-generated by wsdl, Version=2.0.50727.42. +// namespace WebsitePanel.Providers.CRM { - using System.Diagnostics; + using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; - using System.Xml.Serialization; + using System.Diagnostics; /// @@ -86,9 +57,11 @@ namespace WebsitePanel.Providers.CRM { private System.Threading.SendOrPostCallback ChangeUserStateOperationCompleted; + private System.Threading.SendOrPostCallback GetUsedSpaceOperationCompleted; + /// public CRM() { - this.Url = "http://192.168.0.133:9003/CRM.asmx"; + this.Url = "http://localhost:9004/CRM.asmx"; } /// @@ -127,14 +100,19 @@ namespace WebsitePanel.Providers.CRM { /// public event ChangeUserStateCompletedEventHandler ChangeUserStateCompleted; + /// + public event GetUsedSpaceCompletedEventHandler GetUsedSpaceCompleted; + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganization", 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 OrganizationResult CreateOrganization(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { + public OrganizationResult CreateOrganization(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { object[] results = this.Invoke("CreateOrganization", new object[] { organizationId, organizationUniqueName, organizationFriendlyName, + organizationDomainName, + ou, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, @@ -147,11 +125,13 @@ namespace WebsitePanel.Providers.CRM { } /// - public System.IAsyncResult BeginCreateOrganization(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateOrganization(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateOrganization", new object[] { organizationId, organizationUniqueName, organizationFriendlyName, + organizationDomainName, + ou, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, @@ -169,12 +149,12 @@ namespace WebsitePanel.Providers.CRM { } /// - public void CreateOrganizationAsync(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { - this.CreateOrganizationAsync(organizationId, organizationUniqueName, organizationFriendlyName, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, initialUserDomainName, initialUserFirstName, initialUserLastName, initialUserPrimaryEmail, organizationCollation, null); + public void CreateOrganizationAsync(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { + this.CreateOrganizationAsync(organizationId, organizationUniqueName, organizationFriendlyName, organizationDomainName, ou, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, initialUserDomainName, initialUserFirstName, initialUserLastName, initialUserPrimaryEmail, organizationCollation, null); } /// - public void CreateOrganizationAsync(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation, object userState) { + public void CreateOrganizationAsync(System.Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation, object userState) { if ((this.CreateOrganizationOperationCompleted == null)) { this.CreateOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationOperationCompleted); } @@ -182,6 +162,8 @@ namespace WebsitePanel.Providers.CRM { organizationId, organizationUniqueName, organizationFriendlyName, + organizationDomainName, + ou, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, @@ -691,33 +673,54 @@ namespace WebsitePanel.Providers.CRM { } } + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetUsedSpace", 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 long GetUsedSpace(System.Guid organizationId) { + object[] results = this.Invoke("GetUsedSpace", new object[] { + organizationId}); + return ((long)(results[0])); + } + + /// + public System.IAsyncResult BeginGetUsedSpace(System.Guid organizationId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetUsedSpace", new object[] { + organizationId}, callback, asyncState); + } + + /// + public long EndGetUsedSpace(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((long)(results[0])); + } + + /// + public void GetUsedSpaceAsync(System.Guid organizationId) { + this.GetUsedSpaceAsync(organizationId, null); + } + + /// + public void GetUsedSpaceAsync(System.Guid organizationId, object userState) { + if ((this.GetUsedSpaceOperationCompleted == null)) { + this.GetUsedSpaceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUsedSpaceOperationCompleted); + } + this.InvokeAsync("GetUsedSpace", new object[] { + organizationId}, this.GetUsedSpaceOperationCompleted, userState); + } + + private void OnGetUsedSpaceOperationCompleted(object arg) { + if ((this.GetUsedSpaceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetUsedSpaceCompleted(this, new GetUsedSpaceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } - - - - - - - - - - - - - - - - - - - - - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreateOrganizationCompletedEventHandler(object sender, CreateOrganizationCompletedEventArgs e); @@ -1029,4 +1032,30 @@ namespace WebsitePanel.Providers.CRM { } } } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetUsedSpaceCompletedEventHandler(object sender, GetUsedSpaceCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetUsedSpaceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetUsedSpaceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public long Result { + get { + this.RaiseExceptionIfNecessary(); + return ((long)(this.results[0])); + } + } + } } diff --git a/WebsitePanel/Sources/WebsitePanel.Server/CRM.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/CRM.asmx.cs index 7c8ff121..eba10cc1 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/CRM.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/CRM.asmx.cs @@ -55,9 +55,9 @@ namespace WebsitePanel.Server [WebMethod, SoapHeader("settings")] - public OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) + public OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName, string organizationDomainName, string ou, string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol, string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail, string organizationCollation) { - return CrmProvider.CreateOrganization(organizationId, organizationUniqueName, organizationFriendlyName, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, initialUserDomainName, initialUserFirstName, initialUserLastName, initialUserPrimaryEmail, organizationCollation); + return CrmProvider.CreateOrganization(organizationId, organizationUniqueName, organizationFriendlyName, organizationDomainName, ou, baseCurrencyCode, baseCurrencyName, baseCurrencySymbol, initialUserDomainName, initialUserFirstName, initialUserLastName, initialUserPrimaryEmail, organizationCollation); } [WebMethod, SoapHeader("settings")] @@ -126,5 +126,13 @@ namespace WebsitePanel.Server { return CrmProvider.ChangeUserState(disable, orgName, crmUserId); } + + [WebMethod, SoapHeader("settings")] + public long GetUsedSpace(Guid organizationId) + { + return CrmProvider.GetUsedSpace( organizationId); + } + + } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config index a58d6b8e..c9da1da8 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config @@ -277,7 +277,6 @@ - @@ -554,6 +553,8 @@ + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesForPCHelper.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesForPCHelper.cs index 4a112b07..4865bc51 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesForPCHelper.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesForPCHelper.cs @@ -108,7 +108,7 @@ namespace WebsitePanel.Portal public PackageIPAddress[] GetPackageIPAddresses(int packageId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int maximumRows, int startRowIndex) { - packageAddresses = ES.Services.Servers.GetPackageIPAddresses(packageId, pool, + packageAddresses = ES.Services.Servers.GetPackageIPAddresses(packageId, 0, pool, filterColumn, filterValue, sortColumn, startRowIndex, maximumRows, true); return packageAddresses.Items; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesHelper.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesHelper.cs index fd36cf23..61b45d66 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesHelper.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Helpers/VirtualMachinesHelper.cs @@ -130,7 +130,7 @@ namespace WebsitePanel.Portal public PackageIPAddress[] GetPackageIPAddresses(int packageId, IPAddressPool pool, string filterColumn, string filterValue, string sortColumn, int maximumRows, int startRowIndex) { - packageAddresses = ES.Services.Servers.GetPackageIPAddresses(packageId, pool, + packageAddresses = ES.Services.Servers.GetPackageIPAddresses(packageId, 0, pool, filterColumn, filterValue, sortColumn, startRowIndex, maximumRows, true); return packageAddresses.Items; } @@ -139,6 +139,19 @@ namespace WebsitePanel.Portal { return packageAddresses.Count; } + + public PackageIPAddress[] GetPackageIPAddresses(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue, + string sortColumn, int maximumRows, int startRowIndex) + { + packageAddresses = ES.Services.Servers.GetPackageIPAddresses(packageId, orgId, pool, + filterColumn, filterValue, sortColumn, startRowIndex, maximumRows, true); + return packageAddresses.Items; + } + + public int GetPackageIPAddressesCount(int packageId, int orgId, IPAddressPool pool, string filterColumn, string filterValue) + { + return packageAddresses.Count; + } #endregion #region Package Private IP Addresses diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx index 59698647..0a54f0d1 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx @@ -210,4 +210,7 @@ Folders + + Phone Numbers + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs index 5b0221bf..5a724a8b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs @@ -246,6 +246,9 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls if (Utils.CheckQouta(Quotas.LYNC_FEDERATION, cntx)) lyncGroup.MenuItems.Add(CreateMenuItem("LyncFederationDomains", "lync_federationdomains")); + if (Utils.CheckQouta(Quotas.LYNC_PHONE, cntx)) + lyncGroup.MenuItems.Add(CreateMenuItem("LyncPhoneNumbers", "lync_phonenumbers")); + groups.Add(lyncGroup); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncAddFederationDomain.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncAddFederationDomain.ascx.resx index e777f6ab..5eaa9432 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncAddFederationDomain.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncAddFederationDomain.ascx.resx @@ -135,4 +135,7 @@ * + + Lync Add Federation Domain + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/LyncAllocatePhoneNumbers.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncAllocatePhoneNumbers.ascx.resx similarity index 96% rename from WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/LyncAllocatePhoneNumbers.ascx.resx rename to WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncAllocatePhoneNumbers.ascx.resx index 1cf75868..118ce42a 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/LyncAllocatePhoneNumbers.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncAllocatePhoneNumbers.ascx.resx @@ -123,4 +123,7 @@ Quotas + + Phone Numbers + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncPhoneNumbers.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncPhoneNumbers.ascx.resx new file mode 100644 index 00000000..118ce42a --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/App_LocalResources/LyncPhoneNumbers.ascx.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Number of Phone Numbers: + + + Quotas + + + Phone Numbers + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx new file mode 100644 index 00000000..edb32c3f --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx @@ -0,0 +1,40 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LyncAllocatePhoneNumbers.ascx.cs" Inherits="WebsitePanel.Portal.Lync.LyncAllocatePhoneNumbers" %> +<%@ Register Src="UserControls/AllocatePackagePhoneNumbers.ascx" TagName="AllocatePackagePhoneNumbers" TagPrefix="wsp" %> + +<%@ Register Src="../ExchangeServer/UserControls/UserSelector.ascx" TagName="UserSelector" TagPrefix="wsp" %> +<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %> +<%@ Register Src="../ExchangeServer/UserControls/Breadcrumb.ascx" TagName="Breadcrumb" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %> +<%@ Register Src="UserControls/LyncUserPlanSelector.ascx" TagName="LyncUserPlanSelector" TagPrefix="wsp" %> + +<%@ Register Src="../UserControls/PackagePhoneNumbers.ascx" TagName="PackagePhoneNumbers" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/Quota.ascx" TagName="Quota" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel" TagPrefix="wsp" %> + + +
+
+
+ +
+
+ +
+
+
+
+ + +
+
+ +
+
+
+
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx.cs similarity index 96% rename from WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx.cs rename to WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx.cs index 83622ff7..ad1820fb 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx.cs @@ -32,7 +32,7 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; -namespace WebsitePanel.Portal +namespace WebsitePanel.Portal.Lync { public partial class LyncAllocatePhoneNumbers : WebsitePanelModuleBase { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx.designer.cs new file mode 100644 index 00000000..cf301d58 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncAllocatePhoneNumbers.ascx.designer.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// <автоматически создаваемое> +// Этот код создан программой. +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace WebsitePanel.Portal.Lync { + + + public partial class LyncAllocatePhoneNumbers { + + /// + /// asyncTasks элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; + + /// + /// breadcrumb элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.ExchangeServer.UserControls.Breadcrumb breadcrumb; + + /// + /// menu элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.ExchangeServer.UserControls.Menu menu; + + /// + /// Image1 элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Image Image1; + + /// + /// locTitle элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Localize locTitle; + + /// + /// allocatePhoneNumbers элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.UserControls.AllocatePackagePhoneNumbers allocatePhoneNumbers; + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.cs index d10176a3..0f7d6c9c 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.cs @@ -57,7 +57,7 @@ namespace WebsitePanel.Portal.Lync private void BindPhoneNumbers() { - PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, IPAddressPool.PhoneNumbers); + PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, PanelRequest.ItemID, IPAddressPool.PhoneNumbers); if (ips.Length > 0) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.designer.cs index 54da4375..b2602726 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncCreateUser.ascx.designer.cs @@ -1,39 +1,10 @@ -// Copyright (c) 2011, 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.3074 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// //------------------------------------------------------------------------------ namespace WebsitePanel.Portal.Lync { @@ -42,192 +13,182 @@ namespace WebsitePanel.Portal.Lync { public partial class CreateLyncUser { /// - /// asyncTasks control. + /// asyncTasks элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; /// - /// breadcrumb control. + /// breadcrumb элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.ExchangeServer.UserControls.Breadcrumb breadcrumb; /// - /// menu control. + /// menu элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.ExchangeServer.UserControls.Menu menu; /// - /// Image1 control. + /// Image1 элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Image Image1; /// - /// locTitle control. + /// locTitle элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Localize locTitle; /// - /// messageBox control. + /// messageBox элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; /// - /// ExistingUserTable control. + /// ExistingUserTable элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.HtmlControls.HtmlTable ExistingUserTable; /// - /// Localize1 control. + /// Localize1 элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Localize Localize1; /// - /// userSelector control. + /// userSelector элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.ExchangeServer.UserControls.UserSelector userSelector; /// - /// locPlanName control. + /// locPlanName элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Localize locPlanName; /// - /// planSelector control. + /// planSelector элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.Lync.UserControls.LyncUserPlanSelector planSelector; /// - /// pnEnterpriseVoice control. + /// pnEnterpriseVoice элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Panel pnEnterpriseVoice; /// - /// locPhoneNumber control. + /// locPhoneNumber элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Localize locPhoneNumber; /// - /// ddlPhoneNumber control. + /// tb_PhoneNumber элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.TextBox tb_PhoneNumber; + + /// + /// ddlPhoneNumber элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.DropDownList ddlPhoneNumber; /// - /// PhoneFormatValidator control. + /// PhoneFormatValidator элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.RegularExpressionValidator PhoneFormatValidator; /// - /// locLyncPin control. + /// locLyncPin элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Localize locLyncPin; /// - /// tbPin control. + /// tbPin элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.TextBox tbPin; /// - /// PinRegularExpressionValidator control. + /// PinRegularExpressionValidator элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.RegularExpressionValidator PinRegularExpressionValidator; /// - /// btnCreate control. + /// btnCreate элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Button btnCreate; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncEditUser.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncEditUser.ascx.cs index 92dd4949..35caed3c 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncEditUser.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncEditUser.ascx.cs @@ -52,7 +52,7 @@ namespace WebsitePanel.Portal.Lync private void BindPhoneNumbers() { - PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, IPAddressPool.PhoneNumbers); + PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, PanelRequest.ItemID, IPAddressPool.PhoneNumbers); if (ips.Length > 0) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx new file mode 100644 index 00000000..994c39c6 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx @@ -0,0 +1,57 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LyncPhoneNumbers.ascx.cs" Inherits="WebsitePanel.Portal.Lync.LyncPhoneNumbers" %> +<%@ Register Src="../ExchangeServer/UserControls/UserSelector.ascx" TagName="UserSelector" TagPrefix="wsp" %> +<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %> +<%@ Register Src="../ExchangeServer/UserControls/Breadcrumb.ascx" TagName="Breadcrumb" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %> +<%@ Register Src="UserControls/LyncUserPlanSelector.ascx" TagName="LyncUserPlanSelector" TagPrefix="wsp" %> + +<%@ Register Src="../UserControls/PackagePhoneNumbers.ascx" TagName="PackagePhoneNumbers" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/Quota.ascx" TagName="Quota" TagPrefix="wsp" %> +<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel" TagPrefix="wsp" %> + + +
+
+
+ +
+
+ +
+
+
+
+ + +
+
+ + +
+ + + + + + + + + +
+ + +
+
+
+
+
+
+ diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx.cs similarity index 62% rename from WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx.designer.cs rename to WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx.cs index cbaf20c5..4cb22840 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2011, Outercurve Foundation. +// Copyright (c) 2012, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, @@ -26,29 +26,18 @@ // (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.3074 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ +using System; +using System.Collections.Generic; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; -namespace WebsitePanel.Portal { - - - public partial class LyncAllocatePhoneNumbers { - - /// - /// allocatePhoneNumbers control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::WebsitePanel.Portal.UserControls.AllocatePackagePhoneNumbers allocatePhoneNumbers; +namespace WebsitePanel.Portal.Lync +{ + public partial class LyncPhoneNumbers : WebsitePanelModuleBase + { + protected void Page_Load(object sender, EventArgs e) + { + } } -} +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx.designer.cs new file mode 100644 index 00000000..fdf8a4b8 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/LyncPhoneNumbers.ascx.designer.cs @@ -0,0 +1,105 @@ +//------------------------------------------------------------------------------ +// <автоматически создаваемое> +// Этот код создан программой. +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace WebsitePanel.Portal.Lync { + + + public partial class LyncPhoneNumbers { + + /// + /// asyncTasks элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; + + /// + /// breadcrumb элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.ExchangeServer.UserControls.Breadcrumb breadcrumb; + + /// + /// menu элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.ExchangeServer.UserControls.Menu menu; + + /// + /// Image1 элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Image Image1; + + /// + /// locTitle элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Localize locTitle; + + /// + /// phoneNumbers элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.UserControls.PackagePhoneNumbers phoneNumbers; + + /// + /// secQuotas элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.CollapsiblePanel secQuotas; + + /// + /// QuotasPanel элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Panel QuotasPanel; + + /// + /// locIPQuota элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Localize locIPQuota; + + /// + /// phoneQuota элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.Quota phoneQuota; + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx similarity index 95% rename from WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx rename to WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx index 7dd2aece..df042ca3 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx @@ -1,5 +1,5 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AllocatePackagePhoneNumbers.ascx.cs" Inherits="WebsitePanel.Portal.UserControls.AllocatePackagePhoneNumbers" %> -<%@ Register Src="SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> +<%@ Register Src="../../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx.cs similarity index 93% rename from WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx.cs rename to WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx.cs index d08c8828..6240c896 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx.cs @@ -36,7 +36,7 @@ using WebsitePanel.Providers.Common; namespace WebsitePanel.Portal.UserControls { - public partial class AllocatePackagePhoneNumbers : WebsitePanelControlBase + public partial class AllocatePackagePhoneNumbers : WebsitePanelModuleBase { private IPAddressPool pool; public IPAddressPool Pool @@ -129,6 +129,7 @@ namespace WebsitePanel.Portal.UserControls } ResultObject res = ES.Services.Servers.AllocatePackageIPAddresses(PanelSecurity.PackageId, + PanelRequest.ItemID, ResourceGroup, Pool, radioExternalRandom.Checked, Utils.ParseInt(txtExternalAddressesNumber.Text), @@ -136,7 +137,8 @@ namespace WebsitePanel.Portal.UserControls if (res.IsSuccess) { // return back - Response.Redirect(HostModule.EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), ListAddressesControl)); + Response.Redirect(HostModule.EditUrl("ItemID", PanelRequest.ItemID.ToString(), ListAddressesControl, + PortalUtils.SPACE_ID_PARAM + "=" + PanelSecurity.PackageId)); } else { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx.designer.cs new file mode 100644 index 00000000..48d5910d --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/AllocatePackagePhoneNumbers.ascx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// <автоматически создаваемое> +// Этот код создан программой. +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace WebsitePanel.Portal.UserControls { + + + public partial class AllocatePackagePhoneNumbers { + + /// + /// messageBox элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; + + /// + /// validatorsSummary элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.ValidationSummary validatorsSummary; + + /// + /// ErrorMessagesList элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl ErrorMessagesList; + + /// + /// EmptyAddressesMessage элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl EmptyAddressesMessage; + + /// + /// locNotEnoughAddresses элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Localize locNotEnoughAddresses; + + /// + /// QuotaReachedMessage элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl QuotaReachedMessage; + + /// + /// locQuotaReached элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Localize locQuotaReached; + + /// + /// AddressesTable элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.UpdatePanel AddressesTable; + + /// + /// radioExternalRandom элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.RadioButton radioExternalRandom; + + /// + /// AddressesNumberRow элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow AddressesNumberRow; + + /// + /// locExternalAddresses элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Localize locExternalAddresses; + + /// + /// txtExternalAddressesNumber элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.TextBox txtExternalAddressesNumber; + + /// + /// ExternalAddressesValidator элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator ExternalAddressesValidator; + + /// + /// litMaxAddresses элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Literal litMaxAddresses; + + /// + /// radioExternalSelected элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.RadioButton radioExternalSelected; + + /// + /// AddressesListRow элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow AddressesListRow; + + /// + /// listExternalAddresses элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.ListBox listExternalAddresses; + + /// + /// locHoldCtrl элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Localize locHoldCtrl; + + /// + /// btnAdd элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Button btnAdd; + + /// + /// btnCancel элемент управления. + /// + /// + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. + /// + protected global::System.Web.UI.WebControls.Button btnCancel; + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/App_LocalResources/AllocatePackagePhoneNumbers.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/App_LocalResources/AllocatePackagePhoneNumbers.ascx.resx similarity index 100% rename from WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/App_LocalResources/AllocatePackagePhoneNumbers.ascx.resx rename to WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Lync/UserControls/App_LocalResources/AllocatePackagePhoneNumbers.ascx.resx diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx deleted file mode 100644 index 11b61237..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncAllocatePhoneNumbers.ascx +++ /dev/null @@ -1,11 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LyncAllocatePhoneNumbers.ascx.cs" Inherits="WebsitePanel.Portal.LyncAllocatePhoneNumbers" %> -<%@ Register Src="UserControls/AllocatePackagePhoneNumbers.ascx" TagName="AllocatePackagePhoneNumbers" TagPrefix="wsp" %> - -
- - - -
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx index 34a709a2..0e40a486 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx @@ -8,7 +8,6 @@ Pool="PhoneNumbers" EditItemControl="" SpaceHomeControl="" - AllocateAddressesControl="allocate_phonenumbers" ManageAllowed="true" />
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx.designer.cs index a320a71e..888c5844 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/LyncPhoneNumbers.ascx.designer.cs @@ -1,39 +1,10 @@ -// Copyright (c) 2011, 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.3074 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// //------------------------------------------------------------------------------ namespace WebsitePanel.Portal { @@ -42,52 +13,47 @@ namespace WebsitePanel.Portal { public partial class LyncPhoneNumbers { /// - /// webAddresses control. + /// webAddresses элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.UserControls.PackagePhoneNumbers webAddresses; /// - /// secQuotas control. + /// secQuotas элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.CollapsiblePanel secQuotas; /// - /// QuotasPanel control. + /// QuotasPanel элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Panel QuotasPanel; /// - /// locIPQuota control. + /// locIPQuota элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Localize locIPQuota; /// - /// addressesQuota control. + /// addressesQuota элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.Quota addressesQuota; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx index 5fc28f50..b9febeb0 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx @@ -51,14 +51,47 @@ - Deployment web service + Web Application Server + + Organization Web Service + + + + + + Discovery Web Service + + + + + + + + Deployment Web Service + + + + + - + + Service account + + + + + + Password + + + + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.cs index 761a530b..ba38a58e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.cs @@ -47,7 +47,16 @@ namespace WebsitePanel.Portal.ProviderControls txtSqlServer.Text = settings[Constants.SqlServer]; txtDomainName.Text = settings[Constants.IFDWebApplicationRootDomain]; txtPort.Text = settings[Constants.Port]; + txtAppRootDomain.Text = settings[Constants.AppRootDomain]; + txtOrganizationWebService.Text = settings[Constants.OrganizationWebService]; + txtDiscoveryWebService.Text = settings[Constants.DiscoveryWebService]; + txtDeploymentWebService.Text = settings[Constants.DeploymentWebService]; + + txtPassword.Text = settings[Constants.Password]; + ViewState["PWD"] = settings[Constants.Password]; + txtUserName.Text = settings[Constants.UserName]; + int selectedAddressid = FindAddressByText(settings[Constants.CRMWebsiteIP]); ddlCrmIpAddress.AddressId = (selectedAddressid > 0) ? selectedAddressid : 0; @@ -61,7 +70,15 @@ namespace WebsitePanel.Portal.ProviderControls settings[Constants.SqlServer] = txtSqlServer.Text; settings[Constants.IFDWebApplicationRootDomain] = txtDomainName.Text; settings[Constants.Port] = txtPort.Text; + settings[Constants.AppRootDomain] = txtAppRootDomain.Text; + settings[Constants.OrganizationWebService] = txtOrganizationWebService.Text; + settings[Constants.DiscoveryWebService] = txtDiscoveryWebService.Text; + settings[Constants.DeploymentWebService] = txtDeploymentWebService.Text; + + settings[Constants.Password] = (txtPassword.Text.Length > 0) ? txtPassword.Text : (string)ViewState["PWD"]; + settings[Constants.UserName] = txtUserName.Text; + if (ddlCrmIpAddress.AddressId > 0) { IPAddressInfo address = ES.Services.Servers.GetIPAddress(ddlCrmIpAddress.AddressId); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.designer.cs index 86ec4040..be9b87cf 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/CRM2011_Settings.ascx.designer.cs @@ -1,39 +1,10 @@ -// Copyright (c) 2011, 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. +// < > +// . // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// - +// +// . +// //------------------------------------------------------------------------------ namespace WebsitePanel.Portal.ProviderControls { @@ -42,93 +13,129 @@ namespace WebsitePanel.Portal.ProviderControls { public partial class CRM2011_Settings { /// - /// txtSqlServer control. + /// txtSqlServer . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.TextBox txtSqlServer; /// - /// RequiredFieldValidator1 control. + /// RequiredFieldValidator1 . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; /// - /// txtReportingService control. + /// txtReportingService . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.TextBox txtReportingService; /// - /// txtDomainName control. + /// txtDomainName . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.TextBox txtDomainName; /// - /// RequiredFieldValidator2 control. + /// RequiredFieldValidator2 . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2; /// - /// ddlSchema control. + /// ddlSchema . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.DropDownList ddlSchema; /// - /// ddlCrmIpAddress control. + /// ddlCrmIpAddress . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::WebsitePanel.Portal.SelectIPAddress ddlCrmIpAddress; /// - /// txtPort control. + /// txtPort . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.TextBox txtPort; /// - /// txtAppRootDomain control. + /// txtAppRootDomain . /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// . + /// . /// protected global::System.Web.UI.WebControls.TextBox txtAppRootDomain; + + /// + /// txtOrganizationWebService . + /// + /// + /// . + /// . + /// + protected global::System.Web.UI.WebControls.TextBox txtOrganizationWebService; + + /// + /// txtDiscoveryWebService . + /// + /// + /// . + /// . + /// + protected global::System.Web.UI.WebControls.TextBox txtDiscoveryWebService; + + /// + /// txtDeploymentWebService . + /// + /// + /// . + /// . + /// + protected global::System.Web.UI.WebControls.TextBox txtDeploymentWebService; + + /// + /// txtUserName . + /// + /// + /// . + /// . + /// + protected global::System.Web.UI.WebControls.TextBox txtUserName; + + /// + /// txtPassword . + /// + /// + /// . + /// . + /// + protected global::System.Web.UI.WebControls.TextBox txtPassword; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackageIPAddresses.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackageIPAddresses.ascx.cs index f1507791..2c39fc07 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackageIPAddresses.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackageIPAddresses.ascx.cs @@ -129,6 +129,7 @@ namespace WebsitePanel.Portal.UserControls } ResultObject res = ES.Services.Servers.AllocatePackageIPAddresses(PanelSecurity.PackageId, + 0, ResourceGroup, Pool, radioExternalRandom.Checked, Utils.ParseInt(txtExternalAddressesNumber.Text), diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx.designer.cs deleted file mode 100644 index e69c0bd6..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/AllocatePackagePhoneNumbers.ascx.designer.cs +++ /dev/null @@ -1,244 +0,0 @@ -// Copyright (c) 2011, 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.3074 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.UserControls { - - - public partial class AllocatePackagePhoneNumbers { - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// validatorsSummary control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.ValidationSummary validatorsSummary; - - /// - /// ErrorMessagesList control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl ErrorMessagesList; - - /// - /// EmptyAddressesMessage control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl EmptyAddressesMessage; - - /// - /// locNotEnoughAddresses control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.Localize locNotEnoughAddresses; - - /// - /// QuotaReachedMessage control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl QuotaReachedMessage; - - /// - /// locQuotaReached control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.Localize locQuotaReached; - - /// - /// AddressesTable control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.UpdatePanel AddressesTable; - - /// - /// radioExternalRandom control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.RadioButton radioExternalRandom; - - /// - /// AddressesNumberRow control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.HtmlControls.HtmlTableRow AddressesNumberRow; - - /// - /// locExternalAddresses control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.Localize locExternalAddresses; - - /// - /// txtExternalAddressesNumber control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.TextBox txtExternalAddressesNumber; - - /// - /// ExternalAddressesValidator control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator ExternalAddressesValidator; - - /// - /// litMaxAddresses control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.Literal litMaxAddresses; - - /// - /// radioExternalSelected control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.RadioButton radioExternalSelected; - - /// - /// AddressesListRow control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.HtmlControls.HtmlTableRow AddressesListRow; - - /// - /// listExternalAddresses control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.ListBox listExternalAddresses; - - /// - /// locHoldCtrl control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.Localize locHoldCtrl; - - /// - /// btnAdd control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.Button btnAdd; - - /// - /// btnCancel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - - /// - protected global::System.Web.UI.WebControls.Button btnCancel; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx index 6fb848de..698acac8 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx @@ -73,7 +73,8 @@ OnSelected="odsExternalAddressesPaged_Selected" onselecting="odsExternalAddressesPaged_Selecting"> - + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.cs index e907fb61..0e3a6ccb 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.cs @@ -118,7 +118,8 @@ namespace WebsitePanel.Portal.UserControls protected void btnAllocateAddress_Click(object sender, EventArgs e) { - Response.Redirect(HostModule.EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), AllocateAddressesControl)); + Response.Redirect(HostModule.EditUrl("ItemID", PanelRequest.ItemID.ToString(), AllocateAddressesControl, + PortalUtils.SPACE_ID_PARAM + "=" + PanelSecurity.PackageId)); } protected void gvAddresses_RowDataBound(object sender, GridViewRowEventArgs e) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.designer.cs index 7239db9f..a4d1ed6f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PackagePhoneNumbers.ascx.designer.cs @@ -1,39 +1,10 @@ -// Copyright (c) 2011, 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.3074 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// //------------------------------------------------------------------------------ namespace WebsitePanel.Portal.UserControls { @@ -42,62 +13,56 @@ namespace WebsitePanel.Portal.UserControls { public partial class PackagePhoneNumbers { /// - /// messageBox control. + /// messageBox элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; /// - /// btnAllocateAddress control. + /// btnAllocateAddress элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Button btnAllocateAddress; /// - /// searchBox control. + /// searchBox элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::WebsitePanel.Portal.SearchBox searchBox; /// - /// gvAddresses control. + /// gvAddresses элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.GridView gvAddresses; /// - /// odsExternalAddressesPaged control. + /// odsExternalAddressesPaged элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsExternalAddressesPaged; /// - /// btnDeallocateAddresses control. + /// btnDeallocateAddresses элемент управления. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - + /// Автоматически создаваемое поле. + /// Для изменения переместите объявление поля из файла конструктора в файл кода программной части. /// protected global::System.Web.UI.WebControls.Button btnDeallocateAddresses; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcCreateServer.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcCreateServer.ascx.cs index a39b27d8..ea3ce3eb 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcCreateServer.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcCreateServer.ascx.cs @@ -117,7 +117,7 @@ namespace WebsitePanel.Portal.VPS if (PackagesHelper.IsQuotaEnabled(PanelSecurity.PackageId, Quotas.VPS_EXTERNAL_NETWORK_ENABLED)) { // bind list - PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, IPAddressPool.VpsExternalNetwork); + PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, 0, IPAddressPool.VpsExternalNetwork); foreach (PackageIPAddress ip in ips) { string txt = ip.ExternalIP; diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VpsDetailsAddExternalAddress.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VpsDetailsAddExternalAddress.ascx.cs index d2c5cd2a..75517596 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VpsDetailsAddExternalAddress.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VpsDetailsAddExternalAddress.ascx.cs @@ -51,7 +51,7 @@ namespace WebsitePanel.Portal.VPS private void BindExternalIPAddresses() { - PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, IPAddressPool.VpsExternalNetwork); + PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, 0, IPAddressPool.VpsExternalNetwork); foreach (PackageIPAddress ip in ips) { string txt = ip.ExternalIP; diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VpsDetailsAddExternalAddress.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VpsDetailsAddExternalAddress.ascx.cs index 746c8f65..a6431e0d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VpsDetailsAddExternalAddress.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VpsDetailsAddExternalAddress.ascx.cs @@ -51,7 +51,7 @@ namespace WebsitePanel.Portal.VPSForPC private void BindExternalIPAddresses() { - PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, IPAddressPool.VpsExternalNetwork); + PackageIPAddress[] ips = ES.Services.Servers.GetPackageUnassignedIPAddresses(PanelSecurity.PackageId, 0, IPAddressPool.VpsExternalNetwork); foreach (PackageIPAddress ip in ips) { string txt = ip.ExternalIP; diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesAddSite.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesAddSite.ascx.cs index 27f2224c..c9a761a0 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesAddSite.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesAddSite.ascx.cs @@ -92,7 +92,7 @@ namespace WebsitePanel.Portal { ddlIpAddresses.Items.Add(new ListItem("