diff --git a/WebsitePanel/Database/QuotasSharepoint.sql b/WebsitePanel/Database/QuotasSharepoint.sql deleted file mode 100644 index d3b94426..00000000 --- a/WebsitePanel/Database/QuotasSharepoint.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT INTO Quotas (QuotaID, GroupID, QuotaOrder, QuotaName,QuotaDescription, QuotaTypeID, ServiceQuota) VALUES (400, 20, 3, 'HostedSharePoint.UseSharedSSL' ,'Use shared SSL Root', 1, 0) \ No newline at end of file diff --git a/WebsitePanel/Database/install_db.sql b/WebsitePanel/Database/install_db.sql index ae539e3d..88dc247f 100644 --- a/WebsitePanel/Database/install_db.sql +++ b/WebsitePanel/Database/install_db.sql @@ -1174,7 +1174,7 @@ INNER JOIN UsersDetailed AS U ON P.UserID = U.UserID LEFT OUTER JOIN ServiceItems AS Z ON D.ZoneItemID = Z.ItemID LEFT OUTER JOIN Services AS S ON Z.ServiceID = S.ServiceID LEFT OUTER JOIN Servers AS SRV ON S.ServerID = SRV.ServerID -WHERE D.IsInstantAlias = 0 AND +WHERE (D.IsInstantAlias = 0 AND D.IsDomainPointer = 0) AND ((@Recursive = 0 AND D.PackageID = @PackageID) OR (@Recursive = 1 AND dbo.CheckPackageParent(@PackageID, D.PackageID) = 1)) AND (@ServerID = 0 OR (@ServerID > 0 AND S.ServerID = @ServerID)) @@ -3306,6 +3306,7 @@ CREATE PROCEDURE CheckDomain ( @PackageID int, @DomainName nvarchar(100), + @IsDomainPointer bit, @Result int OUTPUT ) AS @@ -3322,7 +3323,7 @@ SET @Result = 0 -- OK -- check if the domain already exists IF EXISTS( SELECT DomainID FROM Domains -WHERE DomainName = @DomainName +WHERE DomainName = @DomainName AND IsDomainPointer = @IsDomainPointer ) BEGIN SET @Result = -1 @@ -15772,6 +15773,9 @@ CREATE TABLE [dbo].[GlobalDnsRecords]( [ServerID] [int] NULL, [PackageID] [int] NULL, [IPAddressID] [int] NULL, + [SrvPriority] [int] NULL, + [SrvWeight] [int] NULL, + [SrvPort] [int] NULL, CONSTRAINT [PK_GlobalDnsRecords] PRIMARY KEY CLUSTERED ( [RecordID] ASC @@ -23347,6 +23351,9 @@ CREATE PROCEDURE UpdateDnsRecord @RecordName nvarchar(50), @RecordData nvarchar(500), @MXPriority int, + @SrvPriority int, + @SrvWeight int, + @SrvPort int, @IPAddressID int ) AS @@ -23377,6 +23384,9 @@ SET RecordName = @RecordName, RecordData = @RecordData, MXPriority = @MXPriority, + SrvPriority = @SrvPriority, + SrvWeight = @SrvWeight, + SrvPort = @SrvPort, IPAddressID = @IPAddressID WHERE RecordID = @RecordID @@ -23484,6 +23494,9 @@ SELECT NR.RecordName, NR.RecordData, NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, NR.IPAddressID FROM GlobalDnsRecords AS NR @@ -23669,6 +23682,9 @@ CREATE PROCEDURE AddDnsRecord @RecordName nvarchar(50), @RecordData nvarchar(500), @MXPriority int, + @SrvPriority int, + @SrvWeight int, + @SrvPort int, @IPAddressID int ) AS @@ -23693,8 +23709,12 @@ IF EXISTS UPDATE GlobalDnsRecords SET - RecordData = RecordData, - MXPriority = MXPriority, + RecordData = @RecordData, + MXPriority = @MXPriority, + SrvPriority = @SrvPriority, + SrvWeight = @SrvWeight, + SrvPort = @SrvPort, + IPAddressID = @IPAddressID WHERE ServiceID = @ServiceID AND ServerID = @ServerID AND PackageID = @PackageID @@ -23708,6 +23728,9 @@ ELSE RecordName, RecordData, MXPriority, + SrvPriority, + SrvWeight, + SrvPort, IPAddressID ) VALUES @@ -23719,6 +23742,9 @@ ELSE @RecordName, @RecordData, @MXPriority, + @SrvPriority, + @SrvWeight, + @SrvPort, @IPAddressID ) @@ -35697,7 +35723,7 @@ BEGIN GR.RecordName FROM GlobalDNSRecords AS GR WHERE GR.PackageID = @TmpPackageID - AND GR.RecordType COLLATE DATABASE_DEFAULT + GR.RecordName COLLATE DATABASE_DEFAULT NOT IN (SELECT RecordType + RecordName FROM @Records) + AND GR.RecordType + GR.RecordName NOT IN (SELECT RecordType + RecordName FROM @Records) SET @ParentPackageID = NULL @@ -35725,7 +35751,7 @@ SELECT GR.RecordName FROM GlobalDNSRecords AS GR WHERE GR.ServerID = @ServerID -AND GR.RecordType COLLATE DATABASE_DEFAULT + GR.RecordName COLLATE DATABASE_DEFAULT NOT IN (SELECT RecordType + RecordName FROM @Records) +AND GR.RecordType + GR.RecordName NOT IN (SELECT RecordType + RecordName FROM @Records) -- select SERVICES DNS records @@ -35739,7 +35765,7 @@ SELECT GR.RecordName FROM GlobalDNSRecords AS GR WHERE GR.ServiceID IN (SELECT ServiceID FROM PackageServices WHERE PackageID = @PackageID) -AND GR.RecordType COLLATE DATABASE_DEFAULT + GR.RecordName COLLATE DATABASE_DEFAULT NOT IN (SELECT RecordType + RecordName FROM @Records) +AND GR.RecordType + GR.RecordName NOT IN (SELECT RecordType + RecordName FROM @Records) SELECT @@ -35751,12 +35777,16 @@ SELECT NR.RecordName, NR.RecordData, NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, NR.IPAddressID, ISNULL(IP.ExternalIP, '') AS ExternalIP, ISNULL(IP.InternalIP, '') AS InternalIP, CASE WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData ELSE NR.RecordData END AS FullRecordData, dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress @@ -35855,10 +35885,14 @@ SELECT CASE WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData ELSE NR.RecordData END AS FullRecordData, NR.RecordData, NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, NR.IPAddressID, dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress, IP.ExternalIP, @@ -35958,9 +35992,13 @@ SELECT CASE WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData ELSE NR.RecordData END AS FullRecordData, NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, NR.IPAddressID, dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress, IP.ExternalIP, @@ -36005,6 +36043,7 @@ RETURN + GO @@ -36062,10 +36101,14 @@ SELECT NR.RecordName, NR.RecordData, NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, NR.IPAddressID, CASE WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData ELSE NR.RecordData END AS FullRecordData, dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress, diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index b7640b99..17c996eb 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -853,4 +853,657 @@ IF NOT EXISTS (SELECT * FROM [dbo].[ServiceDefaultProperties] WHERE [ProviderID] BEGIN INSERT [dbo].[ServiceDefaultProperties] ([ProviderID], [PropertyName], [PropertyValue]) VALUES (63, N'AdminPassword', N'') END -GO \ No newline at end of file +GO + + + + + + + + + +ALTER TABLE [dbo].[GlobalDnsRecords] ADD + [SrvPriority] [int] NULL, + [SrvWeight] [int] NULL, + [SrvPort] [int] NULL + +GO + + + + + + + + + + + + +ALTER PROCEDURE [dbo].[AddDnsRecord] +( + @ActorID int, + @ServiceID int, + @ServerID int, + @PackageID int, + @RecordType nvarchar(10), + @RecordName nvarchar(50), + @RecordData nvarchar(500), + @MXPriority int, + @SrvPriority int, + @SrvWeight int, + @SrvPort int, + @IPAddressID int +) +AS + +IF (@ServiceID > 0 OR @ServerID > 0) AND dbo.CheckIsUserAdmin(@ActorID) = 0 +RAISERROR('You should have administrator role to perform such operation', 16, 1) + +IF (@PackageID > 0) AND dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0 +RAISERROR('You are not allowed to access this package', 16, 1) + +IF @ServiceID = 0 SET @ServiceID = NULL +IF @ServerID = 0 SET @ServerID = NULL +IF @PackageID = 0 SET @PackageID = NULL +IF @IPAddressID = 0 SET @IPAddressID = NULL + +IF EXISTS +( + SELECT RecordID FROM GlobalDnsRecords WHERE + ServiceID = @ServiceID AND ServerID = @ServerID AND PackageID = @PackageID + AND RecordName = @RecordName AND RecordType = @RecordType +) + + UPDATE GlobalDnsRecords + SET + RecordData = RecordData, + MXPriority = MXPriority, + SrvPriority = SrvPriority, + SrvWeight = SrvWeight, + SrvPort = SrvPort, + + IPAddressID = @IPAddressID + WHERE + ServiceID = @ServiceID AND ServerID = @ServerID AND PackageID = @PackageID +ELSE + INSERT INTO GlobalDnsRecords + ( + ServiceID, + ServerID, + PackageID, + RecordType, + RecordName, + RecordData, + MXPriority, + SrvPriority, + SrvWeight, + SrvPort, + IPAddressID + ) + VALUES + ( + @ServiceID, + @ServerID, + @PackageID, + @RecordType, + @RecordName, + @RecordData, + @MXPriority, + @SrvPriority, + @SrvWeight, + @SrvPort, + @IPAddressID + ) + +RETURN + +GO + + + + + + + + +ALTER PROCEDURE [dbo].[CheckDomain] +( + @PackageID int, + @DomainName nvarchar(100), + @IsDomainPointer bit, + @Result int OUTPUT +) +AS + +/* +@Result values: + 0 - OK + -1 - already exists + -2 - sub-domain of prohibited domain +*/ + +SET @Result = 0 -- OK + +-- check if the domain already exists +IF EXISTS( +SELECT DomainID FROM Domains +WHERE DomainName = @DomainName AND IsDomainPointer = @IsDomainPointer +) +BEGIN + SET @Result = -1 + RETURN +END + +-- check if this is a sub-domain of other domain +-- that is not allowed for 3rd level hosting + +DECLARE @UserID int +SELECT @UserID = UserID FROM Packages +WHERE PackageID = @PackageID + +-- find sub-domains +DECLARE @DomainUserID int, @HostingAllowed bit +SELECT + @DomainUserID = P.UserID, + @HostingAllowed = D.HostingAllowed +FROM Domains AS D +INNER JOIN Packages AS P ON D.PackageID = P.PackageID +WHERE CHARINDEX('.' + DomainName, @DomainName) > 0 +AND (CHARINDEX('.' + DomainName, @DomainName) + LEN('.' + DomainName)) = LEN(@DomainName) + 1 + +-- this is a domain of other user +IF @UserID <> @DomainUserID AND @HostingAllowed = 0 +BEGIN + SET @Result = -2 + RETURN +END + +RETURN + +GO + + + + + + + + +ALTER PROCEDURE [dbo].[GetDnsRecord] +( + @ActorID int, + @RecordID int +) +AS + +-- check rights +DECLARE @ServiceID int, @ServerID int, @PackageID int +SELECT + @ServiceID = ServiceID, + @ServerID = ServerID, + @PackageID = PackageID +FROM GlobalDnsRecords +WHERE + RecordID = @RecordID + +IF (@ServiceID > 0 OR @ServerID > 0) AND dbo.CheckIsUserAdmin(@ActorID) = 0 +RAISERROR('You are not allowed to perform this operation', 16, 1) + +IF (@PackageID > 0) AND dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0 +RAISERROR('You are not allowed to access this package', 16, 1) + +SELECT + NR.RecordID, + NR.ServiceID, + NR.ServerID, + NR.PackageID, + NR.RecordType, + NR.RecordName, + NR.RecordData, + NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, + NR.IPAddressID +FROM + GlobalDnsRecords AS NR +WHERE NR.RecordID = @RecordID +RETURN + +GO + + + + + + + + +ALTER PROCEDURE [dbo].[GetDnsRecordsByPackage] +( + @ActorID int, + @PackageID int +) +AS + +-- check rights +IF dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0 +RAISERROR('You are not allowed to access this package', 16, 1) + +SELECT + NR.RecordID, + NR.ServiceID, + NR.ServerID, + NR.PackageID, + NR.RecordType, + NR.RecordName, + NR.RecordData, + NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, + NR.IPAddressID, + CASE + WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) + WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData + ELSE NR.RecordData + END AS FullRecordData, + dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress, + IP.ExternalIP, + IP.InternalIP +FROM + GlobalDnsRecords AS NR +LEFT OUTER JOIN IPAddresses AS IP ON NR.IPAddressID = IP.AddressID +WHERE NR.PackageID = @PackageID +RETURN + +GO + + + + + + + + +USE [WebsitePanel] +GO +/****** Object: StoredProcedure [dbo].[GetDnsRecordsByServer] Script Date: 06/01/2011 23:42:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO + +ALTER PROCEDURE [dbo].[GetDnsRecordsByServer] +( + @ActorID int, + @ServerID int +) +AS + +SELECT + NR.RecordID, + NR.ServiceID, + NR.ServerID, + NR.PackageID, + NR.RecordType, + NR.RecordName, + NR.RecordData, + CASE + WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) + WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData + ELSE NR.RecordData + END AS FullRecordData, + NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, + NR.IPAddressID, + dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress, + IP.ExternalIP, + IP.InternalIP +FROM + GlobalDnsRecords AS NR +LEFT OUTER JOIN IPAddresses AS IP ON NR.IPAddressID = IP.AddressID +WHERE + NR.ServerID = @ServerID +RETURN + +GO + + + + + + + + + +ALTER PROCEDURE [dbo].[GetDnsRecordsByService] +( + @ActorID int, + @ServiceID int +) +AS + +SELECT + NR.RecordID, + NR.ServiceID, + NR.ServerID, + NR.PackageID, + NR.RecordType, + NR.RecordName, + CASE + WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) + WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData + ELSE NR.RecordData + END AS FullRecordData, + NR.RecordData, + NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, + NR.IPAddressID, + dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress, + IP.ExternalIP, + IP.InternalIP +FROM + GlobalDnsRecords AS NR +LEFT OUTER JOIN IPAddresses AS IP ON NR.IPAddressID = IP.AddressID +WHERE + NR.ServiceID = @ServiceID +RETURN + +GO + + + + + + + + + +ALTER PROCEDURE [dbo].[GetDnsRecordsTotal] +( + @ActorID int, + @PackageID int +) +AS + +-- check rights +IF dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0 +RAISERROR('You are not allowed to access this package', 16, 1) + +-- create temp table for DNS records +DECLARE @Records TABLE +( + RecordID int, + RecordType nvarchar(10) COLLATE DATABASE_DEFAULT, + RecordName nvarchar(50) COLLATE DATABASE_DEFAULT +) + +-- select PACKAGES DNS records +DECLARE @ParentPackageID int, @TmpPackageID int +SET @TmpPackageID = @PackageID + +WHILE 10 = 10 +BEGIN + + -- get DNS records for the current package + INSERT INTO @Records (RecordID, RecordType, RecordName) + SELECT + GR.RecordID, + GR.RecordType, + GR.RecordName + FROM GlobalDNSRecords AS GR + WHERE GR.PackageID = @TmpPackageID + AND GR.RecordType + GR.RecordName NOT IN (SELECT RecordType + RecordName FROM @Records) + + SET @ParentPackageID = NULL + + -- get parent package + SELECT + @ParentPackageID = ParentPackageID + FROM Packages + WHERE PackageID = @TmpPackageID + + IF @ParentPackageID IS NULL -- the last parent + BREAK + + SET @TmpPackageID = @ParentPackageID +END + +-- select SERVER DNS records +DECLARE @ServerID int +SELECT @ServerID = ServerID FROM Packages +WHERE PackageID = @PackageID + +INSERT INTO @Records (RecordID, RecordType, RecordName) +SELECT + GR.RecordID, + GR.RecordType, + GR.RecordName +FROM GlobalDNSRecords AS GR +WHERE GR.ServerID = @ServerID +AND GR.RecordType + GR.RecordName NOT IN (SELECT RecordType + RecordName FROM @Records) + + +-- select SERVICES DNS records +-- re-distribute package services +EXEC DistributePackageServices @ActorID, @PackageID + +INSERT INTO @Records (RecordID, RecordType, RecordName) +SELECT + GR.RecordID, + GR.RecordType, + GR.RecordName +FROM GlobalDNSRecords AS GR +WHERE GR.ServiceID IN (SELECT ServiceID FROM PackageServices WHERE PackageID = @PackageID) +AND GR.RecordType + GR.RecordName NOT IN (SELECT RecordType + RecordName FROM @Records) + + +SELECT + NR.RecordID, + NR.ServiceID, + NR.ServerID, + NR.PackageID, + NR.RecordType, + NR.RecordName, + NR.RecordData, + NR.MXPriority, + NR.SrvPriority, + NR.SrvWeight, + NR.SrvPort, + NR.IPAddressID, + ISNULL(IP.ExternalIP, '') AS ExternalIP, + ISNULL(IP.InternalIP, '') AS InternalIP, + CASE + WHEN NR.RecordType = 'A' AND NR.RecordData = '' THEN dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) + WHEN NR.RecordType = 'MX' THEN CONVERT(varchar(3), NR.MXPriority) + ', ' + NR.RecordData + WHEN NR.RecordType = 'SRV' THEN CONVERT(varchar(3), NR.SrvPort) + ', ' + NR.RecordData + ELSE NR.RecordData + END AS FullRecordData, + dbo.GetFullIPAddress(IP.ExternalIP, IP.InternalIP) AS IPAddress +FROM @Records AS TR +INNER JOIN GlobalDnsRecords AS NR ON TR.RecordID = NR.RecordID +LEFT OUTER JOIN IPAddresses AS IP ON NR.IPAddressID = IP.AddressID + +RETURN + +GO + + + + + + + + + +ALTER PROCEDURE [dbo].[GetDomainsPaged] +( + @ActorID int, + @PackageID int, + @ServerID int, + @Recursive bit, + @FilterColumn nvarchar(50) = '', + @FilterValue nvarchar(50) = '', + @SortColumn nvarchar(50), + @StartRow int, + @MaximumRows int +) +AS +SET NOCOUNT ON + +-- check rights +IF dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0 +RAISERROR('You are not allowed to access this package', 16, 1) + +-- build query and run it to the temporary table +DECLARE @sql nvarchar(2000) + +IF @SortColumn = '' OR @SortColumn IS NULL +SET @SortColumn = 'DomainName' + +SET @sql = ' +DECLARE @Domains TABLE +( + ItemPosition int IDENTITY(1,1), + DomainID int +) +INSERT INTO @Domains (DomainID) +SELECT + D.DomainID +FROM Domains AS D +INNER JOIN Packages AS P ON D.PackageID = P.PackageID +INNER JOIN UsersDetailed AS U ON P.UserID = U.UserID +LEFT OUTER JOIN ServiceItems AS Z ON D.ZoneItemID = Z.ItemID +LEFT OUTER JOIN Services AS S ON Z.ServiceID = S.ServiceID +LEFT OUTER JOIN Servers AS SRV ON S.ServerID = SRV.ServerID +WHERE (D.IsInstantAlias = 0 AND D.IsDomainPointer = 0) AND + ((@Recursive = 0 AND D.PackageID = @PackageID) + OR (@Recursive = 1 AND dbo.CheckPackageParent(@PackageID, D.PackageID) = 1)) +AND (@ServerID = 0 OR (@ServerID > 0 AND S.ServerID = @ServerID)) +' + +IF @FilterColumn <> '' AND @FilterValue <> '' +SET @sql = @sql + ' AND ' + @FilterColumn + ' LIKE @FilterValue ' + +IF @SortColumn <> '' AND @SortColumn IS NOT NULL +SET @sql = @sql + ' ORDER BY ' + @SortColumn + ' ' + +SET @sql = @sql + ' SELECT COUNT(DomainID) FROM @Domains;SELECT + D.DomainID, + D.PackageID, + D.ZoneItemID, + D.DomainName, + D.HostingAllowed, + ISNULL(WS.ItemID, 0) AS WebSiteID, + WS.ItemName AS WebSiteName, + ISNULL(MD.ItemID, 0) AS MailDomainID, + MD.ItemName AS MailDomainName, + D.IsSubDomain, + D.IsInstantAlias, + D.IsDomainPointer, + + -- packages + P.PackageName, + + -- server + ISNULL(SRV.ServerID, 0) AS ServerID, + ISNULL(SRV.ServerName, '''') AS ServerName, + ISNULL(SRV.Comments, '''') AS ServerComments, + ISNULL(SRV.VirtualServer, 0) AS VirtualServer, + + -- user + P.UserID, + U.Username, + U.FirstName, + U.LastName, + U.FullName, + U.RoleID, + U.Email +FROM @Domains AS SD +INNER JOIN Domains AS D ON SD.DomainID = D.DomainID +INNER JOIN Packages AS P ON D.PackageID = P.PackageID +INNER JOIN UsersDetailed AS U ON P.UserID = U.UserID +LEFT OUTER JOIN ServiceItems AS WS ON D.WebSiteID = WS.ItemID +LEFT OUTER JOIN ServiceItems AS MD ON D.MailDomainID = MD.ItemID +LEFT OUTER JOIN ServiceItems AS Z ON D.ZoneItemID = Z.ItemID +LEFT OUTER JOIN Services AS S ON Z.ServiceID = S.ServiceID +LEFT OUTER JOIN Servers AS SRV ON S.ServerID = SRV.ServerID +WHERE SD.ItemPosition BETWEEN @StartRow + 1 AND @StartRow + @MaximumRows' + +exec sp_executesql @sql, N'@StartRow int, @MaximumRows int, @PackageID int, @FilterValue nvarchar(50), @ServerID int, @Recursive bit', +@StartRow, @MaximumRows, @PackageID, @FilterValue, @ServerID, @Recursive + + +RETURN + +GO + + + + + + + + + + +ALTER PROCEDURE [dbo].[UpdateDnsRecord] +( + @ActorID int, + @RecordID int, + @RecordType nvarchar(10), + @RecordName nvarchar(50), + @RecordData nvarchar(500), + @MXPriority int, + @SrvPriority int, + @SrvWeight int, + @SrvPort int, + @IPAddressID int +) +AS + +IF @IPAddressID = 0 SET @IPAddressID = NULL + +-- check rights +DECLARE @ServiceID int, @ServerID int, @PackageID int +SELECT + @ServiceID = ServiceID, + @ServerID = ServerID, + @PackageID = PackageID +FROM GlobalDnsRecords +WHERE + RecordID = @RecordID + +IF (@ServiceID > 0 OR @ServerID > 0) AND dbo.CheckIsUserAdmin(@ActorID) = 0 +RAISERROR('You are not allowed to perform this operation', 16, 1) + +IF (@PackageID > 0) AND dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0 +RAISERROR('You are not allowed to access this package', 16, 1) + + +-- update record +UPDATE GlobalDnsRecords +SET + RecordType = @RecordType, + RecordName = @RecordName, + RecordData = @RecordData, + MXPriority = @MXPriority, + SrvPriority = @SrvPriority, + SrvWeight = @SrvWeight, + SrvPort = @SrvPort, + IPAddressID = @IPAddressID +WHERE + RecordID = @RecordID +RETURN + +GO diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/GlobalDnsRecord.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/GlobalDnsRecord.cs index 27d7869f..773026b4 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/GlobalDnsRecord.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/GlobalDnsRecord.cs @@ -36,6 +36,22 @@ namespace WebsitePanel.EnterpriseServer public class GlobalDnsRecord { private int recordId; + private string internalIP; + private string externalIP; + private int recordOrder; + private int groupId; + private int serviceId; + private int serverId; + private int packageId; + private string recordType; + private string recordName; + private string recordData; + private int mxPriority; + private int ipAddressId; + private int srvPriority; + private int srvWeight; + private int srvPort; + public int RecordId { @@ -43,63 +59,54 @@ namespace WebsitePanel.EnterpriseServer set { recordId = value; } } - private int recordOrder; public int RecordOrder { get { return recordOrder; } set { recordOrder = value; } } - private int groupId; public int GroupId { get { return groupId; } set { groupId = value; } } - private int serviceId; public int ServiceId { get { return serviceId; } set { serviceId = value; } } - private int serverId; public int ServerId { get { return serverId; } set { serverId = value; } } - private int packageId; public int PackageId { get { return packageId; } set { packageId = value; } } - private string recordType; public string RecordType { get { return recordType; } set { recordType = value; } } - private string recordName; public string RecordName { get { return recordName; } set { recordName = value; } } - private string recordData; public string RecordData { get { return recordData; } set { recordData = value; } } - private int mxPriority; public int MxPriority { @@ -107,7 +114,6 @@ namespace WebsitePanel.EnterpriseServer set { mxPriority = value; } } - private int ipAddressId; public int IpAddressId { @@ -115,9 +121,6 @@ namespace WebsitePanel.EnterpriseServer set { ipAddressId = value; } } - private string internalIP; - private string externalIP; - public GlobalDnsRecord() { } @@ -133,5 +136,24 @@ namespace WebsitePanel.EnterpriseServer get { return this.externalIP; } set { this.externalIP = value; } } + + + public int SrvPriority + { + get { return srvPriority; } + set { srvPriority = value; } + } + + public int SrvWeight + { + get { return srvWeight; } + set { srvWeight = value; } + } + + public int SrvPort + { + get { return srvPort; } + set { srvPort = value; } + } } -} +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs index 1874b690..4e9ae211 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ServersProxy.cs @@ -1,35 +1,7 @@ -// 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.3074 +// Runtime Version:2.0.50727.5456 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -39,7 +11,8 @@ // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // -namespace WebsitePanel.EnterpriseServer { +namespace WebsitePanel.EnterpriseServer +{ using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; @@ -47,2268 +20,2609 @@ namespace WebsitePanel.EnterpriseServer { using System; using System.Diagnostics; using System.Data; + using WebsitePanel.Providers.Common; using WebsitePanel.Server; using WebsitePanel.Providers.DNS; using WebsitePanel.Providers.ResultObjects; - + + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name="esServersSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")] - public partial class esServers : Microsoft.Web.Services3.WebServicesClientProtocol { - + [System.Web.Services.WebServiceBindingAttribute(Name = "esServersSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")] + public partial class esServers : Microsoft.Web.Services3.WebServicesClientProtocol + { + private System.Threading.SendOrPostCallback GetAllServersOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawAllServersOperationCompleted; - + private System.Threading.SendOrPostCallback GetServersOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawServersOperationCompleted; - + private System.Threading.SendOrPostCallback GetServerShortDetailsOperationCompleted; - + private System.Threading.SendOrPostCallback GetServerByIdOperationCompleted; - + private System.Threading.SendOrPostCallback GetServerByNameOperationCompleted; - + private System.Threading.SendOrPostCallback CheckServerAvailableOperationCompleted; - + private System.Threading.SendOrPostCallback AddServerOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateServerOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateServerConnectionPasswordOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateServerADPasswordOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteServerOperationCompleted; - + private System.Threading.SendOrPostCallback GetVirtualServersOperationCompleted; - + private System.Threading.SendOrPostCallback GetAvailableVirtualServicesOperationCompleted; - + private System.Threading.SendOrPostCallback GetVirtualServicesOperationCompleted; - + private System.Threading.SendOrPostCallback AddVirtualServicesOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteVirtualServicesOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateVirtualGroupsOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawServicesByServerIdOperationCompleted; - + private System.Threading.SendOrPostCallback GetServicesByServerIdOperationCompleted; - + private System.Threading.SendOrPostCallback GetServicesByServerIdGroupNameOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawServicesByGroupIdOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawServicesByGroupNameOperationCompleted; - + private System.Threading.SendOrPostCallback GetServiceInfoOperationCompleted; - + private System.Threading.SendOrPostCallback AddServiceOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateServiceOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteServiceOperationCompleted; - + private System.Threading.SendOrPostCallback GetServiceSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateServiceSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback InstallServiceOperationCompleted; - + private System.Threading.SendOrPostCallback GetProviderServiceQuotaOperationCompleted; - + private System.Threading.SendOrPostCallback GetInstalledProvidersOperationCompleted; - + private System.Threading.SendOrPostCallback GetResourceGroupsOperationCompleted; - + private System.Threading.SendOrPostCallback GetResourceGroupOperationCompleted; - + private System.Threading.SendOrPostCallback GetProviderOperationCompleted; - + private System.Threading.SendOrPostCallback GetProvidersOperationCompleted; - + private System.Threading.SendOrPostCallback GetProvidersByGroupIdOperationCompleted; - + private System.Threading.SendOrPostCallback GetPackageServiceProviderOperationCompleted; - + private System.Threading.SendOrPostCallback IsInstalledOperationCompleted; - + private System.Threading.SendOrPostCallback GetServerVersionOperationCompleted; - + private System.Threading.SendOrPostCallback GetIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback GetIPAddressesPagedOperationCompleted; - + private System.Threading.SendOrPostCallback GetIPAddressOperationCompleted; - + private System.Threading.SendOrPostCallback AddIPAddressOperationCompleted; - + private System.Threading.SendOrPostCallback AddIPAddressesRangeOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateIPAddressOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteIPAddressOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback GetUnallottedIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback GetPackageIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback GetPackageUnassignedIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback AllocatePackageIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback AllocateMaximumPackageIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback DeallocatePackageIPAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback GetClustersOperationCompleted; - + private System.Threading.SendOrPostCallback AddClusterOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteClusterOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawDnsRecordsByServiceOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawDnsRecordsByServerOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawDnsRecordsByPackageOperationCompleted; - + private System.Threading.SendOrPostCallback GetRawDnsRecordsByGroupOperationCompleted; - + 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 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 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://127.0.0.1:9002/esServers.asmx"; + public esServers() + { + this.Url = "http://localhost:9002/esServers.asmx"; } - + /// public event GetAllServersCompletedEventHandler GetAllServersCompleted; - + /// public event GetRawAllServersCompletedEventHandler GetRawAllServersCompleted; - + /// public event GetServersCompletedEventHandler GetServersCompleted; - + /// public event GetRawServersCompletedEventHandler GetRawServersCompleted; - + /// public event GetServerShortDetailsCompletedEventHandler GetServerShortDetailsCompleted; - + /// public event GetServerByIdCompletedEventHandler GetServerByIdCompleted; - + /// public event GetServerByNameCompletedEventHandler GetServerByNameCompleted; - + /// public event CheckServerAvailableCompletedEventHandler CheckServerAvailableCompleted; - + /// public event AddServerCompletedEventHandler AddServerCompleted; - + /// public event UpdateServerCompletedEventHandler UpdateServerCompleted; - + /// public event UpdateServerConnectionPasswordCompletedEventHandler UpdateServerConnectionPasswordCompleted; - + /// public event UpdateServerADPasswordCompletedEventHandler UpdateServerADPasswordCompleted; - + /// public event DeleteServerCompletedEventHandler DeleteServerCompleted; - + /// public event GetVirtualServersCompletedEventHandler GetVirtualServersCompleted; - + /// public event GetAvailableVirtualServicesCompletedEventHandler GetAvailableVirtualServicesCompleted; - + /// public event GetVirtualServicesCompletedEventHandler GetVirtualServicesCompleted; - + /// public event AddVirtualServicesCompletedEventHandler AddVirtualServicesCompleted; - + /// public event DeleteVirtualServicesCompletedEventHandler DeleteVirtualServicesCompleted; - + /// public event UpdateVirtualGroupsCompletedEventHandler UpdateVirtualGroupsCompleted; - + /// public event GetRawServicesByServerIdCompletedEventHandler GetRawServicesByServerIdCompleted; - + /// public event GetServicesByServerIdCompletedEventHandler GetServicesByServerIdCompleted; - + /// public event GetServicesByServerIdGroupNameCompletedEventHandler GetServicesByServerIdGroupNameCompleted; - + /// public event GetRawServicesByGroupIdCompletedEventHandler GetRawServicesByGroupIdCompleted; - + /// public event GetRawServicesByGroupNameCompletedEventHandler GetRawServicesByGroupNameCompleted; - + /// public event GetServiceInfoCompletedEventHandler GetServiceInfoCompleted; - + /// public event AddServiceCompletedEventHandler AddServiceCompleted; - + /// public event UpdateServiceCompletedEventHandler UpdateServiceCompleted; - + /// public event DeleteServiceCompletedEventHandler DeleteServiceCompleted; - + /// public event GetServiceSettingsCompletedEventHandler GetServiceSettingsCompleted; - + /// public event UpdateServiceSettingsCompletedEventHandler UpdateServiceSettingsCompleted; - + /// public event InstallServiceCompletedEventHandler InstallServiceCompleted; - + /// public event GetProviderServiceQuotaCompletedEventHandler GetProviderServiceQuotaCompleted; - + /// public event GetInstalledProvidersCompletedEventHandler GetInstalledProvidersCompleted; - + /// public event GetResourceGroupsCompletedEventHandler GetResourceGroupsCompleted; - + /// public event GetResourceGroupCompletedEventHandler GetResourceGroupCompleted; - + /// public event GetProviderCompletedEventHandler GetProviderCompleted; - + /// public event GetProvidersCompletedEventHandler GetProvidersCompleted; - + /// public event GetProvidersByGroupIdCompletedEventHandler GetProvidersByGroupIdCompleted; - + /// public event GetPackageServiceProviderCompletedEventHandler GetPackageServiceProviderCompleted; - + /// public event IsInstalledCompletedEventHandler IsInstalledCompleted; - + /// public event GetServerVersionCompletedEventHandler GetServerVersionCompleted; - + /// public event GetIPAddressesCompletedEventHandler GetIPAddressesCompleted; - + /// public event GetIPAddressesPagedCompletedEventHandler GetIPAddressesPagedCompleted; - + /// public event GetIPAddressCompletedEventHandler GetIPAddressCompleted; - + /// public event AddIPAddressCompletedEventHandler AddIPAddressCompleted; - + /// public event AddIPAddressesRangeCompletedEventHandler AddIPAddressesRangeCompleted; - + /// public event UpdateIPAddressCompletedEventHandler UpdateIPAddressCompleted; - + /// public event UpdateIPAddressesCompletedEventHandler UpdateIPAddressesCompleted; - + /// public event DeleteIPAddressCompletedEventHandler DeleteIPAddressCompleted; - + /// public event DeleteIPAddressesCompletedEventHandler DeleteIPAddressesCompleted; - + /// public event GetUnallottedIPAddressesCompletedEventHandler GetUnallottedIPAddressesCompleted; - + /// public event GetPackageIPAddressesCompletedEventHandler GetPackageIPAddressesCompleted; - + /// public event GetPackageUnassignedIPAddressesCompletedEventHandler GetPackageUnassignedIPAddressesCompleted; - + /// public event AllocatePackageIPAddressesCompletedEventHandler AllocatePackageIPAddressesCompleted; - + /// public event AllocateMaximumPackageIPAddressesCompletedEventHandler AllocateMaximumPackageIPAddressesCompleted; - + /// public event DeallocatePackageIPAddressesCompletedEventHandler DeallocatePackageIPAddressesCompleted; - + /// public event GetClustersCompletedEventHandler GetClustersCompleted; - + /// public event AddClusterCompletedEventHandler AddClusterCompleted; - + /// public event DeleteClusterCompletedEventHandler DeleteClusterCompleted; - + /// public event GetRawDnsRecordsByServiceCompletedEventHandler GetRawDnsRecordsByServiceCompleted; - + /// public event GetRawDnsRecordsByServerCompletedEventHandler GetRawDnsRecordsByServerCompleted; - + /// public event GetRawDnsRecordsByPackageCompletedEventHandler GetRawDnsRecordsByPackageCompleted; - + /// public event GetRawDnsRecordsByGroupCompletedEventHandler GetRawDnsRecordsByGroupCompleted; - + /// 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 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 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() { + [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) { + public System.IAsyncResult BeginGetAllServers(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetAllServers", new object[0], callback, asyncState); } - + /// - public ServerInfo[] EndGetAllServers(System.IAsyncResult asyncResult) { + public ServerInfo[] EndGetAllServers(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServerInfo[])(results[0])); } - + /// - public void GetAllServersAsync() { + public void GetAllServersAsync() + { this.GetAllServersAsync(null); } - + /// - public void GetAllServersAsync(object userState) { - if ((this.GetAllServersOperationCompleted == 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)) { + + 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() { + [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) { + 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) { + public System.Data.DataSet EndGetRawAllServers(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawAllServersAsync() { + public void GetRawAllServersAsync() + { this.GetRawAllServersAsync(null); } - + /// - public void GetRawAllServersAsync(object userState) { - if ((this.GetRawAllServersOperationCompleted == 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)) { + + 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() { + [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) { + public System.IAsyncResult BeginGetServers(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetServers", new object[0], callback, asyncState); } - + /// - public ServerInfo[] EndGetServers(System.IAsyncResult asyncResult) { + public ServerInfo[] EndGetServers(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServerInfo[])(results[0])); } - + /// - public void GetServersAsync() { + public void GetServersAsync() + { this.GetServersAsync(null); } - + /// - public void GetServersAsync(object userState) { - if ((this.GetServersOperationCompleted == 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)) { + + 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() { + [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) { + 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) { + public System.Data.DataSet EndGetRawServers(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawServersAsync() { + public void GetRawServersAsync() + { this.GetRawServersAsync(null); } - + /// - public void GetRawServersAsync(object userState) { - if ((this.GetRawServersOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ServerInfo EndGetServerShortDetails(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServerInfo)(results[0])); } - + /// - public void GetServerShortDetailsAsync(int serverId) { + public void GetServerShortDetailsAsync(int serverId) + { this.GetServerShortDetailsAsync(serverId, null); } - + /// - public void GetServerShortDetailsAsync(int serverId, object userState) { - if ((this.GetServerShortDetailsOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ServerInfo EndGetServerById(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServerInfo)(results[0])); } - + /// - public void GetServerByIdAsync(int serverId) { + public void GetServerByIdAsync(int serverId) + { this.GetServerByIdAsync(serverId, null); } - + /// - public void GetServerByIdAsync(int serverId, object userState) { - if ((this.GetServerByIdOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ServerInfo EndGetServerByName(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServerInfo)(results[0])); } - + /// - public void GetServerByNameAsync(string serverName) { + public void GetServerByNameAsync(string serverName) + { this.GetServerByNameAsync(serverName, null); } - + /// - public void GetServerByNameAsync(string serverName, object userState) { - if ((this.GetServerByNameOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndCheckServerAvailable(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void CheckServerAvailableAsync(string serverUrl, string password) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public int EndAddServer(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddServerAsync(ServerInfo server, bool autoDiscovery) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public int EndUpdateServer(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateServerAsync(ServerInfo server) { + public void UpdateServerAsync(ServerInfo server) + { this.UpdateServerAsync(server, null); } - + /// - public void UpdateServerAsync(ServerInfo server, object userState) { - if ((this.UpdateServerOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndUpdateServerConnectionPassword(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateServerConnectionPasswordAsync(int serverId, string password) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public int EndUpdateServerADPassword(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateServerADPasswordAsync(int serverId, string adPassword) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public int EndDeleteServer(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteServerAsync(int serverId) { + public void DeleteServerAsync(int serverId) + { this.DeleteServerAsync(serverId, null); } - + /// - public void DeleteServerAsync(int serverId, object userState) { - if ((this.DeleteServerOperationCompleted == 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)) { + + 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() { + [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) { + 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) { + public System.Data.DataSet EndGetVirtualServers(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetVirtualServersAsync() { + public void GetVirtualServersAsync() + { this.GetVirtualServersAsync(null); } - + /// - public void GetVirtualServersAsync(object userState) { - if ((this.GetVirtualServersOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetAvailableVirtualServices(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetAvailableVirtualServicesAsync(int serverId) { + public void GetAvailableVirtualServicesAsync(int serverId) + { this.GetAvailableVirtualServicesAsync(serverId, null); } - + /// - public void GetAvailableVirtualServicesAsync(int serverId, object userState) { - if ((this.GetAvailableVirtualServicesOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetVirtualServices(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetVirtualServicesAsync(int serverId) { + public void GetVirtualServicesAsync(int serverId) + { this.GetVirtualServicesAsync(serverId, null); } - + /// - public void GetVirtualServicesAsync(int serverId, object userState) { - if ((this.GetVirtualServicesOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndAddVirtualServices(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddVirtualServicesAsync(int serverId, int[] ids) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public int EndDeleteVirtualServices(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteVirtualServicesAsync(int serverId, int[] ids) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public int EndUpdateVirtualGroups(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateVirtualGroupsAsync(int serverId, VirtualGroupInfo[] groups) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetRawServicesByServerId(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawServicesByServerIdAsync(int serverId) { + public void GetRawServicesByServerIdAsync(int serverId) + { this.GetRawServicesByServerIdAsync(serverId, null); } - + /// - public void GetRawServicesByServerIdAsync(int serverId, object userState) { - if ((this.GetRawServicesByServerIdOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ServiceInfo[] EndGetServicesByServerId(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServiceInfo[])(results[0])); } - + /// - public void GetServicesByServerIdAsync(int serverId) { + public void GetServicesByServerIdAsync(int serverId) + { this.GetServicesByServerIdAsync(serverId, null); } - + /// - public void GetServicesByServerIdAsync(int serverId, object userState) { - if ((this.GetServicesByServerIdOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ServiceInfo[] EndGetServicesByServerIdGroupName(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServiceInfo[])(results[0])); } - + /// - public void GetServicesByServerIdGroupNameAsync(int serverId, string groupName) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetRawServicesByGroupId(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawServicesByGroupIdAsync(int groupId) { + public void GetRawServicesByGroupIdAsync(int groupId) + { this.GetRawServicesByGroupIdAsync(groupId, null); } - + /// - public void GetRawServicesByGroupIdAsync(int groupId, object userState) { - if ((this.GetRawServicesByGroupIdOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetRawServicesByGroupName(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawServicesByGroupNameAsync(string groupName) { + public void GetRawServicesByGroupNameAsync(string groupName) + { this.GetRawServicesByGroupNameAsync(groupName, null); } - + /// - public void GetRawServicesByGroupNameAsync(string groupName, object userState) { - if ((this.GetRawServicesByGroupNameOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ServiceInfo EndGetServiceInfo(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ServiceInfo)(results[0])); } - + /// - public void GetServiceInfoAsync(int serviceId) { + public void GetServiceInfoAsync(int serviceId) + { this.GetServiceInfoAsync(serviceId, null); } - + /// - public void GetServiceInfoAsync(int serviceId, object userState) { - if ((this.GetServiceInfoOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndAddService(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddServiceAsync(ServiceInfo service) { + public void AddServiceAsync(ServiceInfo service) + { this.AddServiceAsync(service, null); } - + /// - public void AddServiceAsync(ServiceInfo service, object userState) { - if ((this.AddServiceOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndUpdateService(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateServiceAsync(ServiceInfo service) { + public void UpdateServiceAsync(ServiceInfo service) + { this.UpdateServiceAsync(service, null); } - + /// - public void UpdateServiceAsync(ServiceInfo service, object userState) { - if ((this.UpdateServiceOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndDeleteService(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteServiceAsync(int serviceId) { + public void DeleteServiceAsync(int serviceId) + { this.DeleteServiceAsync(serviceId, null); } - + /// - public void DeleteServiceAsync(int serviceId, object userState) { - if ((this.DeleteServiceOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public string[] EndGetServiceSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetServiceSettingsAsync(int serviceId) { + public void GetServiceSettingsAsync(int serviceId) + { this.GetServiceSettingsAsync(serviceId, null); } - + /// - public void GetServiceSettingsAsync(int serviceId, object userState) { - if ((this.GetServiceSettingsOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndUpdateServiceSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateServiceSettingsAsync(int serviceId, string[] settings) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public string[] EndInstallService(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void InstallServiceAsync(int serviceId) { + public void InstallServiceAsync(int serviceId) + { this.InstallServiceAsync(serviceId, null); } - + /// - public void InstallServiceAsync(int serviceId, object userState) { - if ((this.InstallServiceOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public QuotaInfo EndGetProviderServiceQuota(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((QuotaInfo)(results[0])); } - + /// - public void GetProviderServiceQuotaAsync(int providerId) { + public void GetProviderServiceQuotaAsync(int providerId) + { this.GetProviderServiceQuotaAsync(providerId, null); } - + /// - public void GetProviderServiceQuotaAsync(int providerId, object userState) { - if ((this.GetProviderServiceQuotaOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ProviderInfo[] EndGetInstalledProviders(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ProviderInfo[])(results[0])); } - + /// - public void GetInstalledProvidersAsync(int groupId) { + public void GetInstalledProvidersAsync(int groupId) + { this.GetInstalledProvidersAsync(groupId, null); } - + /// - public void GetInstalledProvidersAsync(int groupId, object userState) { - if ((this.GetInstalledProvidersOperationCompleted == 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)) { + + 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() { + [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) { + public System.IAsyncResult BeginGetResourceGroups(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetResourceGroups", new object[0], callback, asyncState); } - + /// - public ResourceGroupInfo[] EndGetResourceGroups(System.IAsyncResult asyncResult) { + public ResourceGroupInfo[] EndGetResourceGroups(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResourceGroupInfo[])(results[0])); } - + /// - public void GetResourceGroupsAsync() { + public void GetResourceGroupsAsync() + { this.GetResourceGroupsAsync(null); } - + /// - public void GetResourceGroupsAsync(object userState) { - if ((this.GetResourceGroupsOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ResourceGroupInfo EndGetResourceGroup(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResourceGroupInfo)(results[0])); } - + /// - public void GetResourceGroupAsync(int groupId) { + public void GetResourceGroupAsync(int groupId) + { this.GetResourceGroupAsync(groupId, null); } - + /// - public void GetResourceGroupAsync(int groupId, object userState) { - if ((this.GetResourceGroupOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ProviderInfo EndGetProvider(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ProviderInfo)(results[0])); } - + /// - public void GetProviderAsync(int providerId) { + public void GetProviderAsync(int providerId) + { this.GetProviderAsync(providerId, null); } - + /// - public void GetProviderAsync(int providerId, object userState) { - if ((this.GetProviderOperationCompleted == 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)) { + + 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() { + [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) { + public System.IAsyncResult BeginGetProviders(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetProviders", new object[0], callback, asyncState); } - + /// - public ProviderInfo[] EndGetProviders(System.IAsyncResult asyncResult) { + public ProviderInfo[] EndGetProviders(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ProviderInfo[])(results[0])); } - + /// - public void GetProvidersAsync() { + public void GetProvidersAsync() + { this.GetProvidersAsync(null); } - + /// - public void GetProvidersAsync(object userState) { - if ((this.GetProvidersOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ProviderInfo[] EndGetProvidersByGroupId(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ProviderInfo[])(results[0])); } - + /// - public void GetProvidersByGroupIdAsync(int groupId) { + public void GetProvidersByGroupIdAsync(int groupId) + { this.GetProvidersByGroupIdAsync(groupId, null); } - + /// - public void GetProvidersByGroupIdAsync(int groupId, object userState) { - if ((this.GetProvidersByGroupIdOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ProviderInfo EndGetPackageServiceProvider(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ProviderInfo)(results[0])); } - + /// - public void GetPackageServiceProviderAsync(int packageId, string groupName) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public BoolResult EndIsInstalled(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((BoolResult)(results[0])); } - + /// - public void IsInstalledAsync(int serverId, int providerId) { + 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)) { + 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)) { + + 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) { + [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) { + 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) { + public string EndGetServerVersion(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// - public void GetServerVersionAsync(int serverId) { + public void GetServerVersionAsync(int serverId) + { this.GetServerVersionAsync(serverId, null); } - + /// - public void GetServerVersionAsync(int serverId, object userState) { - if ((this.GetServerVersionOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public IPAddressInfo[] EndGetIPAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((IPAddressInfo[])(results[0])); } - + /// - public void GetIPAddressesAsync(IPAddressPool pool, int serverId) { + 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)) { + 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)) { + + 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) { + [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, @@ -2319,9 +2633,10 @@ namespace WebsitePanel.EnterpriseServer { 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) { + 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, @@ -2331,21 +2646,25 @@ namespace WebsitePanel.EnterpriseServer { startRow, maximumRows}, callback, asyncState); } - + /// - public IPAddressesPaged EndGetIPAddressesPaged(System.IAsyncResult asyncResult) { + 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) { + 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)) { + 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[] { @@ -2357,58 +2676,69 @@ namespace WebsitePanel.EnterpriseServer { startRow, maximumRows}, this.GetIPAddressesPagedOperationCompleted, userState); } - - private void OnGetIPAddressesPagedOperationCompleted(object arg) { - if ((this.GetIPAddressesPagedCompleted != null)) { + + 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) { + [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) { + 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) { + public IPAddressInfo EndGetIPAddress(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((IPAddressInfo)(results[0])); } - + /// - public void GetIPAddressAsync(int addressId) { + public void GetIPAddressAsync(int addressId) + { this.GetIPAddressAsync(addressId, null); } - + /// - public void GetIPAddressAsync(int addressId, object userState) { - if ((this.GetIPAddressOperationCompleted == 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)) { + + 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) { + [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, @@ -2419,9 +2749,10 @@ namespace WebsitePanel.EnterpriseServer { 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) { + 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, @@ -2431,21 +2762,25 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, callback, asyncState); } - + /// - public IntResult EndAddIPAddress(System.IAsyncResult asyncResult) { + 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) { + 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)) { + 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[] { @@ -2457,17 +2792,20 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, this.AddIPAddressOperationCompleted, userState); } - - private void OnAddIPAddressOperationCompleted(object arg) { - if ((this.AddIPAddressCompleted != null)) { + + 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) { + [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, @@ -2479,9 +2817,10 @@ namespace WebsitePanel.EnterpriseServer { 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) { + 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, @@ -2492,21 +2831,25 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, callback, asyncState); } - + /// - public ResultObject EndAddIPAddressesRange(System.IAsyncResult asyncResult) { + 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) { + 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)) { + 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[] { @@ -2519,17 +2862,20 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, this.AddIPAddressesRangeOperationCompleted, userState); } - - private void OnAddIPAddressesRangeOperationCompleted(object arg) { - if ((this.AddIPAddressesRangeCompleted != null)) { + + 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) { + [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, @@ -2541,9 +2887,10 @@ namespace WebsitePanel.EnterpriseServer { 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) { + 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, @@ -2554,21 +2901,25 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, callback, asyncState); } - + /// - public ResultObject EndUpdateIPAddress(System.IAsyncResult asyncResult) { + 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) { + 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)) { + 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[] { @@ -2581,17 +2932,20 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, this.UpdateIPAddressOperationCompleted, userState); } - - private void OnUpdateIPAddressOperationCompleted(object arg) { - if ((this.UpdateIPAddressCompleted != null)) { + + 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) { + [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, @@ -2601,9 +2955,10 @@ namespace WebsitePanel.EnterpriseServer { 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) { + 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, @@ -2612,21 +2967,25 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, callback, asyncState); } - + /// - public ResultObject EndUpdateIPAddresses(System.IAsyncResult asyncResult) { + 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) { + 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)) { + 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[] { @@ -2637,128 +2996,152 @@ namespace WebsitePanel.EnterpriseServer { defaultGateway, comments}, this.UpdateIPAddressesOperationCompleted, userState); } - - private void OnUpdateIPAddressesOperationCompleted(object arg) { - if ((this.UpdateIPAddressesCompleted != null)) { + + 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) { + [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) { + 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) { + public ResultObject EndDeleteIPAddress(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void DeleteIPAddressAsync(int addressId) { + public void DeleteIPAddressAsync(int addressId) + { this.DeleteIPAddressAsync(addressId, null); } - + /// - public void DeleteIPAddressAsync(int addressId, object userState) { - if ((this.DeleteIPAddressOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public ResultObject EndDeleteIPAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void DeleteIPAddressesAsync(int[] addresses) { + public void DeleteIPAddressesAsync(int[] addresses) + { this.DeleteIPAddressesAsync(addresses, null); } - + /// - public void DeleteIPAddressesAsync(int[] addresses, object userState) { - if ((this.DeleteIPAddressesOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public IPAddressInfo[] EndGetUnallottedIPAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((IPAddressInfo[])(results[0])); } - + /// - public void GetUnallottedIPAddressesAsync(int packageId, string groupName, IPAddressPool pool) { + 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)) { + 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[] { @@ -2766,17 +3149,20 @@ namespace WebsitePanel.EnterpriseServer { groupName, pool}, this.GetUnallottedIPAddressesOperationCompleted, userState); } - - private void OnGetUnallottedIPAddressesOperationCompleted(object arg) { - if ((this.GetUnallottedIPAddressesCompleted != null)) { + + 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) { + [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, @@ -2788,9 +3174,10 @@ namespace WebsitePanel.EnterpriseServer { 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) { + 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, @@ -2801,21 +3188,25 @@ namespace WebsitePanel.EnterpriseServer { maximumRows, recursive}, callback, asyncState); } - + /// - public PackageIPAddressesPaged EndGetPackageIPAddresses(System.IAsyncResult asyncResult) { + 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) { + 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)) { + 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[] { @@ -2828,61 +3219,72 @@ namespace WebsitePanel.EnterpriseServer { maximumRows, recursive}, this.GetPackageIPAddressesOperationCompleted, userState); } - - private void OnGetPackageIPAddressesOperationCompleted(object arg) { - if ((this.GetPackageIPAddressesCompleted != null)) { + + 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) { + [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) { + 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) { + public PackageIPAddress[] EndGetPackageUnassignedIPAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((PackageIPAddress[])(results[0])); } - + /// - public void GetPackageUnassignedIPAddressesAsync(int packageId, IPAddressPool pool) { + 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)) { + 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)) { + + 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) { + [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, @@ -2892,9 +3294,10 @@ namespace WebsitePanel.EnterpriseServer { 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) { + 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, @@ -2903,21 +3306,25 @@ namespace WebsitePanel.EnterpriseServer { addressesNumber, addressId}, callback, asyncState); } - + /// - public ResultObject EndAllocatePackageIPAddresses(System.IAsyncResult asyncResult) { + 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) { + 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)) { + 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[] { @@ -2928,46 +3335,54 @@ namespace WebsitePanel.EnterpriseServer { addressesNumber, addressId}, this.AllocatePackageIPAddressesOperationCompleted, userState); } - - private void OnAllocatePackageIPAddressesOperationCompleted(object arg) { - if ((this.AllocatePackageIPAddressesCompleted != null)) { + + 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) { + [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) { + 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) { + public ResultObject EndAllocateMaximumPackageIPAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void AllocateMaximumPackageIPAddressesAsync(int packageId, string groupName, IPAddressPool pool) { + 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)) { + 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[] { @@ -2975,796 +3390,951 @@ namespace WebsitePanel.EnterpriseServer { groupName, pool}, this.AllocateMaximumPackageIPAddressesOperationCompleted, userState); } - - private void OnAllocateMaximumPackageIPAddressesOperationCompleted(object arg) { - if ((this.AllocateMaximumPackageIPAddressesCompleted != null)) { + + 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) { + [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) { + 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) { + public ResultObject EndDeallocatePackageIPAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void DeallocatePackageIPAddressesAsync(int packageId, int[] addressId) { + 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)) { + 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)) { + + 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() { + [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) { + public System.IAsyncResult BeginGetClusters(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetClusters", new object[0], callback, asyncState); } - + /// - public ClusterInfo[] EndGetClusters(System.IAsyncResult asyncResult) { + public ClusterInfo[] EndGetClusters(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ClusterInfo[])(results[0])); } - + /// - public void GetClustersAsync() { + public void GetClustersAsync() + { this.GetClustersAsync(null); } - + /// - public void GetClustersAsync(object userState) { - if ((this.GetClustersOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndAddCluster(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddClusterAsync(ClusterInfo cluster) { + public void AddClusterAsync(ClusterInfo cluster) + { this.AddClusterAsync(cluster, null); } - + /// - public void AddClusterAsync(ClusterInfo cluster, object userState) { - if ((this.AddClusterOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public int EndDeleteCluster(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteClusterAsync(int clusterId) { + public void DeleteClusterAsync(int clusterId) + { this.DeleteClusterAsync(clusterId, null); } - + /// - public void DeleteClusterAsync(int clusterId, object userState) { - if ((this.DeleteClusterOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetRawDnsRecordsByService(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawDnsRecordsByServiceAsync(int serviceId) { + public void GetRawDnsRecordsByServiceAsync(int serviceId) + { this.GetRawDnsRecordsByServiceAsync(serviceId, null); } - + /// - public void GetRawDnsRecordsByServiceAsync(int serviceId, object userState) { - if ((this.GetRawDnsRecordsByServiceOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetRawDnsRecordsByServer(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawDnsRecordsByServerAsync(int serverId) { + public void GetRawDnsRecordsByServerAsync(int serverId) + { this.GetRawDnsRecordsByServerAsync(serverId, null); } - + /// - public void GetRawDnsRecordsByServerAsync(int serverId, object userState) { - if ((this.GetRawDnsRecordsByServerOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetRawDnsRecordsByPackage(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawDnsRecordsByPackageAsync(int packageId) { + public void GetRawDnsRecordsByPackageAsync(int packageId) + { this.GetRawDnsRecordsByPackageAsync(packageId, null); } - + /// - public void GetRawDnsRecordsByPackageAsync(int packageId, object userState) { - if ((this.GetRawDnsRecordsByPackageOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public System.Data.DataSet EndGetRawDnsRecordsByGroup(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawDnsRecordsByGroupAsync(int groupId) { + public void GetRawDnsRecordsByGroupAsync(int groupId) + { this.GetRawDnsRecordsByGroupAsync(groupId, null); } - + /// - public void GetRawDnsRecordsByGroupAsync(int groupId, object userState) { - if ((this.GetRawDnsRecordsByGroupOperationCompleted == 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)) { + + 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) { + [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) { + 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) { + public GlobalDnsRecord[] EndGetDnsRecordsByService(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((GlobalDnsRecord[])(results[0])); } - + /// - public void GetDnsRecordsByServiceAsync(int serviceId) { + public void GetDnsRecordsByServiceAsync(int serviceId) + { this.GetDnsRecordsByServiceAsync(serviceId, null); } - + /// - public void GetDnsRecordsByServiceAsync(int serviceId, object userState) { - if ((this.GetDnsRecordsByServiceOperationCompleted == 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)) { + + 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) { + [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) + { object[] results = this.Invoke("GetDnsRecordsByServer", new object[] { serverId}); return ((GlobalDnsRecord[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDnsRecordsByServer(int serverId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDnsRecordsByServer(int serverId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDnsRecordsByServer", new object[] { serverId}, callback, asyncState); } - + /// - public GlobalDnsRecord[] EndGetDnsRecordsByServer(System.IAsyncResult asyncResult) { + public GlobalDnsRecord[] EndGetDnsRecordsByServer(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((GlobalDnsRecord[])(results[0])); } - + /// - public void GetDnsRecordsByServerAsync(int serverId) { + public void GetDnsRecordsByServerAsync(int serverId) + { this.GetDnsRecordsByServerAsync(serverId, null); } - + /// - public void GetDnsRecordsByServerAsync(int serverId, object userState) { - if ((this.GetDnsRecordsByServerOperationCompleted == null)) { + public void GetDnsRecordsByServerAsync(int serverId, object userState) + { + if ((this.GetDnsRecordsByServerOperationCompleted == null)) + { this.GetDnsRecordsByServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDnsRecordsByServerOperationCompleted); } this.InvokeAsync("GetDnsRecordsByServer", new object[] { serverId}, this.GetDnsRecordsByServerOperationCompleted, userState); } - - private void OnGetDnsRecordsByServerOperationCompleted(object arg) { - if ((this.GetDnsRecordsByServerCompleted != null)) { + + private void OnGetDnsRecordsByServerOperationCompleted(object arg) + { + if ((this.GetDnsRecordsByServerCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDnsRecordsByServerCompleted(this, new GetDnsRecordsByServerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecordsByPackage", 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[] GetDnsRecordsByPackage(int packageId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecordsByPackage", 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[] GetDnsRecordsByPackage(int packageId) + { object[] results = this.Invoke("GetDnsRecordsByPackage", new object[] { packageId}); return ((GlobalDnsRecord[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDnsRecordsByPackage(int packageId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDnsRecordsByPackage(int packageId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDnsRecordsByPackage", new object[] { packageId}, callback, asyncState); } - + /// - public GlobalDnsRecord[] EndGetDnsRecordsByPackage(System.IAsyncResult asyncResult) { + public GlobalDnsRecord[] EndGetDnsRecordsByPackage(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((GlobalDnsRecord[])(results[0])); } - + /// - public void GetDnsRecordsByPackageAsync(int packageId) { + public void GetDnsRecordsByPackageAsync(int packageId) + { this.GetDnsRecordsByPackageAsync(packageId, null); } - + /// - public void GetDnsRecordsByPackageAsync(int packageId, object userState) { - if ((this.GetDnsRecordsByPackageOperationCompleted == null)) { + public void GetDnsRecordsByPackageAsync(int packageId, object userState) + { + if ((this.GetDnsRecordsByPackageOperationCompleted == null)) + { this.GetDnsRecordsByPackageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDnsRecordsByPackageOperationCompleted); } this.InvokeAsync("GetDnsRecordsByPackage", new object[] { packageId}, this.GetDnsRecordsByPackageOperationCompleted, userState); } - - private void OnGetDnsRecordsByPackageOperationCompleted(object arg) { - if ((this.GetDnsRecordsByPackageCompleted != null)) { + + private void OnGetDnsRecordsByPackageOperationCompleted(object arg) + { + if ((this.GetDnsRecordsByPackageCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDnsRecordsByPackageCompleted(this, new GetDnsRecordsByPackageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecordsByGroup", 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[] GetDnsRecordsByGroup(int groupId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecordsByGroup", 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[] GetDnsRecordsByGroup(int groupId) + { object[] results = this.Invoke("GetDnsRecordsByGroup", new object[] { groupId}); return ((GlobalDnsRecord[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDnsRecordsByGroup(int groupId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDnsRecordsByGroup(int groupId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDnsRecordsByGroup", new object[] { groupId}, callback, asyncState); } - + /// - public GlobalDnsRecord[] EndGetDnsRecordsByGroup(System.IAsyncResult asyncResult) { + public GlobalDnsRecord[] EndGetDnsRecordsByGroup(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((GlobalDnsRecord[])(results[0])); } - + /// - public void GetDnsRecordsByGroupAsync(int groupId) { + public void GetDnsRecordsByGroupAsync(int groupId) + { this.GetDnsRecordsByGroupAsync(groupId, null); } - + /// - public void GetDnsRecordsByGroupAsync(int groupId, object userState) { - if ((this.GetDnsRecordsByGroupOperationCompleted == null)) { + public void GetDnsRecordsByGroupAsync(int groupId, object userState) + { + if ((this.GetDnsRecordsByGroupOperationCompleted == null)) + { this.GetDnsRecordsByGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDnsRecordsByGroupOperationCompleted); } this.InvokeAsync("GetDnsRecordsByGroup", new object[] { groupId}, this.GetDnsRecordsByGroupOperationCompleted, userState); } - - private void OnGetDnsRecordsByGroupOperationCompleted(object arg) { - if ((this.GetDnsRecordsByGroupCompleted != null)) { + + private void OnGetDnsRecordsByGroupOperationCompleted(object arg) + { + if ((this.GetDnsRecordsByGroupCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDnsRecordsByGroupCompleted(this, new GetDnsRecordsByGroupCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecord", 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 GetDnsRecord(int recordId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsRecord", 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 GetDnsRecord(int recordId) + { object[] results = this.Invoke("GetDnsRecord", new object[] { recordId}); return ((GlobalDnsRecord)(results[0])); } - + /// - public System.IAsyncResult BeginGetDnsRecord(int recordId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDnsRecord(int recordId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDnsRecord", new object[] { recordId}, callback, asyncState); } - + /// - public GlobalDnsRecord EndGetDnsRecord(System.IAsyncResult asyncResult) { + public GlobalDnsRecord EndGetDnsRecord(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((GlobalDnsRecord)(results[0])); } - + /// - public void GetDnsRecordAsync(int recordId) { + public void GetDnsRecordAsync(int recordId) + { this.GetDnsRecordAsync(recordId, null); } - + /// - public void GetDnsRecordAsync(int recordId, object userState) { - if ((this.GetDnsRecordOperationCompleted == null)) { + public void GetDnsRecordAsync(int recordId, object userState) + { + if ((this.GetDnsRecordOperationCompleted == null)) + { this.GetDnsRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDnsRecordOperationCompleted); } this.InvokeAsync("GetDnsRecord", new object[] { recordId}, this.GetDnsRecordOperationCompleted, userState); } - - private void OnGetDnsRecordOperationCompleted(object arg) { - if ((this.GetDnsRecordCompleted != null)) { + + private void OnGetDnsRecordOperationCompleted(object arg) + { + if ((this.GetDnsRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDnsRecordCompleted(this, new GetDnsRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDnsRecord", 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 AddDnsRecord(GlobalDnsRecord record) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDnsRecord", 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 AddDnsRecord(GlobalDnsRecord record) + { object[] results = this.Invoke("AddDnsRecord", new object[] { record}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginAddDnsRecord(GlobalDnsRecord record, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddDnsRecord(GlobalDnsRecord record, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddDnsRecord", new object[] { record}, callback, asyncState); } - + /// - public int EndAddDnsRecord(System.IAsyncResult asyncResult) { + public int EndAddDnsRecord(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddDnsRecordAsync(GlobalDnsRecord record) { + public void AddDnsRecordAsync(GlobalDnsRecord record) + { this.AddDnsRecordAsync(record, null); } - + /// - public void AddDnsRecordAsync(GlobalDnsRecord record, object userState) { - if ((this.AddDnsRecordOperationCompleted == null)) { + public void AddDnsRecordAsync(GlobalDnsRecord record, object userState) + { + if ((this.AddDnsRecordOperationCompleted == null)) + { this.AddDnsRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDnsRecordOperationCompleted); } this.InvokeAsync("AddDnsRecord", new object[] { record}, this.AddDnsRecordOperationCompleted, userState); } - - private void OnAddDnsRecordOperationCompleted(object arg) { - if ((this.AddDnsRecordCompleted != null)) { + + private void OnAddDnsRecordOperationCompleted(object arg) + { + if ((this.AddDnsRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddDnsRecordCompleted(this, new AddDnsRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateDnsRecord", 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 UpdateDnsRecord(GlobalDnsRecord record) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateDnsRecord", 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 UpdateDnsRecord(GlobalDnsRecord record) + { object[] results = this.Invoke("UpdateDnsRecord", new object[] { record}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginUpdateDnsRecord(GlobalDnsRecord record, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateDnsRecord(GlobalDnsRecord record, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateDnsRecord", new object[] { record}, callback, asyncState); } - + /// - public int EndUpdateDnsRecord(System.IAsyncResult asyncResult) { + public int EndUpdateDnsRecord(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateDnsRecordAsync(GlobalDnsRecord record) { + public void UpdateDnsRecordAsync(GlobalDnsRecord record) + { this.UpdateDnsRecordAsync(record, null); } - + /// - public void UpdateDnsRecordAsync(GlobalDnsRecord record, object userState) { - if ((this.UpdateDnsRecordOperationCompleted == null)) { + public void UpdateDnsRecordAsync(GlobalDnsRecord record, object userState) + { + if ((this.UpdateDnsRecordOperationCompleted == null)) + { this.UpdateDnsRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDnsRecordOperationCompleted); } this.InvokeAsync("UpdateDnsRecord", new object[] { record}, this.UpdateDnsRecordOperationCompleted, userState); } - - private void OnUpdateDnsRecordOperationCompleted(object arg) { - if ((this.UpdateDnsRecordCompleted != null)) { + + private void OnUpdateDnsRecordOperationCompleted(object arg) + { + if ((this.UpdateDnsRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateDnsRecordCompleted(this, new UpdateDnsRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDnsRecord", 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 DeleteDnsRecord(int recordId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDnsRecord", 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 DeleteDnsRecord(int recordId) + { object[] results = this.Invoke("DeleteDnsRecord", new object[] { recordId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteDnsRecord(int recordId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteDnsRecord(int recordId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteDnsRecord", new object[] { recordId}, callback, asyncState); } - + /// - public int EndDeleteDnsRecord(System.IAsyncResult asyncResult) { + public int EndDeleteDnsRecord(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteDnsRecordAsync(int recordId) { + public void DeleteDnsRecordAsync(int recordId) + { this.DeleteDnsRecordAsync(recordId, null); } - + /// - public void DeleteDnsRecordAsync(int recordId, object userState) { - if ((this.DeleteDnsRecordOperationCompleted == null)) { + public void DeleteDnsRecordAsync(int recordId, object userState) + { + if ((this.DeleteDnsRecordOperationCompleted == null)) + { this.DeleteDnsRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDnsRecordOperationCompleted); } this.InvokeAsync("DeleteDnsRecord", new object[] { recordId}, this.DeleteDnsRecordOperationCompleted, userState); } - - private void OnDeleteDnsRecordOperationCompleted(object arg) { - if ((this.DeleteDnsRecordCompleted != null)) { + + private void OnDeleteDnsRecordOperationCompleted(object arg) + { + if ((this.DeleteDnsRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDnsRecordCompleted(this, new DeleteDnsRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDomains", 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 DomainInfo[] GetDomains(int packageId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDomains", 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 DomainInfo[] GetDomains(int packageId) + { object[] results = this.Invoke("GetDomains", new object[] { packageId}); return ((DomainInfo[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDomains(int packageId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDomains(int packageId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDomains", new object[] { packageId}, callback, asyncState); } - + /// - public DomainInfo[] EndGetDomains(System.IAsyncResult asyncResult) { + public DomainInfo[] EndGetDomains(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((DomainInfo[])(results[0])); } - + /// - public void GetDomainsAsync(int packageId) { + public void GetDomainsAsync(int packageId) + { this.GetDomainsAsync(packageId, null); } - + /// - public void GetDomainsAsync(int packageId, object userState) { - if ((this.GetDomainsOperationCompleted == null)) { + public void GetDomainsAsync(int packageId, object userState) + { + if ((this.GetDomainsOperationCompleted == null)) + { this.GetDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDomainsOperationCompleted); } this.InvokeAsync("GetDomains", new object[] { packageId}, this.GetDomainsOperationCompleted, userState); } - - private void OnGetDomainsOperationCompleted(object arg) { - if ((this.GetDomainsCompleted != null)) { + + private void OnGetDomainsOperationCompleted(object arg) + { + if ((this.GetDomainsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDomainsCompleted(this, new GetDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetMyDomains", 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 DomainInfo[] GetMyDomains(int packageId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetMyDomains", 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 DomainInfo[] GetMyDomains(int packageId) + { object[] results = this.Invoke("GetMyDomains", new object[] { packageId}); return ((DomainInfo[])(results[0])); } - + /// - public System.IAsyncResult BeginGetMyDomains(int packageId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMyDomains(int packageId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMyDomains", new object[] { packageId}, callback, asyncState); } - + /// - public DomainInfo[] EndGetMyDomains(System.IAsyncResult asyncResult) { + public DomainInfo[] EndGetMyDomains(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((DomainInfo[])(results[0])); } - + /// - public void GetMyDomainsAsync(int packageId) { + public void GetMyDomainsAsync(int packageId) + { this.GetMyDomainsAsync(packageId, null); } - + /// - public void GetMyDomainsAsync(int packageId, object userState) { - if ((this.GetMyDomainsOperationCompleted == null)) { + public void GetMyDomainsAsync(int packageId, object userState) + { + if ((this.GetMyDomainsOperationCompleted == null)) + { this.GetMyDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMyDomainsOperationCompleted); } this.InvokeAsync("GetMyDomains", new object[] { packageId}, this.GetMyDomainsOperationCompleted, userState); } - - private void OnGetMyDomainsOperationCompleted(object arg) { - if ((this.GetMyDomainsCompleted != null)) { + + private void OnGetMyDomainsOperationCompleted(object arg) + { + if ((this.GetMyDomainsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMyDomainsCompleted(this, new GetMyDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetResellerDomains", 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 DomainInfo[] GetResellerDomains(int packageId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetResellerDomains", 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 DomainInfo[] GetResellerDomains(int packageId) + { object[] results = this.Invoke("GetResellerDomains", new object[] { packageId}); return ((DomainInfo[])(results[0])); } - + /// - public System.IAsyncResult BeginGetResellerDomains(int packageId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetResellerDomains(int packageId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetResellerDomains", new object[] { packageId}, callback, asyncState); } - + /// - public DomainInfo[] EndGetResellerDomains(System.IAsyncResult asyncResult) { + public DomainInfo[] EndGetResellerDomains(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((DomainInfo[])(results[0])); } - + /// - public void GetResellerDomainsAsync(int packageId) { + public void GetResellerDomainsAsync(int packageId) + { this.GetResellerDomainsAsync(packageId, null); } - + /// - public void GetResellerDomainsAsync(int packageId, object userState) { - if ((this.GetResellerDomainsOperationCompleted == null)) { + public void GetResellerDomainsAsync(int packageId, object userState) + { + if ((this.GetResellerDomainsOperationCompleted == null)) + { this.GetResellerDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetResellerDomainsOperationCompleted); } this.InvokeAsync("GetResellerDomains", new object[] { packageId}, this.GetResellerDomainsOperationCompleted, userState); } - - private void OnGetResellerDomainsOperationCompleted(object arg) { - if ((this.GetResellerDomainsCompleted != null)) { + + private void OnGetResellerDomainsOperationCompleted(object arg) + { + if ((this.GetResellerDomainsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetResellerDomainsCompleted(this, new GetResellerDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDomainsPaged", 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 GetDomainsPaged(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDomainsPaged", 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 GetDomainsPaged(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) + { object[] results = this.Invoke("GetDomainsPaged", new object[] { packageId, serverId, @@ -3776,9 +4346,10 @@ namespace WebsitePanel.EnterpriseServer { maximumRows}); return ((System.Data.DataSet)(results[0])); } - + /// - public System.IAsyncResult BeginGetDomainsPaged(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDomainsPaged(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDomainsPaged", new object[] { packageId, serverId, @@ -3789,21 +4360,25 @@ namespace WebsitePanel.EnterpriseServer { startRow, maximumRows}, callback, asyncState); } - + /// - public System.Data.DataSet EndGetDomainsPaged(System.IAsyncResult asyncResult) { + public System.Data.DataSet EndGetDomainsPaged(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetDomainsPagedAsync(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { + public void GetDomainsPagedAsync(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) + { this.GetDomainsPagedAsync(packageId, serverId, recursive, filterColumn, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetDomainsPagedAsync(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { - if ((this.GetDomainsPagedOperationCompleted == null)) { + public void GetDomainsPagedAsync(int packageId, int serverId, bool recursive, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) + { + if ((this.GetDomainsPagedOperationCompleted == null)) + { this.GetDomainsPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDomainsPagedOperationCompleted); } this.InvokeAsync("GetDomainsPaged", new object[] { @@ -3816,99 +4391,118 @@ namespace WebsitePanel.EnterpriseServer { startRow, maximumRows}, this.GetDomainsPagedOperationCompleted, userState); } - - private void OnGetDomainsPagedOperationCompleted(object arg) { - if ((this.GetDomainsPagedCompleted != null)) { + + private void OnGetDomainsPagedOperationCompleted(object arg) + { + if ((this.GetDomainsPagedCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDomainsPagedCompleted(this, new GetDomainsPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDomain", 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 DomainInfo GetDomain(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDomain", 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 DomainInfo GetDomain(int domainId) + { object[] results = this.Invoke("GetDomain", new object[] { domainId}); return ((DomainInfo)(results[0])); } - + /// - public System.IAsyncResult BeginGetDomain(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDomain(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDomain", new object[] { domainId}, callback, asyncState); } - + /// - public DomainInfo EndGetDomain(System.IAsyncResult asyncResult) { + public DomainInfo EndGetDomain(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((DomainInfo)(results[0])); } - + /// - public void GetDomainAsync(int domainId) { + public void GetDomainAsync(int domainId) + { this.GetDomainAsync(domainId, null); } - + /// - public void GetDomainAsync(int domainId, object userState) { - if ((this.GetDomainOperationCompleted == null)) { + public void GetDomainAsync(int domainId, object userState) + { + if ((this.GetDomainOperationCompleted == null)) + { this.GetDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDomainOperationCompleted); } this.InvokeAsync("GetDomain", new object[] { domainId}, this.GetDomainOperationCompleted, userState); } - - private void OnGetDomainOperationCompleted(object arg) { - if ((this.GetDomainCompleted != null)) { + + private void OnGetDomainOperationCompleted(object arg) + { + if ((this.GetDomainCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDomainCompleted(this, new GetDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDomain", 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 AddDomain(DomainInfo domain) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDomain", 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 AddDomain(DomainInfo domain) + { object[] results = this.Invoke("AddDomain", new object[] { domain}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginAddDomain(DomainInfo domain, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddDomain(DomainInfo domain, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddDomain", new object[] { domain}, callback, asyncState); } - + /// - public int EndAddDomain(System.IAsyncResult asyncResult) { + public int EndAddDomain(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddDomainAsync(DomainInfo domain) { + public void AddDomainAsync(DomainInfo domain) + { this.AddDomainAsync(domain, null); } - + /// - public void AddDomainAsync(DomainInfo domain, object userState) { - if ((this.AddDomainOperationCompleted == null)) { + public void AddDomainAsync(DomainInfo domain, object userState) + { + if ((this.AddDomainOperationCompleted == null)) + { this.AddDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDomainOperationCompleted); } this.InvokeAsync("AddDomain", new object[] { domain}, this.AddDomainOperationCompleted, userState); } - - private void OnAddDomainOperationCompleted(object arg) { - if ((this.AddDomainCompleted != null)) { + + private void OnAddDomainOperationCompleted(object arg) + { + if ((this.AddDomainCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddDomainCompleted(this, new AddDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDomainWithProvisioning", 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 AddDomainWithProvisioning(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDomainWithProvisioning", 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 AddDomainWithProvisioning(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains) + { object[] results = this.Invoke("AddDomainWithProvisioning", new object[] { packageId, domainName, @@ -3921,9 +4515,10 @@ namespace WebsitePanel.EnterpriseServer { allowSubDomains}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginAddDomainWithProvisioning(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddDomainWithProvisioning(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddDomainWithProvisioning", new object[] { packageId, domainName, @@ -3935,21 +4530,25 @@ namespace WebsitePanel.EnterpriseServer { createInstantAlias, allowSubDomains}, callback, asyncState); } - + /// - public int EndAddDomainWithProvisioning(System.IAsyncResult asyncResult) { + public int EndAddDomainWithProvisioning(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddDomainWithProvisioningAsync(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains) { + public void AddDomainWithProvisioningAsync(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains) + { this.AddDomainWithProvisioningAsync(packageId, domainName, domainType, createWebSite, pointWebSiteId, pointMailDomainId, createDnsZone, createInstantAlias, allowSubDomains, null); } - + /// - public void AddDomainWithProvisioningAsync(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains, object userState) { - if ((this.AddDomainWithProvisioningOperationCompleted == null)) { + public void AddDomainWithProvisioningAsync(int packageId, string domainName, DomainType domainType, bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains, object userState) + { + if ((this.AddDomainWithProvisioningOperationCompleted == null)) + { this.AddDomainWithProvisioningOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDomainWithProvisioningOperationCompleted); } this.InvokeAsync("AddDomainWithProvisioning", new object[] { @@ -3963,419 +4562,508 @@ namespace WebsitePanel.EnterpriseServer { createInstantAlias, allowSubDomains}, this.AddDomainWithProvisioningOperationCompleted, userState); } - - private void OnAddDomainWithProvisioningOperationCompleted(object arg) { - if ((this.AddDomainWithProvisioningCompleted != null)) { + + private void OnAddDomainWithProvisioningOperationCompleted(object arg) + { + if ((this.AddDomainWithProvisioningCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddDomainWithProvisioningCompleted(this, new AddDomainWithProvisioningCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateDomain", 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 UpdateDomain(DomainInfo domain) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateDomain", 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 UpdateDomain(DomainInfo domain) + { object[] results = this.Invoke("UpdateDomain", new object[] { domain}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginUpdateDomain(DomainInfo domain, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateDomain(DomainInfo domain, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateDomain", new object[] { domain}, callback, asyncState); } - + /// - public int EndUpdateDomain(System.IAsyncResult asyncResult) { + public int EndUpdateDomain(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateDomainAsync(DomainInfo domain) { + public void UpdateDomainAsync(DomainInfo domain) + { this.UpdateDomainAsync(domain, null); } - + /// - public void UpdateDomainAsync(DomainInfo domain, object userState) { - if ((this.UpdateDomainOperationCompleted == null)) { + public void UpdateDomainAsync(DomainInfo domain, object userState) + { + if ((this.UpdateDomainOperationCompleted == null)) + { this.UpdateDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDomainOperationCompleted); } this.InvokeAsync("UpdateDomain", new object[] { domain}, this.UpdateDomainOperationCompleted, userState); } - - private void OnUpdateDomainOperationCompleted(object arg) { - if ((this.UpdateDomainCompleted != null)) { + + private void OnUpdateDomainOperationCompleted(object arg) + { + if ((this.UpdateDomainCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateDomainCompleted(this, new UpdateDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDomain", 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 DeleteDomain(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDomain", 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 DeleteDomain(int domainId) + { object[] results = this.Invoke("DeleteDomain", new object[] { domainId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteDomain(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteDomain(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteDomain", new object[] { domainId}, callback, asyncState); } - + /// - public int EndDeleteDomain(System.IAsyncResult asyncResult) { + public int EndDeleteDomain(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteDomainAsync(int domainId) { + public void DeleteDomainAsync(int domainId) + { this.DeleteDomainAsync(domainId, null); } - + /// - public void DeleteDomainAsync(int domainId, object userState) { - if ((this.DeleteDomainOperationCompleted == null)) { + public void DeleteDomainAsync(int domainId, object userState) + { + if ((this.DeleteDomainOperationCompleted == null)) + { this.DeleteDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDomainOperationCompleted); } this.InvokeAsync("DeleteDomain", new object[] { domainId}, this.DeleteDomainOperationCompleted, userState); } - - private void OnDeleteDomainOperationCompleted(object arg) { - if ((this.DeleteDomainCompleted != null)) { + + private void OnDeleteDomainOperationCompleted(object arg) + { + if ((this.DeleteDomainCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDomainCompleted(this, new DeleteDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DetachDomain", 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 DetachDomain(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DetachDomain", 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 DetachDomain(int domainId) + { object[] results = this.Invoke("DetachDomain", new object[] { domainId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginDetachDomain(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDetachDomain(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DetachDomain", new object[] { domainId}, callback, asyncState); } - + /// - public int EndDetachDomain(System.IAsyncResult asyncResult) { + public int EndDetachDomain(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DetachDomainAsync(int domainId) { + public void DetachDomainAsync(int domainId) + { this.DetachDomainAsync(domainId, null); } - + /// - public void DetachDomainAsync(int domainId, object userState) { - if ((this.DetachDomainOperationCompleted == null)) { + public void DetachDomainAsync(int domainId, object userState) + { + if ((this.DetachDomainOperationCompleted == null)) + { this.DetachDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDetachDomainOperationCompleted); } this.InvokeAsync("DetachDomain", new object[] { domainId}, this.DetachDomainOperationCompleted, userState); } - - private void OnDetachDomainOperationCompleted(object arg) { - if ((this.DetachDomainCompleted != null)) { + + private void OnDetachDomainOperationCompleted(object arg) + { + if ((this.DetachDomainCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DetachDomainCompleted(this, new DetachDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/EnableDomainDns", 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 EnableDomainDns(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/EnableDomainDns", 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 EnableDomainDns(int domainId) + { object[] results = this.Invoke("EnableDomainDns", new object[] { domainId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginEnableDomainDns(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginEnableDomainDns(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("EnableDomainDns", new object[] { domainId}, callback, asyncState); } - + /// - public int EndEnableDomainDns(System.IAsyncResult asyncResult) { + public int EndEnableDomainDns(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void EnableDomainDnsAsync(int domainId) { + public void EnableDomainDnsAsync(int domainId) + { this.EnableDomainDnsAsync(domainId, null); } - + /// - public void EnableDomainDnsAsync(int domainId, object userState) { - if ((this.EnableDomainDnsOperationCompleted == null)) { + public void EnableDomainDnsAsync(int domainId, object userState) + { + if ((this.EnableDomainDnsOperationCompleted == null)) + { this.EnableDomainDnsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnableDomainDnsOperationCompleted); } this.InvokeAsync("EnableDomainDns", new object[] { domainId}, this.EnableDomainDnsOperationCompleted, userState); } - - private void OnEnableDomainDnsOperationCompleted(object arg) { - if ((this.EnableDomainDnsCompleted != null)) { + + private void OnEnableDomainDnsOperationCompleted(object arg) + { + if ((this.EnableDomainDnsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.EnableDomainDnsCompleted(this, new EnableDomainDnsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DisableDomainDns", 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 DisableDomainDns(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DisableDomainDns", 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 DisableDomainDns(int domainId) + { object[] results = this.Invoke("DisableDomainDns", new object[] { domainId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginDisableDomainDns(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDisableDomainDns(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DisableDomainDns", new object[] { domainId}, callback, asyncState); } - + /// - public int EndDisableDomainDns(System.IAsyncResult asyncResult) { + public int EndDisableDomainDns(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DisableDomainDnsAsync(int domainId) { + public void DisableDomainDnsAsync(int domainId) + { this.DisableDomainDnsAsync(domainId, null); } - + /// - public void DisableDomainDnsAsync(int domainId, object userState) { - if ((this.DisableDomainDnsOperationCompleted == null)) { + public void DisableDomainDnsAsync(int domainId, object userState) + { + if ((this.DisableDomainDnsOperationCompleted == null)) + { this.DisableDomainDnsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableDomainDnsOperationCompleted); } this.InvokeAsync("DisableDomainDns", new object[] { domainId}, this.DisableDomainDnsOperationCompleted, userState); } - - private void OnDisableDomainDnsOperationCompleted(object arg) { - if ((this.DisableDomainDnsCompleted != null)) { + + private void OnDisableDomainDnsOperationCompleted(object arg) + { + if ((this.DisableDomainDnsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DisableDomainDnsCompleted(this, new DisableDomainDnsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateDomainInstantAlias", 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 CreateDomainInstantAlias(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateDomainInstantAlias", 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 CreateDomainInstantAlias(string hostName, int domainId) + { object[] results = this.Invoke("CreateDomainInstantAlias", new object[] { + hostName, domainId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginCreateDomainInstantAlias(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateDomainInstantAlias(string hostName, int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateDomainInstantAlias", new object[] { + hostName, domainId}, callback, asyncState); } - + /// - public int EndCreateDomainInstantAlias(System.IAsyncResult asyncResult) { + public int EndCreateDomainInstantAlias(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void CreateDomainInstantAliasAsync(int domainId) { - this.CreateDomainInstantAliasAsync(domainId, null); + public void CreateDomainInstantAliasAsync(string hostName, int domainId) + { + this.CreateDomainInstantAliasAsync(hostName, domainId, null); } - + /// - public void CreateDomainInstantAliasAsync(int domainId, object userState) { - if ((this.CreateDomainInstantAliasOperationCompleted == null)) { + public void CreateDomainInstantAliasAsync(string hostName, int domainId, object userState) + { + if ((this.CreateDomainInstantAliasOperationCompleted == null)) + { this.CreateDomainInstantAliasOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDomainInstantAliasOperationCompleted); } this.InvokeAsync("CreateDomainInstantAlias", new object[] { + hostName, domainId}, this.CreateDomainInstantAliasOperationCompleted, userState); } - - private void OnCreateDomainInstantAliasOperationCompleted(object arg) { - if ((this.CreateDomainInstantAliasCompleted != null)) { + + private void OnCreateDomainInstantAliasOperationCompleted(object arg) + { + if ((this.CreateDomainInstantAliasCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateDomainInstantAliasCompleted(this, new CreateDomainInstantAliasCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDomainInstantAlias", 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 DeleteDomainInstantAlias(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDomainInstantAlias", 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 DeleteDomainInstantAlias(int domainId) + { object[] results = this.Invoke("DeleteDomainInstantAlias", new object[] { domainId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteDomainInstantAlias(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteDomainInstantAlias(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteDomainInstantAlias", new object[] { domainId}, callback, asyncState); } - + /// - public int EndDeleteDomainInstantAlias(System.IAsyncResult asyncResult) { + public int EndDeleteDomainInstantAlias(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteDomainInstantAliasAsync(int domainId) { + public void DeleteDomainInstantAliasAsync(int domainId) + { this.DeleteDomainInstantAliasAsync(domainId, null); } - + /// - public void DeleteDomainInstantAliasAsync(int domainId, object userState) { - if ((this.DeleteDomainInstantAliasOperationCompleted == null)) { + public void DeleteDomainInstantAliasAsync(int domainId, object userState) + { + if ((this.DeleteDomainInstantAliasOperationCompleted == null)) + { this.DeleteDomainInstantAliasOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDomainInstantAliasOperationCompleted); } this.InvokeAsync("DeleteDomainInstantAlias", new object[] { domainId}, this.DeleteDomainInstantAliasOperationCompleted, userState); } - - private void OnDeleteDomainInstantAliasOperationCompleted(object arg) { - if ((this.DeleteDomainInstantAliasCompleted != null)) { + + private void OnDeleteDomainInstantAliasOperationCompleted(object arg) + { + if ((this.DeleteDomainInstantAliasCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDomainInstantAliasCompleted(this, new DeleteDomainInstantAliasCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsZoneRecords", 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 DnsRecord[] GetDnsZoneRecords(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDnsZoneRecords", 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 DnsRecord[] GetDnsZoneRecords(int domainId) + { object[] results = this.Invoke("GetDnsZoneRecords", new object[] { domainId}); return ((DnsRecord[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDnsZoneRecords(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDnsZoneRecords(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDnsZoneRecords", new object[] { domainId}, callback, asyncState); } - + /// - public DnsRecord[] EndGetDnsZoneRecords(System.IAsyncResult asyncResult) { + public DnsRecord[] EndGetDnsZoneRecords(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((DnsRecord[])(results[0])); } - + /// - public void GetDnsZoneRecordsAsync(int domainId) { + public void GetDnsZoneRecordsAsync(int domainId) + { this.GetDnsZoneRecordsAsync(domainId, null); } - + /// - public void GetDnsZoneRecordsAsync(int domainId, object userState) { - if ((this.GetDnsZoneRecordsOperationCompleted == null)) { + public void GetDnsZoneRecordsAsync(int domainId, object userState) + { + if ((this.GetDnsZoneRecordsOperationCompleted == null)) + { this.GetDnsZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDnsZoneRecordsOperationCompleted); } this.InvokeAsync("GetDnsZoneRecords", new object[] { domainId}, this.GetDnsZoneRecordsOperationCompleted, userState); } - - private void OnGetDnsZoneRecordsOperationCompleted(object arg) { - if ((this.GetDnsZoneRecordsCompleted != null)) { + + private void OnGetDnsZoneRecordsOperationCompleted(object arg) + { + if ((this.GetDnsZoneRecordsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDnsZoneRecordsCompleted(this, new GetDnsZoneRecordsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsZoneRecords", 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 GetRawDnsZoneRecords(int domainId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawDnsZoneRecords", 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 GetRawDnsZoneRecords(int domainId) + { object[] results = this.Invoke("GetRawDnsZoneRecords", new object[] { domainId}); return ((System.Data.DataSet)(results[0])); } - + /// - public System.IAsyncResult BeginGetRawDnsZoneRecords(int domainId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetRawDnsZoneRecords(int domainId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetRawDnsZoneRecords", new object[] { domainId}, callback, asyncState); } - + /// - public System.Data.DataSet EndGetRawDnsZoneRecords(System.IAsyncResult asyncResult) { + public System.Data.DataSet EndGetRawDnsZoneRecords(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((System.Data.DataSet)(results[0])); } - + /// - public void GetRawDnsZoneRecordsAsync(int domainId) { + public void GetRawDnsZoneRecordsAsync(int domainId) + { this.GetRawDnsZoneRecordsAsync(domainId, null); } - + /// - public void GetRawDnsZoneRecordsAsync(int domainId, object userState) { - if ((this.GetRawDnsZoneRecordsOperationCompleted == null)) { + public void GetRawDnsZoneRecordsAsync(int domainId, object userState) + { + if ((this.GetRawDnsZoneRecordsOperationCompleted == null)) + { this.GetRawDnsZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawDnsZoneRecordsOperationCompleted); } this.InvokeAsync("GetRawDnsZoneRecords", new object[] { domainId}, this.GetRawDnsZoneRecordsOperationCompleted, userState); } - - private void OnGetRawDnsZoneRecordsOperationCompleted(object arg) { - if ((this.GetRawDnsZoneRecordsCompleted != null)) { + + private void OnGetRawDnsZoneRecordsOperationCompleted(object arg) + { + if ((this.GetRawDnsZoneRecordsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetRawDnsZoneRecordsCompleted(this, new GetRawDnsZoneRecordsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDnsZoneRecord", 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 AddDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddDnsZoneRecord", 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 AddDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber) + { object[] results = this.Invoke("AddDnsZoneRecord", new object[] { domainId, recordName, recordType, recordData, - mxPriority}); + mxPriority, + srvPriority, + srvWeight, + srvPortNumber}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginAddDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddDnsZoneRecord", new object[] { domainId, recordName, recordType, recordData, - mxPriority}, callback, asyncState); + mxPriority, + srvPriority, + srvWeight, + srvPortNumber}, callback, asyncState); } - + /// - public int EndAddDnsZoneRecord(System.IAsyncResult asyncResult) { + public int EndAddDnsZoneRecord(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority) { - this.AddDnsZoneRecordAsync(domainId, recordName, recordType, recordData, mxPriority, null); + public void AddDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber) + { + this.AddDnsZoneRecordAsync(domainId, recordName, recordType, recordData, mxPriority, srvPriority, srvWeight, srvPortNumber, null); } - + /// - public void AddDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority, object userState) { - if ((this.AddDnsZoneRecordOperationCompleted == null)) { + public void AddDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber, object userState) + { + if ((this.AddDnsZoneRecordOperationCompleted == null)) + { this.AddDnsZoneRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDnsZoneRecordOperationCompleted); } this.InvokeAsync("AddDnsZoneRecord", new object[] { @@ -4383,19 +5071,25 @@ namespace WebsitePanel.EnterpriseServer { recordName, recordType, recordData, - mxPriority}, this.AddDnsZoneRecordOperationCompleted, userState); + mxPriority, + srvPriority, + srvWeight, + srvPortNumber}, this.AddDnsZoneRecordOperationCompleted, userState); } - - private void OnAddDnsZoneRecordOperationCompleted(object arg) { - if ((this.AddDnsZoneRecordCompleted != null)) { + + private void OnAddDnsZoneRecordOperationCompleted(object arg) + { + if ((this.AddDnsZoneRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddDnsZoneRecordCompleted(this, new AddDnsZoneRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateDnsZoneRecord", 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 UpdateDnsZoneRecord(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateDnsZoneRecord", 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 UpdateDnsZoneRecord(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber) + { object[] results = this.Invoke("UpdateDnsZoneRecord", new object[] { domainId, originalRecordName, @@ -4403,12 +5097,16 @@ namespace WebsitePanel.EnterpriseServer { recordName, recordType, recordData, - mxPriority}); + mxPriority, + srvPriority, + srvWeight, + srvPortNumber}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginUpdateDnsZoneRecord(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateDnsZoneRecord(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateDnsZoneRecord", new object[] { domainId, originalRecordName, @@ -4416,23 +5114,30 @@ namespace WebsitePanel.EnterpriseServer { recordName, recordType, recordData, - mxPriority}, callback, asyncState); + mxPriority, + srvPriority, + srvWeight, + srvPortNumber}, callback, asyncState); } - + /// - public int EndUpdateDnsZoneRecord(System.IAsyncResult asyncResult) { + public int EndUpdateDnsZoneRecord(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void UpdateDnsZoneRecordAsync(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority) { - this.UpdateDnsZoneRecordAsync(domainId, originalRecordName, originalRecordData, recordName, recordType, recordData, mxPriority, null); + public void UpdateDnsZoneRecordAsync(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber) + { + this.UpdateDnsZoneRecordAsync(domainId, originalRecordName, originalRecordData, recordName, recordType, recordData, mxPriority, srvPriority, srvWeight, srvPortNumber, null); } - + /// - public void UpdateDnsZoneRecordAsync(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority, object userState) { - if ((this.UpdateDnsZoneRecordOperationCompleted == null)) { + public void UpdateDnsZoneRecordAsync(int domainId, string originalRecordName, string originalRecordData, string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber, object userState) + { + if ((this.UpdateDnsZoneRecordOperationCompleted == null)) + { this.UpdateDnsZoneRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDnsZoneRecordOperationCompleted); } this.InvokeAsync("UpdateDnsZoneRecord", new object[] { @@ -4442,19 +5147,25 @@ namespace WebsitePanel.EnterpriseServer { recordName, recordType, recordData, - mxPriority}, this.UpdateDnsZoneRecordOperationCompleted, userState); + mxPriority, + srvPriority, + srvWeight, + srvPortNumber}, this.UpdateDnsZoneRecordOperationCompleted, userState); } - - private void OnUpdateDnsZoneRecordOperationCompleted(object arg) { - if ((this.UpdateDnsZoneRecordCompleted != null)) { + + private void OnUpdateDnsZoneRecordOperationCompleted(object arg) + { + if ((this.UpdateDnsZoneRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateDnsZoneRecordCompleted(this, new UpdateDnsZoneRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDnsZoneRecord", 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 DeleteDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDnsZoneRecord", 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 DeleteDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData) + { object[] results = this.Invoke("DeleteDnsZoneRecord", new object[] { domainId, recordName, @@ -4462,30 +5173,35 @@ namespace WebsitePanel.EnterpriseServer { recordData}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, string recordData, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteDnsZoneRecord", new object[] { domainId, recordName, recordType, recordData}, callback, asyncState); } - + /// - public int EndDeleteDnsZoneRecord(System.IAsyncResult asyncResult) { + public int EndDeleteDnsZoneRecord(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void DeleteDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData) { + public void DeleteDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData) + { this.DeleteDnsZoneRecordAsync(domainId, recordName, recordType, recordData, null); } - + /// - public void DeleteDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData, object userState) { - if ((this.DeleteDnsZoneRecordOperationCompleted == null)) { + public void DeleteDnsZoneRecordAsync(int domainId, string recordName, DnsRecordType recordType, string recordData, object userState) + { + if ((this.DeleteDnsZoneRecordOperationCompleted == null)) + { this.DeleteDnsZoneRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDnsZoneRecordOperationCompleted); } this.InvokeAsync("DeleteDnsZoneRecord", new object[] { @@ -4494,257 +5210,305 @@ namespace WebsitePanel.EnterpriseServer { recordType, recordData}, this.DeleteDnsZoneRecordOperationCompleted, userState); } - - private void OnDeleteDnsZoneRecordOperationCompleted(object arg) { - if ((this.DeleteDnsZoneRecordCompleted != null)) { + + private void OnDeleteDnsZoneRecordOperationCompleted(object arg) + { + if ((this.DeleteDnsZoneRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDnsZoneRecordCompleted(this, new DeleteDnsZoneRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetTerminalServicesSessions", 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 TerminalSession[] GetTerminalServicesSessions(int serverId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetTerminalServicesSessions", 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 TerminalSession[] GetTerminalServicesSessions(int serverId) + { object[] results = this.Invoke("GetTerminalServicesSessions", new object[] { serverId}); return ((TerminalSession[])(results[0])); } - + /// - public System.IAsyncResult BeginGetTerminalServicesSessions(int serverId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetTerminalServicesSessions(int serverId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetTerminalServicesSessions", new object[] { serverId}, callback, asyncState); } - + /// - public TerminalSession[] EndGetTerminalServicesSessions(System.IAsyncResult asyncResult) { + public TerminalSession[] EndGetTerminalServicesSessions(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((TerminalSession[])(results[0])); } - + /// - public void GetTerminalServicesSessionsAsync(int serverId) { + public void GetTerminalServicesSessionsAsync(int serverId) + { this.GetTerminalServicesSessionsAsync(serverId, null); } - + /// - public void GetTerminalServicesSessionsAsync(int serverId, object userState) { - if ((this.GetTerminalServicesSessionsOperationCompleted == null)) { + public void GetTerminalServicesSessionsAsync(int serverId, object userState) + { + if ((this.GetTerminalServicesSessionsOperationCompleted == null)) + { this.GetTerminalServicesSessionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTerminalServicesSessionsOperationCompleted); } this.InvokeAsync("GetTerminalServicesSessions", new object[] { serverId}, this.GetTerminalServicesSessionsOperationCompleted, userState); } - - private void OnGetTerminalServicesSessionsOperationCompleted(object arg) { - if ((this.GetTerminalServicesSessionsCompleted != null)) { + + private void OnGetTerminalServicesSessionsOperationCompleted(object arg) + { + if ((this.GetTerminalServicesSessionsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetTerminalServicesSessionsCompleted(this, new GetTerminalServicesSessionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CloseTerminalServicesSession", 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 CloseTerminalServicesSession(int serverId, int sessionId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CloseTerminalServicesSession", 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 CloseTerminalServicesSession(int serverId, int sessionId) + { object[] results = this.Invoke("CloseTerminalServicesSession", new object[] { serverId, sessionId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginCloseTerminalServicesSession(int serverId, int sessionId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCloseTerminalServicesSession(int serverId, int sessionId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CloseTerminalServicesSession", new object[] { serverId, sessionId}, callback, asyncState); } - + /// - public int EndCloseTerminalServicesSession(System.IAsyncResult asyncResult) { + public int EndCloseTerminalServicesSession(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void CloseTerminalServicesSessionAsync(int serverId, int sessionId) { + public void CloseTerminalServicesSessionAsync(int serverId, int sessionId) + { this.CloseTerminalServicesSessionAsync(serverId, sessionId, null); } - + /// - public void CloseTerminalServicesSessionAsync(int serverId, int sessionId, object userState) { - if ((this.CloseTerminalServicesSessionOperationCompleted == null)) { + public void CloseTerminalServicesSessionAsync(int serverId, int sessionId, object userState) + { + if ((this.CloseTerminalServicesSessionOperationCompleted == null)) + { this.CloseTerminalServicesSessionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCloseTerminalServicesSessionOperationCompleted); } this.InvokeAsync("CloseTerminalServicesSession", new object[] { serverId, sessionId}, this.CloseTerminalServicesSessionOperationCompleted, userState); } - - private void OnCloseTerminalServicesSessionOperationCompleted(object arg) { - if ((this.CloseTerminalServicesSessionCompleted != null)) { + + private void OnCloseTerminalServicesSessionOperationCompleted(object arg) + { + if ((this.CloseTerminalServicesSessionCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CloseTerminalServicesSessionCompleted(this, new CloseTerminalServicesSessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetWindowsProcesses", 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 WindowsProcess[] GetWindowsProcesses(int serverId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetWindowsProcesses", 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 WindowsProcess[] GetWindowsProcesses(int serverId) + { object[] results = this.Invoke("GetWindowsProcesses", new object[] { serverId}); return ((WindowsProcess[])(results[0])); } - + /// - public System.IAsyncResult BeginGetWindowsProcesses(int serverId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetWindowsProcesses(int serverId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetWindowsProcesses", new object[] { serverId}, callback, asyncState); } - + /// - public WindowsProcess[] EndGetWindowsProcesses(System.IAsyncResult asyncResult) { + public WindowsProcess[] EndGetWindowsProcesses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((WindowsProcess[])(results[0])); } - + /// - public void GetWindowsProcessesAsync(int serverId) { + public void GetWindowsProcessesAsync(int serverId) + { this.GetWindowsProcessesAsync(serverId, null); } - + /// - public void GetWindowsProcessesAsync(int serverId, object userState) { - if ((this.GetWindowsProcessesOperationCompleted == null)) { + public void GetWindowsProcessesAsync(int serverId, object userState) + { + if ((this.GetWindowsProcessesOperationCompleted == null)) + { this.GetWindowsProcessesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWindowsProcessesOperationCompleted); } this.InvokeAsync("GetWindowsProcesses", new object[] { serverId}, this.GetWindowsProcessesOperationCompleted, userState); } - - private void OnGetWindowsProcessesOperationCompleted(object arg) { - if ((this.GetWindowsProcessesCompleted != null)) { + + private void OnGetWindowsProcessesOperationCompleted(object arg) + { + if ((this.GetWindowsProcessesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetWindowsProcessesCompleted(this, new GetWindowsProcessesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/TerminateWindowsProcess", 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 TerminateWindowsProcess(int serverId, int pid) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/TerminateWindowsProcess", 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 TerminateWindowsProcess(int serverId, int pid) + { object[] results = this.Invoke("TerminateWindowsProcess", new object[] { serverId, pid}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginTerminateWindowsProcess(int serverId, int pid, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginTerminateWindowsProcess(int serverId, int pid, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("TerminateWindowsProcess", new object[] { serverId, pid}, callback, asyncState); } - + /// - public int EndTerminateWindowsProcess(System.IAsyncResult asyncResult) { + public int EndTerminateWindowsProcess(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void TerminateWindowsProcessAsync(int serverId, int pid) { + public void TerminateWindowsProcessAsync(int serverId, int pid) + { this.TerminateWindowsProcessAsync(serverId, pid, null); } - + /// - public void TerminateWindowsProcessAsync(int serverId, int pid, object userState) { - if ((this.TerminateWindowsProcessOperationCompleted == null)) { + public void TerminateWindowsProcessAsync(int serverId, int pid, object userState) + { + if ((this.TerminateWindowsProcessOperationCompleted == null)) + { this.TerminateWindowsProcessOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTerminateWindowsProcessOperationCompleted); } this.InvokeAsync("TerminateWindowsProcess", new object[] { serverId, pid}, this.TerminateWindowsProcessOperationCompleted, userState); } - - private void OnTerminateWindowsProcessOperationCompleted(object arg) { - if ((this.TerminateWindowsProcessCompleted != null)) { + + private void OnTerminateWindowsProcessOperationCompleted(object arg) + { + if ((this.TerminateWindowsProcessCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.TerminateWindowsProcessCompleted(this, new TerminateWindowsProcessCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetWindowsServices", 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 WindowsService[] GetWindowsServices(int serverId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetWindowsServices", 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 WindowsService[] GetWindowsServices(int serverId) + { object[] results = this.Invoke("GetWindowsServices", new object[] { serverId}); return ((WindowsService[])(results[0])); } - + /// - public System.IAsyncResult BeginGetWindowsServices(int serverId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetWindowsServices(int serverId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetWindowsServices", new object[] { serverId}, callback, asyncState); } - + /// - public WindowsService[] EndGetWindowsServices(System.IAsyncResult asyncResult) { + public WindowsService[] EndGetWindowsServices(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((WindowsService[])(results[0])); } - + /// - public void GetWindowsServicesAsync(int serverId) { + public void GetWindowsServicesAsync(int serverId) + { this.GetWindowsServicesAsync(serverId, null); } - + /// - public void GetWindowsServicesAsync(int serverId, object userState) { - if ((this.GetWindowsServicesOperationCompleted == null)) { + public void GetWindowsServicesAsync(int serverId, object userState) + { + if ((this.GetWindowsServicesOperationCompleted == null)) + { this.GetWindowsServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWindowsServicesOperationCompleted); } this.InvokeAsync("GetWindowsServices", new object[] { serverId}, this.GetWindowsServicesOperationCompleted, userState); } - - private void OnGetWindowsServicesOperationCompleted(object arg) { - if ((this.GetWindowsServicesCompleted != null)) { + + private void OnGetWindowsServicesOperationCompleted(object arg) + { + if ((this.GetWindowsServicesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetWindowsServicesCompleted(this, new GetWindowsServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ChangeWindowsServiceStatus", 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 ChangeWindowsServiceStatus(int serverId, string id, WindowsServiceStatus status) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ChangeWindowsServiceStatus", 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 ChangeWindowsServiceStatus(int serverId, string id, WindowsServiceStatus status) + { object[] results = this.Invoke("ChangeWindowsServiceStatus", new object[] { serverId, id, status}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginChangeWindowsServiceStatus(int serverId, string id, WindowsServiceStatus status, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginChangeWindowsServiceStatus(int serverId, string id, WindowsServiceStatus status, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ChangeWindowsServiceStatus", new object[] { serverId, id, status}, callback, asyncState); } - + /// - public int EndChangeWindowsServiceStatus(System.IAsyncResult asyncResult) { + public int EndChangeWindowsServiceStatus(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void ChangeWindowsServiceStatusAsync(int serverId, string id, WindowsServiceStatus status) { + public void ChangeWindowsServiceStatusAsync(int serverId, string id, WindowsServiceStatus status) + { this.ChangeWindowsServiceStatusAsync(serverId, id, status, null); } - + /// - public void ChangeWindowsServiceStatusAsync(int serverId, string id, WindowsServiceStatus status, object userState) { - if ((this.ChangeWindowsServiceStatusOperationCompleted == null)) { + public void ChangeWindowsServiceStatusAsync(int serverId, string id, WindowsServiceStatus status, object userState) + { + if ((this.ChangeWindowsServiceStatusOperationCompleted == null)) + { this.ChangeWindowsServiceStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeWindowsServiceStatusOperationCompleted); } this.InvokeAsync("ChangeWindowsServiceStatus", new object[] { @@ -4752,102 +5516,121 @@ namespace WebsitePanel.EnterpriseServer { id, status}, this.ChangeWindowsServiceStatusOperationCompleted, userState); } - - private void OnChangeWindowsServiceStatusOperationCompleted(object arg) { - if ((this.ChangeWindowsServiceStatusCompleted != null)) { + + private void OnChangeWindowsServiceStatusOperationCompleted(object arg) + { + if ((this.ChangeWindowsServiceStatusCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ChangeWindowsServiceStatusCompleted(this, new ChangeWindowsServiceStatusCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetLogNames", 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[] GetLogNames(int serverId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetLogNames", 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[] GetLogNames(int serverId) + { object[] results = this.Invoke("GetLogNames", new object[] { serverId}); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetLogNames(int serverId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetLogNames(int serverId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetLogNames", new object[] { serverId}, callback, asyncState); } - + /// - public string[] EndGetLogNames(System.IAsyncResult asyncResult) { + public string[] EndGetLogNames(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetLogNamesAsync(int serverId) { + public void GetLogNamesAsync(int serverId) + { this.GetLogNamesAsync(serverId, null); } - + /// - public void GetLogNamesAsync(int serverId, object userState) { - if ((this.GetLogNamesOperationCompleted == null)) { + public void GetLogNamesAsync(int serverId, object userState) + { + if ((this.GetLogNamesOperationCompleted == null)) + { this.GetLogNamesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogNamesOperationCompleted); } this.InvokeAsync("GetLogNames", new object[] { serverId}, this.GetLogNamesOperationCompleted, userState); } - - private void OnGetLogNamesOperationCompleted(object arg) { - if ((this.GetLogNamesCompleted != null)) { + + private void OnGetLogNamesOperationCompleted(object arg) + { + if ((this.GetLogNamesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetLogNamesCompleted(this, new GetLogNamesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetLogEntries", 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 SystemLogEntry[] GetLogEntries(int serverId, string logName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetLogEntries", 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 SystemLogEntry[] GetLogEntries(int serverId, string logName) + { object[] results = this.Invoke("GetLogEntries", new object[] { serverId, logName}); return ((SystemLogEntry[])(results[0])); } - + /// - public System.IAsyncResult BeginGetLogEntries(int serverId, string logName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetLogEntries(int serverId, string logName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetLogEntries", new object[] { serverId, logName}, callback, asyncState); } - + /// - public SystemLogEntry[] EndGetLogEntries(System.IAsyncResult asyncResult) { + public SystemLogEntry[] EndGetLogEntries(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemLogEntry[])(results[0])); } - + /// - public void GetLogEntriesAsync(int serverId, string logName) { + public void GetLogEntriesAsync(int serverId, string logName) + { this.GetLogEntriesAsync(serverId, logName, null); } - + /// - public void GetLogEntriesAsync(int serverId, string logName, object userState) { - if ((this.GetLogEntriesOperationCompleted == null)) { + public void GetLogEntriesAsync(int serverId, string logName, object userState) + { + if ((this.GetLogEntriesOperationCompleted == null)) + { this.GetLogEntriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogEntriesOperationCompleted); } this.InvokeAsync("GetLogEntries", new object[] { serverId, logName}, this.GetLogEntriesOperationCompleted, userState); } - - private void OnGetLogEntriesOperationCompleted(object arg) { - if ((this.GetLogEntriesCompleted != null)) { + + private void OnGetLogEntriesOperationCompleted(object arg) + { + if ((this.GetLogEntriesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetLogEntriesCompleted(this, new GetLogEntriesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetLogEntriesPaged", 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 SystemLogEntriesPaged GetLogEntriesPaged(int serverId, string logName, int startRow, int maximumRows) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetLogEntriesPaged", 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 SystemLogEntriesPaged GetLogEntriesPaged(int serverId, string logName, int startRow, int maximumRows) + { object[] results = this.Invoke("GetLogEntriesPaged", new object[] { serverId, logName, @@ -4855,30 +5638,35 @@ namespace WebsitePanel.EnterpriseServer { maximumRows}); return ((SystemLogEntriesPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetLogEntriesPaged(int serverId, string logName, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetLogEntriesPaged(int serverId, string logName, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetLogEntriesPaged", new object[] { serverId, logName, startRow, maximumRows}, callback, asyncState); } - + /// - public SystemLogEntriesPaged EndGetLogEntriesPaged(System.IAsyncResult asyncResult) { + public SystemLogEntriesPaged EndGetLogEntriesPaged(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemLogEntriesPaged)(results[0])); } - + /// - public void GetLogEntriesPagedAsync(int serverId, string logName, int startRow, int maximumRows) { + public void GetLogEntriesPagedAsync(int serverId, string logName, int startRow, int maximumRows) + { this.GetLogEntriesPagedAsync(serverId, logName, startRow, maximumRows, null); } - + /// - public void GetLogEntriesPagedAsync(int serverId, string logName, int startRow, int maximumRows, object userState) { - if ((this.GetLogEntriesPagedOperationCompleted == null)) { + public void GetLogEntriesPagedAsync(int serverId, string logName, int startRow, int maximumRows, object userState) + { + if ((this.GetLogEntriesPagedOperationCompleted == null)) + { this.GetLogEntriesPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogEntriesPagedOperationCompleted); } this.InvokeAsync("GetLogEntriesPaged", new object[] { @@ -4887,2754 +5675,3148 @@ namespace WebsitePanel.EnterpriseServer { startRow, maximumRows}, this.GetLogEntriesPagedOperationCompleted, userState); } - - private void OnGetLogEntriesPagedOperationCompleted(object arg) { - if ((this.GetLogEntriesPagedCompleted != null)) { + + private void OnGetLogEntriesPagedOperationCompleted(object arg) + { + if ((this.GetLogEntriesPagedCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetLogEntriesPagedCompleted(this, new GetLogEntriesPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ClearLog", 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 ClearLog(int serverId, string logName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ClearLog", 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 ClearLog(int serverId, string logName) + { object[] results = this.Invoke("ClearLog", new object[] { serverId, logName}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginClearLog(int serverId, string logName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginClearLog(int serverId, string logName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ClearLog", new object[] { serverId, logName}, callback, asyncState); } - + /// - public int EndClearLog(System.IAsyncResult asyncResult) { + public int EndClearLog(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void ClearLogAsync(int serverId, string logName) { + public void ClearLogAsync(int serverId, string logName) + { this.ClearLogAsync(serverId, logName, null); } - + /// - public void ClearLogAsync(int serverId, string logName, object userState) { - if ((this.ClearLogOperationCompleted == null)) { + public void ClearLogAsync(int serverId, string logName, object userState) + { + if ((this.ClearLogOperationCompleted == null)) + { this.ClearLogOperationCompleted = new System.Threading.SendOrPostCallback(this.OnClearLogOperationCompleted); } this.InvokeAsync("ClearLog", new object[] { serverId, logName}, this.ClearLogOperationCompleted, userState); } - - private void OnClearLogOperationCompleted(object arg) { - if ((this.ClearLogCompleted != null)) { + + private void OnClearLogOperationCompleted(object arg) + { + if ((this.ClearLogCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ClearLogCompleted(this, new ClearLogCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RebootSystem", 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 RebootSystem(int serverId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RebootSystem", 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 RebootSystem(int serverId) + { object[] results = this.Invoke("RebootSystem", new object[] { serverId}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginRebootSystem(int serverId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginRebootSystem(int serverId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("RebootSystem", new object[] { serverId}, callback, asyncState); } - + /// - public int EndRebootSystem(System.IAsyncResult asyncResult) { + public int EndRebootSystem(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void RebootSystemAsync(int serverId) { + public void RebootSystemAsync(int serverId) + { this.RebootSystemAsync(serverId, null); } - + /// - public void RebootSystemAsync(int serverId, object userState) { - if ((this.RebootSystemOperationCompleted == null)) { + public void RebootSystemAsync(int serverId, object userState) + { + if ((this.RebootSystemOperationCompleted == null)) + { this.RebootSystemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRebootSystemOperationCompleted); } this.InvokeAsync("RebootSystem", new object[] { serverId}, this.RebootSystemOperationCompleted, userState); } - - private void OnRebootSystemOperationCompleted(object arg) { - if ((this.RebootSystemCompleted != null)) { + + private void OnRebootSystemOperationCompleted(object arg) + { + if ((this.RebootSystemCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RebootSystemCompleted(this, new RebootSystemCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - public new void CancelAsync(object userState) { + public new void CancelAsync(object userState) + { base.CancelAsync(userState); } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetAllServersCompletedEventHandler(object sender, GetAllServersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetAllServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetAllServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetAllServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetAllServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServerInfo[] Result { - get { + public ServerInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServerInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetRawAllServersCompletedEventHandler(object sender, GetRawAllServersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawAllServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawAllServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawAllServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawAllServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetServersCompletedEventHandler(object sender, GetServersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServerInfo[] Result { - get { + public ServerInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServerInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetRawServersCompletedEventHandler(object sender, GetRawServersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetServerShortDetailsCompletedEventHandler(object sender, GetServerShortDetailsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServerShortDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServerShortDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServerShortDetailsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServerShortDetailsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServerInfo Result { - get { + public ServerInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServerInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetServerByIdCompletedEventHandler(object sender, GetServerByIdCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServerByIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServerByIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServerByIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServerByIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServerInfo Result { - get { + public ServerInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServerInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetServerByNameCompletedEventHandler(object sender, GetServerByNameCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServerByNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServerByNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServerByNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServerByNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServerInfo Result { - get { + public ServerInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServerInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CheckServerAvailableCompletedEventHandler(object sender, CheckServerAvailableCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CheckServerAvailableCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class CheckServerAvailableCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal CheckServerAvailableCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal CheckServerAvailableCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddServerCompletedEventHandler(object sender, AddServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AddServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AddServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AddServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateServerCompletedEventHandler(object sender, UpdateServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateServerConnectionPasswordCompletedEventHandler(object sender, UpdateServerConnectionPasswordCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateServerConnectionPasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateServerConnectionPasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateServerConnectionPasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateServerConnectionPasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateServerADPasswordCompletedEventHandler(object sender, UpdateServerADPasswordCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateServerADPasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateServerADPasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateServerADPasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateServerADPasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteServerCompletedEventHandler(object sender, DeleteServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeleteServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeleteServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeleteServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetVirtualServersCompletedEventHandler(object sender, GetVirtualServersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetVirtualServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetVirtualServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetVirtualServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetVirtualServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetAvailableVirtualServicesCompletedEventHandler(object sender, GetAvailableVirtualServicesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetAvailableVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetAvailableVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetAvailableVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetAvailableVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetVirtualServicesCompletedEventHandler(object sender, GetVirtualServicesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 AddVirtualServicesCompletedEventHandler(object sender, AddVirtualServicesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AddVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AddVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AddVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteVirtualServicesCompletedEventHandler(object sender, DeleteVirtualServicesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeleteVirtualServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeleteVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeleteVirtualServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateVirtualGroupsCompletedEventHandler(object sender, UpdateVirtualGroupsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateVirtualGroupsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateVirtualGroupsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateVirtualGroupsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateVirtualGroupsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetRawServicesByServerIdCompletedEventHandler(object sender, GetRawServicesByServerIdCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawServicesByServerIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawServicesByServerIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawServicesByServerIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawServicesByServerIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetServicesByServerIdCompletedEventHandler(object sender, GetServicesByServerIdCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServicesByServerIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServicesByServerIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServicesByServerIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServicesByServerIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServiceInfo[] Result { - get { + public ServiceInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServiceInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetServicesByServerIdGroupNameCompletedEventHandler(object sender, GetServicesByServerIdGroupNameCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServicesByServerIdGroupNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServicesByServerIdGroupNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServicesByServerIdGroupNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServicesByServerIdGroupNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServiceInfo[] Result { - get { + public ServiceInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServiceInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetRawServicesByGroupIdCompletedEventHandler(object sender, GetRawServicesByGroupIdCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawServicesByGroupIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawServicesByGroupIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawServicesByGroupIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawServicesByGroupIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetRawServicesByGroupNameCompletedEventHandler(object sender, GetRawServicesByGroupNameCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawServicesByGroupNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawServicesByGroupNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawServicesByGroupNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawServicesByGroupNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetServiceInfoCompletedEventHandler(object sender, GetServiceInfoCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServiceInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServiceInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServiceInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServiceInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ServiceInfo Result { - get { + public ServiceInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ServiceInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddServiceCompletedEventHandler(object sender, AddServiceCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AddServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AddServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AddServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateServiceCompletedEventHandler(object sender, UpdateServiceCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteServiceCompletedEventHandler(object sender, DeleteServiceCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeleteServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeleteServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeleteServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetServiceSettingsCompletedEventHandler(object sender, GetServiceSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServiceSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServiceSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServiceSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServiceSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public string[] Result { - get { + public string[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((string[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateServiceSettingsCompletedEventHandler(object sender, UpdateServiceSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateServiceSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateServiceSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateServiceSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateServiceSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void InstallServiceCompletedEventHandler(object sender, InstallServiceCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class InstallServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class InstallServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal InstallServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal InstallServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public string[] Result { - get { + public string[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((string[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetProviderServiceQuotaCompletedEventHandler(object sender, GetProviderServiceQuotaCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetProviderServiceQuotaCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetProviderServiceQuotaCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetProviderServiceQuotaCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetProviderServiceQuotaCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public QuotaInfo Result { - get { + public QuotaInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((QuotaInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetInstalledProvidersCompletedEventHandler(object sender, GetInstalledProvidersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetInstalledProvidersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetInstalledProvidersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetInstalledProvidersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetInstalledProvidersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ProviderInfo[] Result { - get { + public ProviderInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ProviderInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetResourceGroupsCompletedEventHandler(object sender, GetResourceGroupsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetResourceGroupsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetResourceGroupsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetResourceGroupsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetResourceGroupsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResourceGroupInfo[] Result { - get { + public ResourceGroupInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResourceGroupInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetResourceGroupCompletedEventHandler(object sender, GetResourceGroupCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetResourceGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetResourceGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetResourceGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetResourceGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResourceGroupInfo Result { - get { + public ResourceGroupInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResourceGroupInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetProviderCompletedEventHandler(object sender, GetProviderCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetProviderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetProviderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetProviderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetProviderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ProviderInfo Result { - get { + public ProviderInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ProviderInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetProvidersCompletedEventHandler(object sender, GetProvidersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetProvidersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetProvidersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetProvidersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetProvidersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ProviderInfo[] Result { - get { + public ProviderInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ProviderInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetProvidersByGroupIdCompletedEventHandler(object sender, GetProvidersByGroupIdCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetProvidersByGroupIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetProvidersByGroupIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetProvidersByGroupIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetProvidersByGroupIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ProviderInfo[] Result { - get { + public ProviderInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ProviderInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPackageServiceProviderCompletedEventHandler(object sender, GetPackageServiceProviderCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPackageServiceProviderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPackageServiceProviderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPackageServiceProviderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPackageServiceProviderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ProviderInfo Result { - get { + public ProviderInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ProviderInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void IsInstalledCompletedEventHandler(object sender, IsInstalledCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class IsInstalledCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class IsInstalledCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal IsInstalledCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal IsInstalledCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public BoolResult Result { - get { + public BoolResult Result + { + get + { this.RaiseExceptionIfNecessary(); return ((BoolResult)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetServerVersionCompletedEventHandler(object sender, GetServerVersionCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetServerVersionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetServerVersionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetServerVersionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetServerVersionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public string Result { - get { + public string Result + { + get + { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetIPAddressesCompletedEventHandler(object sender, GetIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public IPAddressInfo[] Result { - get { + public IPAddressInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((IPAddressInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetIPAddressesPagedCompletedEventHandler(object sender, GetIPAddressesPagedCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetIPAddressesPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetIPAddressesPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetIPAddressesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetIPAddressesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public IPAddressesPaged Result { - get { + public IPAddressesPaged Result + { + get + { this.RaiseExceptionIfNecessary(); return ((IPAddressesPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetIPAddressCompletedEventHandler(object sender, GetIPAddressCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public IPAddressInfo Result { - get { + public IPAddressInfo Result + { + get + { this.RaiseExceptionIfNecessary(); return ((IPAddressInfo)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddIPAddressCompletedEventHandler(object sender, AddIPAddressCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AddIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AddIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AddIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public IntResult Result { - get { + public IntResult Result + { + get + { this.RaiseExceptionIfNecessary(); return ((IntResult)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddIPAddressesRangeCompletedEventHandler(object sender, AddIPAddressesRangeCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddIPAddressesRangeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AddIPAddressesRangeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AddIPAddressesRangeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AddIPAddressesRangeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateIPAddressCompletedEventHandler(object sender, UpdateIPAddressCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateIPAddressesCompletedEventHandler(object sender, UpdateIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class UpdateIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal UpdateIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal UpdateIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteIPAddressCompletedEventHandler(object sender, DeleteIPAddressCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeleteIPAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeleteIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeleteIPAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteIPAddressesCompletedEventHandler(object sender, DeleteIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeleteIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeleteIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeleteIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetUnallottedIPAddressesCompletedEventHandler(object sender, GetUnallottedIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetUnallottedIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetUnallottedIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetUnallottedIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetUnallottedIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public IPAddressInfo[] Result { - get { + public IPAddressInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((IPAddressInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPackageIPAddressesCompletedEventHandler(object sender, GetPackageIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public PackageIPAddressesPaged Result { - get { + public PackageIPAddressesPaged Result + { + get + { this.RaiseExceptionIfNecessary(); return ((PackageIPAddressesPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPackageUnassignedIPAddressesCompletedEventHandler(object sender, GetPackageUnassignedIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPackageUnassignedIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPackageUnassignedIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPackageUnassignedIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPackageUnassignedIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public PackageIPAddress[] Result { - get { + public PackageIPAddress[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((PackageIPAddress[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AllocatePackageIPAddressesCompletedEventHandler(object sender, AllocatePackageIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AllocatePackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AllocatePackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AllocatePackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AllocatePackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AllocateMaximumPackageIPAddressesCompletedEventHandler(object sender, AllocateMaximumPackageIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AllocateMaximumPackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AllocateMaximumPackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AllocateMaximumPackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AllocateMaximumPackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeallocatePackageIPAddressesCompletedEventHandler(object sender, DeallocatePackageIPAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeallocatePackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeallocatePackageIPAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeallocatePackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeallocatePackageIPAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ResultObject Result { - get { + public ResultObject Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetClustersCompletedEventHandler(object sender, GetClustersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetClustersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetClustersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetClustersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetClustersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ClusterInfo[] Result { - get { + public ClusterInfo[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ClusterInfo[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddClusterCompletedEventHandler(object sender, AddClusterCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddClusterCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AddClusterCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AddClusterCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AddClusterCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteClusterCompletedEventHandler(object sender, DeleteClusterCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteClusterCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeleteClusterCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeleteClusterCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeleteClusterCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetRawDnsRecordsByServiceCompletedEventHandler(object sender, GetRawDnsRecordsByServiceCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawDnsRecordsByServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawDnsRecordsByServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawDnsRecordsByServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawDnsRecordsByServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetRawDnsRecordsByServerCompletedEventHandler(object sender, GetRawDnsRecordsByServerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawDnsRecordsByServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawDnsRecordsByServerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawDnsRecordsByServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawDnsRecordsByServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetRawDnsRecordsByPackageCompletedEventHandler(object sender, GetRawDnsRecordsByPackageCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawDnsRecordsByPackageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawDnsRecordsByPackageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawDnsRecordsByPackageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawDnsRecordsByPackageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetRawDnsRecordsByGroupCompletedEventHandler(object sender, GetRawDnsRecordsByGroupCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetRawDnsRecordsByGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetRawDnsRecordsByGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetRawDnsRecordsByGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetRawDnsRecordsByGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 GetDnsRecordsByServiceCompletedEventHandler(object sender, GetDnsRecordsByServiceCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDnsRecordsByServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetDnsRecordsByServiceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetDnsRecordsByServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetDnsRecordsByServiceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public GlobalDnsRecord[] Result { - get { + public GlobalDnsRecord[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((GlobalDnsRecord[])(this.results[0])); } } } - + /// [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 { - + 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) { + + internal GetDnsRecordsByServerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public GlobalDnsRecord[] Result { - get { + 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 { - + 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) { + + internal GetDnsRecordsByPackageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public GlobalDnsRecord[] Result { - get { + 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 { - + 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) { + + internal GetDnsRecordsByGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public GlobalDnsRecord[] Result { - get { + 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 { - + 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) { + + internal GetDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public GlobalDnsRecord Result { - get { + 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 { - + 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) { + + internal AddDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal UpdateDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal DeleteDnsRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal GetDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public DomainInfo[] Result { - get { + 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 { - + 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) { + + internal GetMyDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public DomainInfo[] Result { - get { + 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 { - + 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) { + + internal GetResellerDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public DomainInfo[] Result { - get { + 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 { - + 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) { + + internal GetDomainsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 { - + 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) { + + internal GetDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public DomainInfo Result { - get { + 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 { - + 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) { + + internal AddDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal AddDomainWithProvisioningCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal UpdateDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal DeleteDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal DetachDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal EnableDomainDnsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal DisableDomainDnsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal CreateDomainInstantAliasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal DeleteDomainInstantAliasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal GetDnsZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public DnsRecord[] Result { - get { + 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 { - + 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) { + + internal GetRawDnsZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public System.Data.DataSet Result { - get { + 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 { - + 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) { + + internal AddDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal UpdateDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal DeleteDnsZoneRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal GetTerminalServicesSessionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public TerminalSession[] Result { - get { + 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 { - + 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) { + + internal CloseTerminalServicesSessionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal GetWindowsProcessesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public WindowsProcess[] Result { - get { + 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 { - + 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) { + + internal TerminateWindowsProcessCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal GetWindowsServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public WindowsService[] Result { - get { + 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 { - + 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) { + + internal ChangeWindowsServiceStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal GetLogNamesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public string[] Result { - get { + 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 { - + 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) { + + internal GetLogEntriesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public SystemLogEntry[] Result { - get { + 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 { - + 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) { + + internal GetLogEntriesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public SystemLogEntriesPaged Result { - get { + 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 { - + 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) { + + internal ClearLogCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [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 { - + 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) { + + internal RebootSystemCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public int Result { - get { + public int Result + { + get + { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Data/DataProvider.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Data/DataProvider.cs index fed09810..1d4f770d 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Data/DataProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Data/DataProvider.cs @@ -675,7 +675,7 @@ namespace WebsitePanel.EnterpriseServer } public static void AddDnsRecord(int actorId, int serviceId, int serverId, int packageId, string recordType, - string recordName, string recordData, int mxPriority, int ipAddressId) + string recordName, string recordData, int mxPriority, int SrvPriority, int SrvWeight, int SrvPort, int ipAddressId) { SqlHelper.ExecuteNonQuery(ConnectionString, CommandType.StoredProcedure, ObjectQualifier + "AddDnsRecord", @@ -687,11 +687,14 @@ namespace WebsitePanel.EnterpriseServer new SqlParameter("@RecordName", recordName), new SqlParameter("@RecordData", recordData), new SqlParameter("@MXPriority", mxPriority), + new SqlParameter("@SrvPriority", SrvPriority), + new SqlParameter("@SrvWeight", SrvWeight), + new SqlParameter("@SrvPort", SrvPort), new SqlParameter("@IpAddressId", ipAddressId)); } public static void UpdateDnsRecord(int actorId, int recordId, string recordType, - string recordName, string recordData, int mxPriority, int ipAddressId) + string recordName, string recordData, int mxPriority, int SrvPriority, int SrvWeight, int SrvPort, int ipAddressId) { SqlHelper.ExecuteNonQuery(ConnectionString, CommandType.StoredProcedure, ObjectQualifier + "UpdateDnsRecord", @@ -701,9 +704,13 @@ namespace WebsitePanel.EnterpriseServer new SqlParameter("@RecordName", recordName), new SqlParameter("@RecordData", recordData), new SqlParameter("@MXPriority", mxPriority), + new SqlParameter("@SrvPriority", SrvPriority), + new SqlParameter("@SrvWeight", SrvWeight), + new SqlParameter("@SrvPort", SrvPort), new SqlParameter("@IpAddressId", ipAddressId)); } + public static void DeleteDnsRecord(int actorId, int recordId) { SqlHelper.ExecuteNonQuery(ConnectionString, CommandType.StoredProcedure, @@ -763,7 +770,7 @@ namespace WebsitePanel.EnterpriseServer new SqlParameter("@domainName", domainName)); } - public static int CheckDomain(int packageId, string domainName) + public static int CheckDomain(int packageId, string domainName, bool isDomainPointer) { SqlParameter prmId = new SqlParameter("@Result", SqlDbType.Int); prmId.Direction = ParameterDirection.Output; @@ -772,7 +779,8 @@ namespace WebsitePanel.EnterpriseServer ObjectQualifier + "CheckDomain", prmId, new SqlParameter("@packageId", packageId), - new SqlParameter("@domainName", domainName)); + new SqlParameter("@domainName", domainName), + new SqlParameter("@isDomainPointer", isDomainPointer)); return Convert.ToInt32(prmId.Value); } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/DnsServers/DnsServerController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/DnsServers/DnsServerController.cs index 894a321c..1489176e 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/DnsServers/DnsServerController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/DnsServers/DnsServerController.cs @@ -38,158 +38,157 @@ namespace WebsitePanel.EnterpriseServer { public class DnsServerController : IImportController, IBackupController { - private static DNSServer GetDNSServer(int serviceId) - { - DNSServer dns = new DNSServer(); - ServiceProviderProxy.Init(dns, serviceId); - return dns; - } + private static DNSServer GetDNSServer(int serviceId) + { + DNSServer dns = new DNSServer(); + ServiceProviderProxy.Init(dns, serviceId); + return dns; + } - public static int AddZone(int packageId, int serviceId, string zoneName) - { - return AddZone(packageId, serviceId, zoneName, true); - } + public static int AddZone(int packageId, int serviceId, string zoneName) + { + return AddZone(packageId, serviceId, zoneName, true); + } - public static int AddZone(int packageId, int serviceId, string zoneName, bool addPackageItem) - { - // get DNS provider - DNSServer dns = GetDNSServer(serviceId); + public static int AddZone(int packageId, int serviceId, string zoneName, bool addPackageItem) + { + // get DNS provider + DNSServer dns = GetDNSServer(serviceId); - // check if zone already exists - if (dns.ZoneExists(zoneName)) - return BusinessErrorCodes.ERROR_DNS_ZONE_EXISTS; + // check if zone already exists + if (dns.ZoneExists(zoneName)) + return BusinessErrorCodes.ERROR_DNS_ZONE_EXISTS; - // - TaskManager.StartTask("DNS_ZONE", "ADD", zoneName); - // - int zoneItemId = default(int); - // - try - { - // get secondary DNS services - StringDictionary primSettings = ServerController.GetServiceSettings(serviceId); - string[] primaryIPAddresses = GetExternalIPAddressesFromString(primSettings["ListeningIPAddresses"]); + // + TaskManager.StartTask("DNS_ZONE", "ADD", zoneName); + // + int zoneItemId = default(int); + // + try + { + // get secondary DNS services + StringDictionary primSettings = ServerController.GetServiceSettings(serviceId); + string[] primaryIPAddresses = GetExternalIPAddressesFromString(primSettings["ListeningIPAddresses"]); - List secondaryIPAddresses = new List(); - List secondaryServiceIds = new List(); - string strSecondaryServices = primSettings["SecondaryDNSServices"]; - if (!String.IsNullOrEmpty(strSecondaryServices)) - { - string[] secondaryServices = strSecondaryServices.Split(','); - foreach (string strSecondaryId in secondaryServices) - { - int secondaryId = Utils.ParseInt(strSecondaryId, 0); - if (secondaryId == 0) - continue; + List secondaryIPAddresses = new List(); + List secondaryServiceIds = new List(); + string strSecondaryServices = primSettings["SecondaryDNSServices"]; + if (!String.IsNullOrEmpty(strSecondaryServices)) + { + string[] secondaryServices = strSecondaryServices.Split(','); + foreach (string strSecondaryId in secondaryServices) + { + int secondaryId = Utils.ParseInt(strSecondaryId, 0); + if (secondaryId == 0) + continue; - secondaryServiceIds.Add(secondaryId); - StringDictionary secondarySettings = ServerController.GetServiceSettings(secondaryId); + secondaryServiceIds.Add(secondaryId); + StringDictionary secondarySettings = ServerController.GetServiceSettings(secondaryId); - // add secondary IPs to the master array - secondaryIPAddresses.AddRange( - GetExternalIPAddressesFromString(secondarySettings["ListeningIPAddresses"])); - } - } + // add secondary IPs to the master array + secondaryIPAddresses.AddRange( + GetExternalIPAddressesFromString(secondarySettings["ListeningIPAddresses"])); + } + } - // add "Allow zone transfers" - string allowTransfers = primSettings["AllowZoneTransfers"]; - if (!String.IsNullOrEmpty(allowTransfers)) - { - string[] ips = Utils.ParseDelimitedString(allowTransfers, '\n', ' ', ',', ';'); - foreach (string ip in ips) - { - if (!secondaryIPAddresses.Contains(ip)) - secondaryIPAddresses.Add(ip); - } - } + // add "Allow zone transfers" + string allowTransfers = primSettings["AllowZoneTransfers"]; + if (!String.IsNullOrEmpty(allowTransfers)) + { + string[] ips = Utils.ParseDelimitedString(allowTransfers, '\n', ' ', ',', ';'); + foreach (string ip in ips) + { + if (!secondaryIPAddresses.Contains(ip)) + secondaryIPAddresses.Add(ip); + } + } - // add primary zone - dns.AddPrimaryZone(zoneName, secondaryIPAddresses.ToArray()); + // add primary zone + dns.AddPrimaryZone(zoneName, secondaryIPAddresses.ToArray()); - // get DNS zone records - List records = ServerController.GetDnsRecordsTotal(packageId); + // get DNS zone records + List records = ServerController.GetDnsRecordsTotal(packageId); - // get name servers - PackageSettings packageSettings = PackageController.GetPackageSettings(packageId, PackageSettings.NAME_SERVERS); - string[] nameServers = new string[] { }; - if (!String.IsNullOrEmpty(packageSettings["NameServers"])) - nameServers = packageSettings["NameServers"].Split(';'); + // get name servers + PackageSettings packageSettings = PackageController.GetPackageSettings(packageId, PackageSettings.NAME_SERVERS); + string[] nameServers = new string[] { }; + if (!String.IsNullOrEmpty(packageSettings["NameServers"])) + nameServers = packageSettings["NameServers"].Split(';'); - // build records list - List zoneRecords = new List(); + // build records list + List zoneRecords = new List(); - string primaryNameServer = "ns." + zoneName; + string primaryNameServer = "ns." + zoneName; - if (nameServers.Length > 0) - primaryNameServer = nameServers[0]; + if (nameServers.Length > 0) + primaryNameServer = nameServers[0]; - // update SOA record + // update SOA record - string hostmaster = primSettings["ResponsiblePerson"]; - if (String.IsNullOrEmpty(hostmaster)) - { - hostmaster = "hostmaster." + zoneName; - } - else - { - hostmaster = Utils.ReplaceStringVariable(hostmaster, "domain_name", zoneName); - } + string hostmaster = primSettings["ResponsiblePerson"]; + if (String.IsNullOrEmpty(hostmaster)) + { + hostmaster = "hostmaster." + zoneName; + } + else + { + hostmaster = Utils.ReplaceStringVariable(hostmaster, "domain_name", zoneName); + } - dns.UpdateSoaRecord(zoneName, "", primaryNameServer, hostmaster); + dns.UpdateSoaRecord(zoneName, "", primaryNameServer, hostmaster); - // add name servers - foreach (string nameServer in nameServers) - { - DnsRecord ns = new DnsRecord(); - ns.RecordType = DnsRecordType.NS; - ns.RecordName = ""; - ns.RecordData = nameServer; + // add name servers + foreach (string nameServer in nameServers) + { + DnsRecord ns = new DnsRecord(); + ns.RecordType = DnsRecordType.NS; + ns.RecordName = ""; + ns.RecordData = nameServer; - zoneRecords.Add(ns); - } + zoneRecords.Add(ns); + } - // add all other records - zoneRecords.AddRange( - BuildDnsResourceRecords(records, zoneName, "")); + // add all other records + zoneRecords.AddRange(BuildDnsResourceRecords(records, zoneName, "")); - // add zone records - dns.AddZoneRecords(zoneName, zoneRecords.ToArray()); + // add zone records + dns.AddZoneRecords(zoneName, zoneRecords.ToArray()); - // add secondary zones - foreach (int secondaryId in secondaryServiceIds) - { - try - { - // add secondary zone - DNSServer secDns = GetDNSServer(secondaryId); - secDns.AddSecondaryZone(zoneName, primaryIPAddresses); - RegisterZoneItems(packageId, secondaryId, zoneName, false); - } - catch (Exception ex) - { - TaskManager.WriteError(ex, "Error adding secondary zone (service ID = " + secondaryId + ")"); - } - } + // add secondary zones + foreach (int secondaryId in secondaryServiceIds) + { + try + { + // add secondary zone + DNSServer secDns = GetDNSServer(secondaryId); + secDns.AddSecondaryZone(zoneName, primaryIPAddresses); + RegisterZoneItems(packageId, secondaryId, zoneName, false); + } + catch (Exception ex) + { + TaskManager.WriteError(ex, "Error adding secondary zone (service ID = " + secondaryId + ")"); + } + } - if (!addPackageItem) - return 0; - // add service item - zoneItemId = RegisterZoneItems(packageId, serviceId, zoneName, true); - // - TaskManager.ItemId = zoneItemId; - } - catch (Exception ex) - { - TaskManager.WriteError(ex); - } - finally - { - TaskManager.CompleteTask(); - } - // - return zoneItemId; - } + if (!addPackageItem) + return 0; + // add service item + zoneItemId = RegisterZoneItems(packageId, serviceId, zoneName, true); + // + TaskManager.ItemId = zoneItemId; + } + catch (Exception ex) + { + TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } + // + return zoneItemId; + } private static int RegisterZoneItems(int spaceId, int serviceId, string zoneName, bool primaryZone) @@ -202,131 +201,138 @@ namespace WebsitePanel.EnterpriseServer int zoneItemId = PackageController.AddPackageItem(zone); return zoneItemId; } - + public static int DeleteZone(int zoneItemId) - { - // delete DNS zone if applicable + { + // delete DNS zone if applicable DnsZone zoneItem = (DnsZone)PackageController.GetPackageItem(zoneItemId); - // - if (zoneItem != null) - { - TaskManager.StartTask("DNS_ZONE", "DELETE", zoneItem.Name); - // - try - { - // - TaskManager.ItemId = zoneItemId; - // delete DNS zone - DNSServer dns = new DNSServer(); - ServiceProviderProxy.Init(dns, zoneItem.ServiceId); + // + if (zoneItem != null) + { + TaskManager.StartTask("DNS_ZONE", "DELETE", zoneItem.Name); + // + try + { + // + TaskManager.ItemId = zoneItemId; + // delete DNS zone + DNSServer dns = new DNSServer(); + ServiceProviderProxy.Init(dns, zoneItem.ServiceId); - // delete secondary zones - StringDictionary primSettings = ServerController.GetServiceSettings(zoneItem.ServiceId); - string strSecondaryServices = primSettings["SecondaryDNSServices"]; - if (!String.IsNullOrEmpty(strSecondaryServices)) - { - string[] secondaryServices = strSecondaryServices.Split(','); - foreach (string strSecondaryId in secondaryServices) - { - try - { - int secondaryId = Utils.ParseInt(strSecondaryId, 0); - if (secondaryId == 0) - continue; + // delete secondary zones + StringDictionary primSettings = ServerController.GetServiceSettings(zoneItem.ServiceId); + string strSecondaryServices = primSettings["SecondaryDNSServices"]; + if (!String.IsNullOrEmpty(strSecondaryServices)) + { + string[] secondaryServices = strSecondaryServices.Split(','); + foreach (string strSecondaryId in secondaryServices) + { + try + { + int secondaryId = Utils.ParseInt(strSecondaryId, 0); + if (secondaryId == 0) + continue; - DNSServer secDns = new DNSServer(); - ServiceProviderProxy.Init(secDns, secondaryId); + DNSServer secDns = new DNSServer(); + ServiceProviderProxy.Init(secDns, secondaryId); - secDns.DeleteZone(zoneItem.Name); - } - catch (Exception ex1) - { - // problem when deleting secondary zone - TaskManager.WriteError(ex1, "Error deleting secondary DNS zone"); - } - } - } + secDns.DeleteZone(zoneItem.Name); + } + catch (Exception ex1) + { + // problem when deleting secondary zone + TaskManager.WriteError(ex1, "Error deleting secondary DNS zone"); + } + } + } - try - { - dns.DeleteZone(zoneItem.Name); - } - catch (Exception ex2) - { - TaskManager.WriteError(ex2, "Error deleting primary DNS zone"); - } + try + { + dns.DeleteZone(zoneItem.Name); + } + catch (Exception ex2) + { + TaskManager.WriteError(ex2, "Error deleting primary DNS zone"); + } - // delete service item - PackageController.DeletePackageItem(zoneItemId); - } - catch (Exception ex) - { - TaskManager.WriteError(ex); - } - finally - { - TaskManager.CompleteTask(); - } - } - // - return 0; - } + // delete service item + PackageController.DeletePackageItem(zoneItemId); + } + catch (Exception ex) + { + TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } + } + // + return 0; + } - public static List BuildDnsResourceRecords(List records, - string domainName, string serviceIP) - { - List zoneRecords = new List(); + public static List BuildDnsResourceRecords(List records, string domainName, string serviceIP) + { + List zoneRecords = new List(); - foreach (GlobalDnsRecord record in records) - { - DnsRecord rr = new DnsRecord(); - rr.RecordType = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), record.RecordType, true); - rr.RecordName = record.RecordName; + foreach (GlobalDnsRecord record in records) + { + DnsRecord rr = new DnsRecord(); + rr.RecordType = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), record.RecordType, true); + rr.RecordName = record.RecordName; + + if (record.RecordType == "A") + { + rr.RecordData = String.IsNullOrEmpty(record.RecordData) ? record.ExternalIP : record.RecordData; + rr.RecordData = Utils.ReplaceStringVariable(rr.RecordData, "ip", record.ExternalIP); - if (record.RecordType == "A") - { - rr.RecordData = String.IsNullOrEmpty(record.RecordData) ? record.ExternalIP : record.RecordData; - rr.RecordData = Utils.ReplaceStringVariable(rr.RecordData, "ip", record.ExternalIP); + if (String.IsNullOrEmpty(rr.RecordData) && !String.IsNullOrEmpty(serviceIP)) + rr.RecordData = serviceIP; + } + else if (record.RecordType == "SRV") + { + rr.SrvPriority = record.SrvPriority; + rr.SrvWeight = record.SrvWeight; + rr.SrvPort = record.SrvPort; + rr.RecordText = record.RecordData; + rr.RecordData = record.RecordData; + } + else + { + rr.RecordData = record.RecordData; + } - if (String.IsNullOrEmpty(rr.RecordData) && !String.IsNullOrEmpty(serviceIP)) - rr.RecordData = serviceIP; - } - else - { - rr.RecordData = record.RecordData; - } + // substitute variables + rr.RecordData = Utils.ReplaceStringVariable(rr.RecordData, "domain_name", domainName); - // substitute variables - rr.RecordData = Utils.ReplaceStringVariable(rr.RecordData, "domain_name", domainName); + // add MX priority + if (record.RecordType == "MX") + rr.MxPriority = record.MxPriority; - // add MX priority - if (record.RecordType == "MX") - rr.MxPriority = record.MxPriority; + if (!String.IsNullOrEmpty(rr.RecordData)) + zoneRecords.Add(rr); + } - if (!String.IsNullOrEmpty(rr.RecordData)) - zoneRecords.Add(rr); - } + return zoneRecords; + } - return zoneRecords; - } + public static string[] GetExternalIPAddressesFromString(string str) + { + List ips = new List(); - public static string[] GetExternalIPAddressesFromString(string str) - { - List ips = new List(); + if (str != null && str.Trim() != "") + { + string[] sips = str.Split(','); + foreach (string sip in sips) + { + IPAddressInfo ip = ServerController.GetIPAddress(Int32.Parse(sip)); + if (ip != null) + ips.Add(ip.ExternalIP); + } + } - if (str != null && str.Trim() != "") - { - string[] sips = str.Split(','); - foreach (string sip in sips) - { - IPAddressInfo ip = ServerController.GetIPAddress(Int32.Parse(sip)); - if (ip != null) - ips.Add(ip.ExternalIP); - } - } - - return ips.ToArray(); - } + return ips.ToArray(); + } #region IImportController Members @@ -350,7 +356,7 @@ namespace WebsitePanel.EnterpriseServer } public void ImportItem(int packageId, int itemTypeId, Type itemType, - ResourceGroupInfo group, string itemName) + ResourceGroupInfo group, string itemName) { // get service id int serviceId = PackageController.GetPackageServiceId(packageId, group.GroupName); @@ -395,11 +401,11 @@ namespace WebsitePanel.EnterpriseServer public int BackupItem(string tempFolder, XmlWriter writer, ServiceProviderItem item, ResourceGroupInfo group) { - if (!(item is DnsZone)) - return 0; + if (!(item is DnsZone)) + return 0; // DNS provider - DNSServer dns = GetDNSServer(item.ServiceId); + DNSServer dns = GetDNSServer(item.ServiceId); // zone records serialized XmlSerializer serializer = new XmlSerializer(typeof(DnsRecord)); @@ -424,31 +430,31 @@ namespace WebsitePanel.EnterpriseServer public int RestoreItem(string tempFolder, XmlNode itemNode, int itemId, Type itemType, string itemName, int packageId, int serviceId, ResourceGroupInfo group) { - if (itemType != typeof(DnsZone)) - return 0; + if (itemType != typeof(DnsZone)) + return 0; - // DNS provider - DNSServer dns = GetDNSServer(serviceId); + // DNS provider + DNSServer dns = GetDNSServer(serviceId); - // check service item - if (!dns.ZoneExists(itemName)) - { - // create primary and secondary zones - AddZone(packageId, serviceId, itemName, false); + // check service item + if (!dns.ZoneExists(itemName)) + { + // create primary and secondary zones + AddZone(packageId, serviceId, itemName, false); - // restore records - XmlSerializer serializer = new XmlSerializer(typeof(DnsRecord)); - List records = new List(); - foreach (XmlNode childNode in itemNode.ChildNodes) - { - if (childNode.Name == "DnsRecord") - { - records.Add((DnsRecord)serializer.Deserialize(new XmlNodeReader(childNode))); - } - } + // restore records + XmlSerializer serializer = new XmlSerializer(typeof(DnsRecord)); + List records = new List(); + foreach (XmlNode childNode in itemNode.ChildNodes) + { + if (childNode.Name == "DnsRecord") + { + records.Add((DnsRecord)serializer.Deserialize(new XmlNodeReader(childNode))); + } + } - dns.AddZoneRecords(itemName, records.ToArray()); - } + dns.AddZoneRecords(itemName, records.ToArray()); + } // check if meta-item exists int zoneId = 0; @@ -470,7 +476,7 @@ namespace WebsitePanel.EnterpriseServer // restore domains RestoreDomainByZone(itemName, packageId, zoneId); - return 0; + return 0; } #endregion diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/CRMController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/CRMController.cs index 24faf4be..c2edc1bb 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/CRMController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/CRMController.cs @@ -74,7 +74,7 @@ namespace WebsitePanel.EnterpriseServer } } - int res = ServerController.AddDnsZoneRecord(domainId, recordName, DnsRecordType.A, ip, 0); + int res = ServerController.AddDnsZoneRecord(domainId, recordName, DnsRecordType.A, ip, 0, 0, 0, 0); if (res != 0) { CompleteTask(ret, CrmErrorCodes.CANNOT_CREATE_DNS_ZONE, null, diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs index f701f5cc..c4d60460 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs @@ -460,7 +460,7 @@ namespace WebsitePanel.EnterpriseServer domain.PackageId = packageId; domain.DomainName = domainName; domain.HostingAllowed = false; - domainId = ServerController.AddDomain(domain, createInstantAlias); + domainId = ServerController.AddDomain(domain, createInstantAlias, true); if (domainId < 0) { result.Result = domainId; diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Servers/ServerController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Servers/ServerController.cs index 260be7de..f8a2e889 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Servers/ServerController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Servers/ServerController.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2012, Outercurve Foundation. +// Copyright (c) 2011, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, @@ -122,20 +122,20 @@ namespace WebsitePanel.EnterpriseServer try { // TO-DO: Check connectivity - return 0; + return 0; } catch (WebException ex) { HttpWebResponse response = (HttpWebResponse)ex.Response; - if (response != null && response.StatusCode == HttpStatusCode.NotFound) + if (response != null && response.StatusCode == HttpStatusCode.NotFound) return BusinessErrorCodes.ERROR_ADD_SERVER_NOT_FOUND; - else if (response != null && response.StatusCode == HttpStatusCode.BadRequest) + else if (response != null && response.StatusCode == HttpStatusCode.BadRequest) return BusinessErrorCodes.ERROR_ADD_SERVER_BAD_REQUEST; - else if (response != null && response.StatusCode == HttpStatusCode.InternalServerError) + else if (response != null && response.StatusCode == HttpStatusCode.InternalServerError) return BusinessErrorCodes.ERROR_ADD_SERVER_INTERNAL_SERVER_ERROR; - else if (response != null && response.StatusCode == HttpStatusCode.ServiceUnavailable) + else if (response != null && response.StatusCode == HttpStatusCode.ServiceUnavailable) return BusinessErrorCodes.ERROR_ADD_SERVER_SERVICE_UNAVAILABLE; - else if (response != null && response.StatusCode == HttpStatusCode.Unauthorized) + else if (response != null && response.StatusCode == HttpStatusCode.Unauthorized) return BusinessErrorCodes.ERROR_ADD_SERVER_UNAUTHORIZED; if (ex.Message.Contains("The remote name could not be resolved") || ex.Message.Contains("Unable to connect")) { @@ -155,7 +155,7 @@ namespace WebsitePanel.EnterpriseServer { TaskManager.WriteError("General Server Error"); TaskManager.WriteError(ex); - return BusinessErrorCodes.ERROR_ADD_SERVER_APPLICATION_ERROR; + return BusinessErrorCodes.ERROR_ADD_SERVER_APPLICATION_ERROR; } } finally @@ -220,7 +220,7 @@ namespace WebsitePanel.EnterpriseServer throw new ApplicationException("Could not find services. General error was occued.", ex); } } - + public static int AddServer(ServerInfo server, bool autoDiscovery) { // check account @@ -243,8 +243,8 @@ namespace WebsitePanel.EnterpriseServer } TaskManager.StartTask("SERVER", "ADD", server.ServerName); - - int serverId = DataProvider.AddServer(server.ServerName, server.ServerUrl, + + int serverId = DataProvider.AddServer(server.ServerName, server.ServerUrl, CryptoUtils.Encrypt(server.Password), server.Comments, server.VirtualServer, server.InstantDomainAlias, server.PrimaryGroupId, server.ADEnabled, server.ADRootDomain, server.ADUsername, CryptoUtils.Encrypt(server.ADPassword), server.ADAuthenticationType); @@ -261,7 +261,7 @@ namespace WebsitePanel.EnterpriseServer TaskManager.WriteError(ex); } } - + TaskManager.ItemId = serverId; TaskManager.CompleteTask(); @@ -294,7 +294,7 @@ namespace WebsitePanel.EnterpriseServer return availResult; } - DataProvider.UpdateServer(server.ServerId, server.ServerName, server.ServerUrl, + DataProvider.UpdateServer(server.ServerId, server.ServerName, server.ServerUrl, CryptoUtils.Encrypt(server.Password), server.Comments, server.InstantDomainAlias, server.PrimaryGroupId, server.ADEnabled, server.ADRootDomain, server.ADUsername, CryptoUtils.Encrypt(server.ADPassword), server.ADAuthenticationType); @@ -322,7 +322,7 @@ namespace WebsitePanel.EnterpriseServer server.Password = password; // update server - DataProvider.UpdateServer(server.ServerId, server.ServerName, server.ServerUrl, + DataProvider.UpdateServer(server.ServerId, server.ServerName, server.ServerUrl, CryptoUtils.Encrypt(server.Password), server.Comments, server.InstantDomainAlias, server.PrimaryGroupId, server.ADEnabled, server.ADRootDomain, server.ADUsername, CryptoUtils.Encrypt(server.ADPassword), server.ADAuthenticationType); @@ -350,7 +350,7 @@ namespace WebsitePanel.EnterpriseServer server.ADPassword = adPassword; // update server - DataProvider.UpdateServer(server.ServerId, server.ServerName, server.ServerUrl, + DataProvider.UpdateServer(server.ServerId, server.ServerName, server.ServerUrl, CryptoUtils.Encrypt(server.Password), server.Comments, server.InstantDomainAlias, server.PrimaryGroupId, server.ADEnabled, server.ADRootDomain, server.ADUsername, CryptoUtils.Encrypt(server.ADPassword), server.ADAuthenticationType); @@ -636,12 +636,12 @@ namespace WebsitePanel.EnterpriseServer | DemandAccount.IsActive); if (accountCheck < 0) return accountCheck; - // load original service - ServiceInfo origService = GetServiceInfo(service.ServiceId); + // load original service + ServiceInfo origService = GetServiceInfo(service.ServiceId); TaskManager.StartTask("SERVER", "UPDATE_SERVICE"); - TaskManager.ItemId = origService.ServerId; - TaskManager.ItemName = GetServerByIdInternal(origService.ServerId).ServerName; + TaskManager.ItemId = origService.ServerId; + TaskManager.ItemName = GetServerByIdInternal(origService.ServerId).ServerName; TaskManager.WriteParameter("New service name", service.ServiceName); DataProvider.UpdateService(service.ServiceId, service.ServiceName, @@ -839,7 +839,7 @@ namespace WebsitePanel.EnterpriseServer public static BoolResult IsInstalled(int serverId, int providerId) { BoolResult res = TaskManager.StartResultTask("AUTO_DISCOVERY", "IS_INSTALLED"); - + try { ProviderInfo provider = GetProvider(providerId); @@ -848,22 +848,22 @@ namespace WebsitePanel.EnterpriseServer TaskManager.CompleteResultTask(res, ErrorCodes.CANNOT_GET_PROVIDER_INFO); return res; } - + AutoDiscovery.AutoDiscovery ad = new AutoDiscovery.AutoDiscovery(); ServiceProviderProxy.ServerInit(ad, serverId); - - res = ad.IsInstalled(provider.ProviderType); + + res = ad.IsInstalled(provider.ProviderType); } - catch(Exception ex) + catch (Exception ex) { TaskManager.CompleteResultTask(res, ErrorCodes.CANNOT_CHECK_IF_PROVIDER_SOFTWARE_INSTALLED, ex); - + } TaskManager.CompleteResultTask(); return res; } - + public static string GetServerVersion(int serverId) { AutoDiscovery.AutoDiscovery ad = new AutoDiscovery.AutoDiscovery(); @@ -871,7 +871,7 @@ namespace WebsitePanel.EnterpriseServer return ad.GetServerVersion(); } - + #endregion #region IP Addresses @@ -1400,18 +1400,18 @@ namespace WebsitePanel.EnterpriseServer private static string GetIPAddressesQuotaByResourceGroup(string groupName) { - if (String.Compare(groupName, ResourceGroups.VPS, true) == 0) - { - return Quotas.VPS_EXTERNAL_IP_ADDRESSES_NUMBER; - } - else if (String.Compare(groupName, ResourceGroups.VPSForPC, true) == 0) - { - return Quotas.VPSForPC_EXTERNAL_IP_ADDRESSES_NUMBER; - } - else - { - return Quotas.WEB_IP_ADDRESSES; - } + if (String.Compare(groupName, ResourceGroups.VPS, true) == 0) + { + return Quotas.VPS_EXTERNAL_IP_ADDRESSES_NUMBER; + } + else if (String.Compare(groupName, ResourceGroups.VPSForPC, true) == 0) + { + return Quotas.VPSForPC_EXTERNAL_IP_ADDRESSES_NUMBER; + } + else + { + return Quotas.WEB_IP_ADDRESSES; + } } #endregion @@ -1521,7 +1521,8 @@ namespace WebsitePanel.EnterpriseServer TaskManager.WriteParameter("Data", record.RecordData); DataProvider.AddDnsRecord(SecurityContext.User.UserId, record.ServiceId, record.ServerId, record.PackageId, - record.RecordType, record.RecordName, record.RecordData, record.MxPriority, record.IpAddressId); + record.RecordType, record.RecordName, record.RecordData, record.MxPriority, + record.SrvPriority, record.SrvWeight, record.SrvPort, record.IpAddressId); TaskManager.CompleteTask(); @@ -1540,7 +1541,8 @@ namespace WebsitePanel.EnterpriseServer TaskManager.WriteParameter("Data", record.RecordData); DataProvider.UpdateDnsRecord(SecurityContext.User.UserId, record.RecordId, - record.RecordType, record.RecordName, record.RecordData, record.MxPriority, record.IpAddressId); + record.RecordType, record.RecordName, record.RecordData, record.MxPriority, + record.SrvPriority, record.SrvWeight, record.SrvPort, record.IpAddressId); TaskManager.CompleteTask(); @@ -1571,7 +1573,7 @@ namespace WebsitePanel.EnterpriseServer #region Domains public static int CheckDomain(string domainName) { - int checkDomainResult = DataProvider.CheckDomain(-10, domainName); + int checkDomainResult = DataProvider.CheckDomain(-10, domainName, false); if (checkDomainResult == -1) return BusinessErrorCodes.ERROR_DOMAIN_ALREADY_EXISTS; @@ -1677,8 +1679,7 @@ namespace WebsitePanel.EnterpriseServer } public static int AddDomainWithProvisioning(int packageId, string domainName, DomainType domainType, - bool createWebSite, int pointWebSiteId, int pointMailDomainId, - bool createDnsZone, bool createInstantAlias, bool allowSubDomains) + bool createWebSite, int pointWebSiteId, int pointMailDomainId, bool createDnsZone, bool createInstantAlias, bool allowSubDomains) { // check account int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); @@ -1687,7 +1688,7 @@ namespace WebsitePanel.EnterpriseServer // check package int packageCheck = SecurityContext.CheckPackage(packageId, DemandPackage.IsActive); if (packageCheck < 0) return packageCheck; - + // set flags bool isSubDomain = (domainType == DomainType.SubDomain || domainType == DomainType.ProviderSubDomain); bool isDomainPointer = (domainType == DomainType.DomainPointer); @@ -1748,10 +1749,10 @@ namespace WebsitePanel.EnterpriseServer public static int AddDomain(DomainInfo domain) { - return AddDomain(domain, false); + return AddDomain(domain, false, false); } - public static int AddDomain(DomainInfo domain, bool createInstantAlias) + public static int AddDomain(DomainInfo domain, bool createInstantAlias, bool createZone) { // check account int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); @@ -1762,7 +1763,7 @@ namespace WebsitePanel.EnterpriseServer if (packageCheck < 0) return packageCheck; // add main domain - int domainId = AddDomainInternal(domain.PackageId, domain.DomainName, true, + int domainId = AddDomainInternal(domain.PackageId, domain.DomainName, createZone, domain.IsSubDomain, false, domain.IsDomainPointer, false); if (domainId < 0) @@ -1805,7 +1806,7 @@ namespace WebsitePanel.EnterpriseServer } // check if the domain already exists - int checkResult = DataProvider.CheckDomain(packageId, domainName); + int checkResult = DataProvider.CheckDomain(packageId, domainName, isDomainPointer); if (checkResult < 0) { @@ -1816,15 +1817,18 @@ namespace WebsitePanel.EnterpriseServer else return checkResult; } - - if (domainName.ToLower().StartsWith("www.")) - return BusinessErrorCodes.ERROR_DOMAIN_STARTS_WWW; + /* + if (domainName.ToLower().StartsWith("www.")) + return BusinessErrorCodes.ERROR_DOMAIN_STARTS_WWW; + */ // place log record TaskManager.StartTask("DOMAIN", "ADD", domainName); TaskManager.PackageId = packageId; TaskManager.TaskParameters["CreateZone"] = createDnsZone; + + // create DNS zone int zoneItemId = 0; if (createDnsZone) @@ -1895,60 +1899,60 @@ namespace WebsitePanel.EnterpriseServer } } - public static int DetachDomain(int domainId) - { - // check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsAdmin); - if (accountCheck < 0) return accountCheck; + public static int DetachDomain(int domainId) + { + // check account + int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsAdmin); + if (accountCheck < 0) return accountCheck; - // load domain - DomainInfo domain = GetDomain(domainId); + // load domain + DomainInfo domain = GetDomain(domainId); - // place log record - TaskManager.StartTask("DOMAIN", "DETACH", domain.DomainName); - TaskManager.ItemId = domain.DomainId; + // place log record + TaskManager.StartTask("DOMAIN", "DETACH", domain.DomainName); + TaskManager.ItemId = domain.DomainId; - try - { - // check if domain can be deleted - if (domain.WebSiteId > 0) - { - TaskManager.WriteError("Domain points to the existing web site"); - return BusinessErrorCodes.ERROR_DOMAIN_POINTS_TO_WEB_SITE; - } + try + { + // check if domain can be deleted + if (domain.WebSiteId > 0) + { + TaskManager.WriteError("Domain points to the existing web site"); + return BusinessErrorCodes.ERROR_DOMAIN_POINTS_TO_WEB_SITE; + } - if (domain.MailDomainId > 0) - { - TaskManager.WriteError("Domain points to the existing mail domain"); - return BusinessErrorCodes.ERROR_DOMAIN_POINTS_TO_MAIL_DOMAIN; - } + if (domain.MailDomainId > 0) + { + TaskManager.WriteError("Domain points to the existing mail domain"); + return BusinessErrorCodes.ERROR_DOMAIN_POINTS_TO_MAIL_DOMAIN; + } if (DataProvider.ExchangeOrganizationDomainExists(domain.DomainId)) { TaskManager.WriteError("Domain points to the existing organization domain"); return BusinessErrorCodes.ERROR_ORGANIZATION_DOMAIN_IS_IN_USE; } - + // remove DNS zone meta-item if required - if (domain.ZoneItemId > 0) - { - PackageController.DeletePackageItem(domain.ZoneItemId); - } + if (domain.ZoneItemId > 0) + { + PackageController.DeletePackageItem(domain.ZoneItemId); + } - // delete domain - DataProvider.DeleteDomain(SecurityContext.User.UserId, domainId); + // delete domain + DataProvider.DeleteDomain(SecurityContext.User.UserId, domainId); - return 0; - } - catch (Exception ex) - { - throw TaskManager.WriteError(ex); - } - finally - { - TaskManager.CompleteTask(); - } - } + return 0; + } + catch (Exception ex) + { + throw TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } + } public static int DeleteDomain(int domainId) { @@ -1991,9 +1995,9 @@ namespace WebsitePanel.EnterpriseServer if (res < 0) return res; } - - // delete zone if required - DnsServerController.DeleteZone(domain.ZoneItemId); + + // delete zone if required + DnsServerController.DeleteZone(domain.ZoneItemId); // delete domain DataProvider.DeleteDomain(SecurityContext.User.UserId, domainId); @@ -2096,7 +2100,7 @@ namespace WebsitePanel.EnterpriseServer } // add web site DNS records - int res = AddWebSiteZoneRecords(domainId); + int res = AddWebSiteZoneRecords("", domainId); if (res < 0) return res; @@ -2112,7 +2116,7 @@ namespace WebsitePanel.EnterpriseServer } } - private static int AddWebSiteZoneRecords(int domainId) + private static int AddWebSiteZoneRecords(string hostName, int domainId) { // load domain DomainInfo domain = GetDomainItem(domainId); @@ -2126,7 +2130,7 @@ namespace WebsitePanel.EnterpriseServer return res; } - public static int CreateDomainInstantAlias(int domainId) + public static int CreateDomainInstantAlias(string hostName, int domainId) { // check account int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo); @@ -2166,14 +2170,15 @@ namespace WebsitePanel.EnterpriseServer if (webRes < 0) return webRes; } - - // add mail domain pointer - if (domain.MailDomainId > 0 && instantAlias.MailDomainId == 0) - { - int mailRes = MailServerController.AddMailDomainPointer(domain.MailDomainId, instantAliasId); - if (mailRes < 0) - return mailRes; - } + /* + // add mail domain pointer + if (domain.MailDomainId > 0 && instantAlias.MailDomainId == 0) + { + int mailRes = MailServerController.AddMailDomainPointer(domain.MailDomainId, instantAliasId); + if (mailRes < 0) + return mailRes; + } + */ return 0; } @@ -2214,14 +2219,15 @@ namespace WebsitePanel.EnterpriseServer if (webRes < 0) return webRes; } - - // remove from mail domain pointers - if (instantAlias.MailDomainId > 0) - { - int mailRes = MailServerController.DeleteMailDomainPointer(instantAlias.MailDomainId, instantAlias.DomainId); - if (mailRes < 0) - return mailRes; - } + /* + // remove from mail domain pointers + if (instantAlias.MailDomainId > 0) + { + int mailRes = MailServerController.DeleteMailDomainPointer(instantAlias.MailDomainId, instantAlias.DomainId); + if (mailRes < 0) + return mailRes; + } + */ // delete instant alias int res = DeleteDomain(instantAlias.DomainId); @@ -2272,12 +2278,15 @@ namespace WebsitePanel.EnterpriseServer dt.Columns.Add("RecordName", typeof(string)); dt.Columns.Add("RecordData", typeof(string)); dt.Columns.Add("MxPriority", typeof(int)); + dt.Columns.Add("SrvPriority", typeof(int)); + dt.Columns.Add("SrvWeight", typeof(int)); + dt.Columns.Add("SrvPort", typeof(int)); // add rows DnsRecord[] records = GetDnsZoneRecords(domainId); foreach (DnsRecord record in records) { - dt.Rows.Add(record.RecordType, record.RecordName, record.RecordData, record.MxPriority); + dt.Rows.Add(record.RecordType, record.RecordName, record.RecordData, record.MxPriority, record.SrvPriority, record.SrvWeight, record.SrvPort); } return ds; @@ -2299,7 +2308,7 @@ namespace WebsitePanel.EnterpriseServer } public static int AddDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, - string recordData, int mxPriority) + string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPort) { // check account int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); @@ -2315,7 +2324,7 @@ namespace WebsitePanel.EnterpriseServer // get DNS service DnsZone zoneItem = (DnsZone)PackageController.GetPackageItem(domain.ZoneItemId); - if(zoneItem == null) + if (zoneItem == null) return 0; // place log record @@ -2337,6 +2346,9 @@ namespace WebsitePanel.EnterpriseServer record.RecordName = recordName; record.RecordData = recordData; record.MxPriority = mxPriority; + record.SrvPriority = srvPriority; + record.SrvWeight = srvWeight; + record.SrvPort = srvPort; dns.AddZoneRecord(zoneItem.Name, record); return 0; @@ -2353,7 +2365,7 @@ namespace WebsitePanel.EnterpriseServer public static int UpdateDnsZoneRecord(int domainId, string originalRecordName, string originalRecordData, - string recordName, DnsRecordType recordType, string recordData, int mxPriority) + string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber) { // place log record DomainInfo domain = GetDomain(domainId); @@ -2367,7 +2379,7 @@ namespace WebsitePanel.EnterpriseServer DeleteDnsZoneRecord(domainId, originalRecordName, recordType, originalRecordData); // add new record - AddDnsZoneRecord(domainId, recordName, recordType, recordData, mxPriority); + AddDnsZoneRecord(domainId, recordName, recordType, recordData, mxPriority, srvPriority, srvWeight, srvPortNumber); return 0; } @@ -2410,7 +2422,7 @@ namespace WebsitePanel.EnterpriseServer DNSServer dns = new DNSServer(); ServiceProviderProxy.Init(dns, zoneItem.ServiceId); - DnsRecord record = GetDnsZoneRecord(domainId, recordName, recordType, recordData); + DnsRecord record = GetDnsZoneRecord(domainId, recordName, recordType, recordData); dns.DeleteZoneRecord(zoneItem.Name, record); return 0; diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/SharePoint/HostedSharePointServerController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/SharePoint/HostedSharePointServerController.cs index 8d149714..8a1b4baa 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/SharePoint/HostedSharePointServerController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/SharePoint/HostedSharePointServerController.cs @@ -346,7 +346,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint } } - ServerController.AddDnsZoneRecord(domain.DomainId, hostName, DnsRecordType.A, hostedSharePointSettings["RootWebApplicationIpAddress"], 0); + ServerController.AddDnsZoneRecord(domain.DomainId, hostName, DnsRecordType.A, hostedSharePointSettings["RootWebApplicationIpAddress"], 0, 0, 0, 0); } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Wizards/UserCreationWizard.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Wizards/UserCreationWizard.cs index cae8e037..1ba6e220 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Wizards/UserCreationWizard.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Wizards/UserCreationWizard.cs @@ -173,7 +173,7 @@ namespace WebsitePanel.EnterpriseServer domain.PackageId = createdPackageId; domain.DomainName = domainName; domain.HostingAllowed = false; - domainId = ServerController.AddDomain(domain, !tempDomain); + domainId = ServerController.AddDomain(domain, false, !tempDomain); if (domainId < 0) { // rollback wizard diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs index e389b148..3caa0f08 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esServers.asmx.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2012, Outercurve Foundation. +// Copyright (c) 2011, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, @@ -249,7 +249,7 @@ namespace WebsitePanel.EnterpriseServer { return ServerController.GetProviderServiceQuota(providerId); } - + #endregion #region Providers @@ -301,7 +301,7 @@ namespace WebsitePanel.EnterpriseServer { return ServerController.IsInstalled(serverId, providerId); } - + [WebMethod] public string GetServerVersion(int serverId) { @@ -568,11 +568,11 @@ namespace WebsitePanel.EnterpriseServer return ServerController.DeleteDomain(domainId); } - [WebMethod] - public int DetachDomain(int domainId) - { - return ServerController.DetachDomain(domainId); - } + [WebMethod] + public int DetachDomain(int domainId) + { + return ServerController.DetachDomain(domainId); + } [WebMethod] public int EnableDomainDns(int domainId) @@ -587,9 +587,9 @@ namespace WebsitePanel.EnterpriseServer } [WebMethod] - public int CreateDomainInstantAlias(int domainId) + public int CreateDomainInstantAlias(string hostName, int domainId) { - return ServerController.CreateDomainInstantAlias(domainId); + return ServerController.CreateDomainInstantAlias(hostName, domainId); } [WebMethod] @@ -614,18 +614,18 @@ namespace WebsitePanel.EnterpriseServer [WebMethod] public int AddDnsZoneRecord(int domainId, string recordName, DnsRecordType recordType, - string recordData, int mxPriority) + string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber) { - return ServerController.AddDnsZoneRecord(domainId, recordName, recordType, recordData, mxPriority); + return ServerController.AddDnsZoneRecord(domainId, recordName, recordType, recordData, mxPriority, srvPriority, srvWeight, srvPortNumber); } [WebMethod] public int UpdateDnsZoneRecord(int domainId, string originalRecordName, string originalRecordData, - string recordName, DnsRecordType recordType, string recordData, int mxPriority) + string recordName, DnsRecordType recordType, string recordData, int mxPriority, int srvPriority, int srvWeight, int srvPortNumber) { return ServerController.UpdateDnsZoneRecord(domainId, originalRecordName, originalRecordData, - recordName, recordType, recordData, mxPriority); + recordName, recordType, recordData, mxPriority, srvPriority, srvWeight, srvPortNumber); } [WebMethod] diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecord.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecord.cs index d5a75e28..ec61181d 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecord.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecord.cs @@ -39,6 +39,10 @@ namespace WebsitePanel.Providers.DNS private string recordData; private int mxPriority; private string recordText; + private int srvPriority; + private int srvWeight; + private int srvPort; + public string RecordName { @@ -69,5 +73,25 @@ namespace WebsitePanel.Providers.DNS get { return this.recordText; } set { this.recordText = value; } } + + + public int SrvPriority + { + get { return this.srvPriority; } + set { this.srvPriority = value; } + } + + public int SrvWeight + { + get { return this.srvWeight; } + set { this.srvWeight = value; } + } + + public int SrvPort + { + get { return this.srvPort; } + set { this.srvPort = value; } + } + } } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecordType.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecordType.cs index acc08741..722c7b83 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecordType.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/DNS/DnsRecordType.cs @@ -40,6 +40,8 @@ namespace WebsitePanel.Providers.DNS CNAME, SOA, TXT, + SRV, Other } } + diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS/MsDNS.cs b/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS/MsDNS.cs index e2a81904..a89b73c2 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS/MsDNS.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS/MsDNS.cs @@ -80,52 +80,52 @@ namespace WebsitePanel.Providers.DNS #region Zones - /// - /// Supports managed resources disposal - /// - /// + /// + /// Supports managed resources disposal + /// + /// public virtual string[] GetZones() { List zones = new List(); - using (ManagementObjectCollection objZones = wmi.GetClass("MicrosoftDNS_Zone").GetInstances()) - { - foreach (ManagementObject objZone in objZones) using(objZone) - { - if ((uint)objZone.Properties["ZoneType"].Value == 1) - zones.Add((string)objZone.Properties["Name"].Value); - } - } + using (ManagementObjectCollection objZones = wmi.GetClass("MicrosoftDNS_Zone").GetInstances()) + { + foreach (ManagementObject objZone in objZones) using (objZone) + { + if ((uint)objZone.Properties["ZoneType"].Value == 1) + zones.Add((string)objZone.Properties["Name"].Value); + } + } return zones.ToArray(); } - /// - /// - /// - /// - /// - /// Supports managed resources disposal + /// + /// + /// + /// + /// + /// Supports managed resources disposal public virtual bool ZoneExists(string zoneName) { - using (RegistryKey root = Registry.LocalMachine) - { - using (RegistryKey rk = root.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\DNS Server\\Zones\\" + zoneName)) - { - return (rk != null); - } - } + using (RegistryKey root = Registry.LocalMachine) + { + using (RegistryKey rk = root.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\DNS Server\\Zones\\" + zoneName)) + { + return (rk != null); + } + } } - /// - /// Supports managed resources disposal - /// - /// - /// - + /// + /// Supports managed resources disposal + /// + /// + /// + public virtual DnsRecord[] GetZoneRecords(string zoneName) { - //using (ManagementObjectCollection rrs = wmi.ExecuteQuery( - // String.Format("SELECT * FROM MicrosoftDNS_ResourceRecord WHERE DomainName='{0}'", zoneName))) + //using (ManagementObjectCollection rrs = wmi.ExecuteQuery( + // String.Format("SELECT * FROM MicrosoftDNS_ResourceRecord WHERE DomainName='{0}'", zoneName))) //ManagementObjectCollection rrs = GetWmiObjects("MicrosoftDNS_ResourceRecord", "DomainName='{0}'",zoneName); ManagementObjectCollection rrsA = wmi.GetWmiObjects("MicrosoftDNS_AType", "DomainName='{0}'", zoneName); @@ -138,6 +138,14 @@ namespace WebsitePanel.Providers.DNS ManagementObjectCollection rrsTXT = wmi.GetWmiObjects("MicrosoftDNS_TXTType", "DomainName='{0}'", zoneName); + ManagementObjectCollection rrsSRV = wmi.GetWmiObjects("MicrosoftDNS_SRVType", "DomainName='{0}'", zoneName); + + ManagementObjectCollection rrsSRV_tcp = wmi.GetWmiObjects("MicrosoftDNS_SRVType", "DomainName='_tcp.{0}'", zoneName); + + ManagementObjectCollection rrsSRV_udp = wmi.GetWmiObjects("MicrosoftDNS_SRVType", "DomainName='_udp.{0}'", zoneName); + + ManagementObjectCollection rrsSRV_tls = wmi.GetWmiObjects("MicrosoftDNS_SRVType", "DomainName='_tls.{0}'", zoneName); + List records = new List(); DnsRecord record = new DnsRecord(); @@ -188,11 +196,61 @@ namespace WebsitePanel.Providers.DNS records.Add(record); } + foreach (ManagementObject rr in rrsSRV) + { + record = new DnsRecord(); + record.RecordType = DnsRecordType.SRV; + record.RecordName = CorrectHost(zoneName, (string)rr.Properties["OwnerName"].Value); + record.SrvPriority = Convert.ToInt32(rr.Properties["Priority"].Value); + record.SrvWeight = Convert.ToInt32(rr.Properties["Weight"].Value); + record.SrvPort = Convert.ToInt32(rr.Properties["Port"].Value); + record.RecordData = RemoveTrailingDot((string)rr.Properties["SRVDomainName"].Value); + records.Add(record); + } + + foreach (ManagementObject rr in rrsSRV_tcp) + { + record = new DnsRecord(); + record.RecordType = DnsRecordType.SRV; + record.RecordName = CorrectHost(zoneName, (string)rr.Properties["OwnerName"].Value); + record.SrvPriority = Convert.ToInt32(rr.Properties["Priority"].Value); + record.SrvWeight = Convert.ToInt32(rr.Properties["Weight"].Value); + record.SrvPort = Convert.ToInt32(rr.Properties["Port"].Value); + record.RecordData = RemoveTrailingDot((string)rr.Properties["SRVDomainName"].Value); + records.Add(record); + } + + foreach (ManagementObject rr in rrsSRV_udp) + { + record = new DnsRecord(); + record.RecordType = DnsRecordType.SRV; + record.RecordName = CorrectHost(zoneName, (string)rr.Properties["OwnerName"].Value); + record.SrvPriority = Convert.ToInt32(rr.Properties["Priority"].Value); + record.SrvWeight = Convert.ToInt32(rr.Properties["Weight"].Value); + record.SrvPort = Convert.ToInt32(rr.Properties["Port"].Value); + record.RecordData = RemoveTrailingDot((string)rr.Properties["SRVDomainName"].Value); + records.Add(record); + } + + foreach (ManagementObject rr in rrsSRV_tls) + { + record = new DnsRecord(); + record.RecordType = DnsRecordType.SRV; + record.RecordName = CorrectHost(zoneName, (string)rr.Properties["OwnerName"].Value); + record.SrvPriority = Convert.ToInt32(rr.Properties["Priority"].Value); + record.SrvWeight = Convert.ToInt32(rr.Properties["Weight"].Value); + record.SrvPort = Convert.ToInt32(rr.Properties["Port"].Value); + record.RecordData = RemoveTrailingDot((string)rr.Properties["SRVDomainName"].Value); + records.Add(record); + } + + + + return records.ToArray(); - } - + private string RemoveTrailingDot(string str) { return (str.EndsWith(".")) ? str.Substring(0, str.Length - 1) : str; @@ -209,21 +267,21 @@ namespace WebsitePanel.Providers.DNS private ManagementObject GetZone(string zoneName) { ManagementObject objZone = null; - + try { - + objZone = wmi.GetObject(String.Format( "MicrosoftDNS_Zone.ContainerName='{0}',DnsServerName='{1}',Name='{2}'", zoneName, System.Net.Dns.GetHostEntry("LocalHost").HostName, zoneName)); objZone.Get(); - + /* objZone = wmi.GetWmiObject("MicrosoftDNS_Zone", "ContainerName = '{0}' AND DnsServerName = '{1}' AND Name = '{2}'", new object[] { zoneName, System.Net.Dns.GetHostEntry("LocalHost").HostName, zoneName }); */ } - catch(Exception ex) + catch (Exception ex) { objZone = null; Log.WriteError("Could not get DNS Zone", ex); @@ -232,12 +290,12 @@ namespace WebsitePanel.Providers.DNS return objZone; } - /// - /// - /// - /// - /// - /// Supports managed resources disposal + /// + /// + /// + /// + /// + /// Supports managed resources disposal public virtual void AddPrimaryZone(string zoneName, string[] secondaryServers) { // check if zone exists @@ -245,144 +303,144 @@ namespace WebsitePanel.Providers.DNS return; // create a zone - using (ManagementClass clsZone = wmi.GetClass("MicrosoftDNS_Zone")) - { - using (ManagementBaseObject inParams = clsZone.GetMethodParameters("CreateZone")) - { - inParams["ZoneName"] = zoneName; - inParams["ZoneType"] = 0; // primary zone + using (ManagementClass clsZone = wmi.GetClass("MicrosoftDNS_Zone")) + { + using (ManagementBaseObject inParams = clsZone.GetMethodParameters("CreateZone")) + { + inParams["ZoneName"] = zoneName; + inParams["ZoneType"] = 0; // primary zone - // create zones in AD if required - if (AdMode) - inParams["DsIntegrated"] = true; + // create zones in AD if required + if (AdMode) + inParams["DsIntegrated"] = true; - using (ManagementBaseObject outParams = clsZone.InvokeMethod("CreateZone", inParams, null)) - { - // update created zone - using (ManagementObject objZone = wmi.GetObject(String.Format( - "MicrosoftDNS_Zone.ContainerName='{0}',DnsServerName='{1}',Name='{2}'", - zoneName, System.Net.Dns.GetHostEntry("LocalHost").HostName, zoneName))) - { - try - { - // invoke ResetSecondaries method - using (ManagementBaseObject inParams2 = objZone.GetMethodParameters("ResetSecondaries")) - { - inParams2["SecondaryServers"] = new string[] { }; - inParams2["NotifyServers"] = new string[] { }; + using (ManagementBaseObject outParams = clsZone.InvokeMethod("CreateZone", inParams, null)) + { + // update created zone + using (ManagementObject objZone = wmi.GetObject(String.Format( + "MicrosoftDNS_Zone.ContainerName='{0}',DnsServerName='{1}',Name='{2}'", + zoneName, System.Net.Dns.GetHostEntry("LocalHost").HostName, zoneName))) + { + try + { + // invoke ResetSecondaries method + using (ManagementBaseObject inParams2 = objZone.GetMethodParameters("ResetSecondaries")) + { + inParams2["SecondaryServers"] = new string[] { }; + inParams2["NotifyServers"] = new string[] { }; - if (secondaryServers == null || secondaryServers.Length == 0) - { - // transfers are not allowed - inParams2["SecureSecondaries"] = 3; - inParams2["Notify"] = 0; - } - else if (secondaryServers.Length == 1 && - secondaryServers[0] == "*") - { - // allowed transfer from all servers - inParams2["SecureSecondaries"] = 0; - inParams2["Notify"] = 1; - } - else - { - // allowed transfer from specified servers - inParams2["SecureSecondaries"] = 2; - inParams2["SecondaryServers"] = secondaryServers; - inParams2["NotifyServers"] = secondaryServers; - inParams2["Notify"] = 2; - } + if (secondaryServers == null || secondaryServers.Length == 0) + { + // transfers are not allowed + inParams2["SecureSecondaries"] = 3; + inParams2["Notify"] = 0; + } + else if (secondaryServers.Length == 1 && + secondaryServers[0] == "*") + { + // allowed transfer from all servers + inParams2["SecureSecondaries"] = 0; + inParams2["Notify"] = 1; + } + else + { + // allowed transfer from specified servers + inParams2["SecureSecondaries"] = 2; + inParams2["SecondaryServers"] = secondaryServers; + inParams2["NotifyServers"] = secondaryServers; + inParams2["Notify"] = 2; + } - objZone.InvokeMethod("ResetSecondaries", inParams2, null); - } - } - catch - { - Log.WriteWarning("Error resetting/notifying secondary name servers"); - } - } - } - } - } + objZone.InvokeMethod("ResetSecondaries", inParams2, null); + } + } + catch + { + Log.WriteWarning("Error resetting/notifying secondary name servers"); + } + } + } + } + } // delete orphan NS records DeleteOrphanNsRecords(zoneName); } - /// - /// Supports managed resources disposal - /// - /// - /// + /// + /// Supports managed resources disposal + /// + /// + /// public virtual void AddSecondaryZone(string zoneName, string[] masterServers) { // check if zone exists - using (ManagementObject objSecondary = GetZone(zoneName)) - { - if (objSecondary != null) - return; - } + using (ManagementObject objSecondary = GetZone(zoneName)) + { + if (objSecondary != null) + return; + } // create a zone - using (ManagementClass clsZone = wmi.GetClass("MicrosoftDNS_Zone")) - { - using (ManagementBaseObject inParams = clsZone.GetMethodParameters("CreateZone")) - { - inParams["ZoneName"] = zoneName; - inParams["ZoneType"] = 1; // secondary zone - inParams["IpAddr"] = masterServers; - inParams["DataFileName"] = zoneName + ".dns"; + using (ManagementClass clsZone = wmi.GetClass("MicrosoftDNS_Zone")) + { + using (ManagementBaseObject inParams = clsZone.GetMethodParameters("CreateZone")) + { + inParams["ZoneName"] = zoneName; + inParams["ZoneType"] = 1; // secondary zone + inParams["IpAddr"] = masterServers; + inParams["DataFileName"] = zoneName + ".dns"; - // create zones in AD if required - inParams["DsIntegrated"] = AdMode; + // create zones in AD if required + inParams["DsIntegrated"] = AdMode; - using (ManagementBaseObject outParams = clsZone.InvokeMethod("CreateZone", inParams, null)) - { - try - { - // update created zone - /*ManagementObject objZone = wmi.GetObject(String.Format( - "MicrosoftDNS_Zone.ContainerName='{0}',DnsServerName='{1}',Name='{2}'", - zoneName, System.Net.Dns.GetHostEntry("LocalHost").HostName, zoneName)); + using (ManagementBaseObject outParams = clsZone.InvokeMethod("CreateZone", inParams, null)) + { + try + { + // update created zone + /*ManagementObject objZone = wmi.GetObject(String.Format( + "MicrosoftDNS_Zone.ContainerName='{0}',DnsServerName='{1}',Name='{2}'", + zoneName, System.Net.Dns.GetHostEntry("LocalHost").HostName, zoneName)); - objZone.InvokeMethod("ForceRefresh", null);*/ - using (ManagementObject objZone = (ManagementObject)outParams["RR"]) - { - objZone.InvokeMethod("ReloadZone", null); - } - } - catch (Exception ex) - { - Log.WriteWarning("Error ReloadZone for secondary zone '{0}': {1}", zoneName, ex.Message); - } - } - } - } + objZone.InvokeMethod("ForceRefresh", null);*/ + using (ManagementObject objZone = (ManagementObject)outParams["RR"]) + { + objZone.InvokeMethod("ReloadZone", null); + } + } + catch (Exception ex) + { + Log.WriteWarning("Error ReloadZone for secondary zone '{0}': {1}", zoneName, ex.Message); + } + } + } + } // delete orphan NS records DeleteOrphanNsRecords(zoneName); } - /// - /// Supports managed resources disposal - /// - /// - + /// + /// Supports managed resources disposal + /// + /// + public virtual void DeleteZone(string zoneName) { - try - { + try + { using (ManagementObject objZone = GetZone(zoneName)) { if (objZone != null) objZone.Delete(); } - } - catch (Exception ex) - { - Log.WriteError(ex); - } + } + catch (Exception ex) + { + Log.WriteError(ex); + } } - + public virtual void AddZoneRecord(string zoneName, DnsRecord record) { @@ -398,6 +456,9 @@ namespace WebsitePanel.Providers.DNS AddNsRecord(zoneName, record.RecordName, record.RecordData); else if (record.RecordType == DnsRecordType.TXT) AddTxtRecord(zoneName, record.RecordName, record.RecordData); + else if (record.RecordType == DnsRecordType.SRV) + AddSrvRecord(zoneName, record.RecordName, record.SrvPriority, record.SrvWeight, record.SrvPort, record.RecordData); + } catch (Exception ex) { @@ -428,6 +489,9 @@ namespace WebsitePanel.Providers.DNS DeleteNsRecord(zoneName, record.RecordName, record.RecordData); else if (record.RecordType == DnsRecordType.TXT) DeleteTxtRecord(zoneName, record.RecordName, record.RecordData); + else if (record.RecordType == DnsRecordType.SRV) + DeleteSrvRecord(zoneName, record.RecordName, record.RecordData); + } catch (Exception ex) { @@ -477,12 +541,12 @@ namespace WebsitePanel.Providers.DNS UpdateSoaRecord(zoneName); } - /// - /// Supports managed resources disposal - /// - /// + /// + /// Supports managed resources disposal + /// + /// private void DeleteSoaRecord(string zoneName) - { + { string query = String.Format("SELECT * FROM MicrosoftDNS_SOAType " + "WHERE OwnerName = '{0}'", zoneName); @@ -491,7 +555,7 @@ namespace WebsitePanel.Providers.DNS foreach (ManagementObject objRR in objRRs) using (objRR) objRR.Delete(); } - } + } private string GetSoaRecordText(string host, string primaryNsServer, string primaryPerson) @@ -500,11 +564,11 @@ namespace WebsitePanel.Providers.DNS primaryNsServer, primaryPerson); } - /// - /// Supports managed resources disposal - /// - /// - + /// + /// Supports managed resources disposal + /// + /// + private void UpdateSoaRecord(string zoneName) { // get existing SOA record in order to read serial number @@ -514,52 +578,52 @@ namespace WebsitePanel.Providers.DNS //ManagementObject obj = GetWmiObject("MicrosoftDNS_Zone", "ContainerName = '{0}'", zoneName); //ManagementObject objSoa = GetRelatedWmiObject(obj, "MicrosoftDNS_SOAType"); - - + + ManagementObject objSoa = wmi.GetWmiObject("MicrosoftDNS_SOAType", "ContainerName = '{0}'", RemoveTrailingDot(zoneName)); - + if (objSoa != null) + { + if (objSoa.Properties["OwnerName"].Value.Equals(zoneName)) { - if (objSoa.Properties["OwnerName"].Value.Equals(zoneName)) + string primaryServer = (string)objSoa.Properties["PrimaryServer"].Value; + string responsibleParty = (string)objSoa.Properties["ResponsibleParty"].Value; + UInt32 serialNumber = (UInt32)objSoa.Properties["SerialNumber"].Value; + + // update record's serial number + string sn = serialNumber.ToString(); + string todayDate = DateTime.Now.ToString("yyyyMMdd"); + if (sn.Length < 10 || !sn.StartsWith(todayDate)) { - string primaryServer = (string) objSoa.Properties["PrimaryServer"].Value; - string responsibleParty = (string) objSoa.Properties["ResponsibleParty"].Value; - UInt32 serialNumber = (UInt32) objSoa.Properties["SerialNumber"].Value; - - // update record's serial number - string sn = serialNumber.ToString(); - string todayDate = DateTime.Now.ToString("yyyyMMdd"); - if (sn.Length < 10 || !sn.StartsWith(todayDate)) - { - // build a new serial number - sn = todayDate + "01"; - serialNumber = UInt32.Parse(sn); - } - else - { - // just increment serial number - serialNumber += 1; - } - - // update SOA record - using (ManagementBaseObject methodParams = objSoa.GetMethodParameters("Modify")) - { - methodParams["ResponsibleParty"] = responsibleParty; - methodParams["PrimaryServer"] = primaryServer; - methodParams["SerialNumber"] = serialNumber; - - methodParams["ExpireLimit"] = ExpireLimit; - methodParams["MinimumTTL"] = MinimumTTL; - methodParams["TTL"] = MinimumTTL; - methodParams["RefreshInterval"] = RefreshInterval; - methodParams["RetryDelay"] = RetryDelay; - - ManagementBaseObject outParams = objSoa.InvokeMethod("Modify", methodParams, null); - } - // - objSoa.Dispose(); + // build a new serial number + sn = todayDate + "01"; + serialNumber = UInt32.Parse(sn); } - + else + { + // just increment serial number + serialNumber += 1; + } + + // update SOA record + using (ManagementBaseObject methodParams = objSoa.GetMethodParameters("Modify")) + { + methodParams["ResponsibleParty"] = responsibleParty; + methodParams["PrimaryServer"] = primaryServer; + methodParams["SerialNumber"] = serialNumber; + + methodParams["ExpireLimit"] = ExpireLimit; + methodParams["MinimumTTL"] = MinimumTTL; + methodParams["TTL"] = MinimumTTL; + methodParams["RefreshInterval"] = RefreshInterval; + methodParams["RetryDelay"] = RetryDelay; + + ManagementBaseObject outParams = objSoa.InvokeMethod("Modify", methodParams, null); + } + // + objSoa.Dispose(); + } + } } catch (Exception ex) @@ -567,23 +631,23 @@ namespace WebsitePanel.Providers.DNS Log.WriteError(ex); } } - + #endregion #region A Record - /// - /// - /// - /// - /// - /// + /// + /// + /// + /// + /// + /// /// Supports managed resources disposal private void AddARecord(string zoneName, string host, string ip) { // add record - using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_AType")) - { - clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { + using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_AType")) + { + clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { GetDnsServerName(), zoneName, CorrectHostName(zoneName, host), @@ -591,19 +655,19 @@ namespace WebsitePanel.Providers.DNS MinimumTTL, ip }); - } + } // update SOA record - if (bulkRecords) return; - UpdateSoaRecord(zoneName); + if (bulkRecords) return; + UpdateSoaRecord(zoneName); } - /// - /// Supports managed resources disposal - /// - /// - /// - /// + /// + /// Supports managed resources disposal + /// + /// + /// + /// private void DeleteARecord(string zoneName, string host, string ip) { string query = String.Format("SELECT * FROM MicrosoftDNS_AType " + @@ -613,32 +677,32 @@ namespace WebsitePanel.Providers.DNS if (ip != null) query += String.Format(" AND RecordData = '{0}'", ip); - using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) - { - foreach (ManagementObject objRR in objRRs) using(objRR) - objRR.Delete(); - } - - // update SOA record + using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) + { + foreach (ManagementObject objRR in objRRs) using (objRR) + objRR.Delete(); + } + + // update SOA record UpdateSoaRecord(zoneName); - + } #endregion #region CNAME Record - /// - /// - /// - /// - /// - /// + /// + /// + /// + /// + /// + /// /// Supports managed resources disposal private void AddCNameRecord(string zoneName, string alias, string targetHost) { // add record - using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_CNAMEType")) - { - clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { + using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_CNAMEType")) + { + clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { GetDnsServerName(), zoneName, CorrectHostName(zoneName, alias), @@ -646,19 +710,19 @@ namespace WebsitePanel.Providers.DNS MinimumTTL, targetHost }); - } + } // update SOA record - if (bulkRecords) return; - UpdateSoaRecord(zoneName); + if (bulkRecords) return; + UpdateSoaRecord(zoneName); } - /// - /// Supports managed resources disposal - /// - /// - /// - /// + /// + /// Supports managed resources disposal + /// + /// + /// + /// private void DeleteCNameRecord(string zoneName, string alias, string targetHost) { string query = String.Format("SELECT * FROM MicrosoftDNS_CNAMEType " + @@ -668,11 +732,11 @@ namespace WebsitePanel.Providers.DNS if (targetHost != null) query += String.Format(" AND RecordData='{0}.'", targetHost); - using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) - { - foreach (ManagementObject objRR in objRRs) using(objRR) - objRR.Delete(); - } + using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) + { + foreach (ManagementObject objRR in objRRs) using (objRR) + objRR.Delete(); + } // update SOA record UpdateSoaRecord(zoneName); @@ -680,20 +744,20 @@ namespace WebsitePanel.Providers.DNS #endregion #region MX Record - /// - /// - /// - /// - /// - /// - /// + /// + /// + /// + /// + /// + /// + /// /// Supports managed resources disposal private void AddMXRecord(string zoneName, string host, string mailServer, int mailServerPriority) { - // add record - using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_MXType")) - { - clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { + // add record + using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_MXType")) + { + clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { GetDnsServerName(), zoneName, CorrectHostName(zoneName, host), @@ -702,19 +766,19 @@ namespace WebsitePanel.Providers.DNS mailServerPriority, mailServer }); - } + } // update SOA record - if (bulkRecords) return; - UpdateSoaRecord(zoneName); + if (bulkRecords) return; + UpdateSoaRecord(zoneName); } - /// - /// Supports managed resources disposal - /// - /// - /// - /// + /// + /// Supports managed resources disposal + /// + /// + /// + /// private void DeleteMXRecord(string zoneName, string host, string mailServer) { string query = String.Format("SELECT * FROM MicrosoftDNS_MXType " + @@ -724,11 +788,11 @@ namespace WebsitePanel.Providers.DNS if (mailServer != null) query += String.Format(" AND MailExchange = '{0}.'", CorrectHostName(zoneName, mailServer)); - using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) - { - foreach (ManagementObject objRR in objRRs) using(objRR) - objRR.Delete(); - } + using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) + { + foreach (ManagementObject objRR in objRRs) using (objRR) + objRR.Delete(); + } // update SOA record UpdateSoaRecord(zoneName); @@ -736,19 +800,19 @@ namespace WebsitePanel.Providers.DNS #endregion #region NS Record - /// - /// - /// - /// - /// - /// + /// + /// + /// + /// + /// + /// /// Supports managed resources disposal private void AddNsRecord(string zoneName, string host, string nameServer) { - // add record - using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_NSType")) - { - clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { + // add record + using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_NSType")) + { + clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { GetDnsServerName(), zoneName, CorrectHostName(zoneName, host), @@ -756,18 +820,18 @@ namespace WebsitePanel.Providers.DNS MinimumTTL, nameServer }); - } + } // update SOA record - if (bulkRecords) return; - UpdateSoaRecord(zoneName); + if (bulkRecords) return; + UpdateSoaRecord(zoneName); } - /// - /// Supports managed resources disposal - /// - /// - /// - /// + /// + /// Supports managed resources disposal + /// + /// + /// + /// private void DeleteNsRecord(string zoneName, string host, string nameServer) { string query = String.Format("SELECT * FROM MicrosoftDNS_NSType " + @@ -777,51 +841,51 @@ namespace WebsitePanel.Providers.DNS if (nameServer != null) query += String.Format(" AND NSHost = '{0}.'", nameServer); - using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) - { - foreach (ManagementObject objRR in objRRs) using(objRR) - objRR.Delete(); - } + using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) + { + foreach (ManagementObject objRR in objRRs) using (objRR) + objRR.Delete(); + } // update SOA record UpdateSoaRecord(zoneName); } - /// - /// Supports managed resources disposal - /// - /// + /// + /// Supports managed resources disposal + /// + /// private void DeleteOrphanNsRecords(string zoneName) { string machineName = System.Net.Dns.GetHostEntry("LocalHost").HostName.ToLower(); string computerName = Environment.MachineName.ToLower(); - using (ManagementObjectCollection objRRs = wmi.ExecuteQuery( - String.Format("SELECT * FROM MicrosoftDNS_NSType WHERE DomainName = '{0}'", zoneName))) - { - foreach (ManagementObject objRR in objRRs) - using(objRR) - { - string ns = ((string)objRR.Properties["NSHost"].Value).ToLower(); - if (ns.StartsWith(machineName) || ns.StartsWith(computerName)) - objRR.Delete(); - } - } + using (ManagementObjectCollection objRRs = wmi.ExecuteQuery( + String.Format("SELECT * FROM MicrosoftDNS_NSType WHERE DomainName = '{0}'", zoneName))) + { + foreach (ManagementObject objRR in objRRs) + using (objRR) + { + string ns = ((string)objRR.Properties["NSHost"].Value).ToLower(); + if (ns.StartsWith(machineName) || ns.StartsWith(computerName)) + objRR.Delete(); + } + } } #endregion #region TXT Record - /// - /// Supports managed resources disposal - /// - /// - /// - /// + /// + /// Supports managed resources disposal + /// + /// + /// + /// private void AddTxtRecord(string zoneName, string host, string text) { - using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_TXTType")) - { - clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { + using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_TXTType")) + { + clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { GetDnsServerName(), zoneName, CorrectHostName(zoneName, host), @@ -829,19 +893,19 @@ namespace WebsitePanel.Providers.DNS MinimumTTL, System.Text.RegularExpressions.Regex.Replace(text, @"""|\\", "") }); - } + } // update SOA record - if (bulkRecords) return; - UpdateSoaRecord(zoneName); + if (bulkRecords) return; + UpdateSoaRecord(zoneName); } - /// - /// Supports managed resources disposal - /// - /// - /// - /// + /// + /// Supports managed resources disposal + /// + /// + /// + /// private void DeleteTxtRecord(string zoneName, string host, string text) { string query = String.Format("SELECT * FROM MicrosoftDNS_TXTType " + @@ -851,13 +915,85 @@ namespace WebsitePanel.Providers.DNS if (text != null) query += String.Format(" AND RecordData = '\"{0}\"'", System.Text.RegularExpressions.Regex.Replace(text, @"""|\\", "")); - using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) - { - foreach (ManagementObject objRR in objRRs) using(objRR) - { - objRR.Delete(); - } - } + using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) + { + foreach (ManagementObject objRR in objRRs) using (objRR) + { + objRR.Delete(); + } + } + + // update SOA record + UpdateSoaRecord(zoneName); + } + #endregion + + #region SRV Record + /// + /// + /// + /// + /// + /// + /// + /// Supports managed resources disposal + private void AddSrvRecord(string zoneName, string host, int priority, int weight, int port, string domainName) + { + // add record + using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_SRVType")) + { + + clsRR.InvokeMethod("CreateInstanceFromPropertyData", new object[] { + GetDnsServerName(), + zoneName, + CorrectHostName(zoneName, host), + 1, + MinimumTTL, + priority, + weight, + port, + domainName + }); + } + + // update SOA record + if (bulkRecords) return; + UpdateSoaRecord(zoneName); + } + + /// + /// Supports managed resources disposal + /// + /// + /// + /// + private void DeleteSrvRecord(string zoneName, string host, string domainName) + { + + string query = string.Empty; + if ((host.Contains("._tcp")) | (host.Contains("._udp")) | (host.Contains("._tls"))) + { + query = String.Format("SELECT * FROM MicrosoftDNS_SRVType " + + "WHERE ContainerName = '{0}' AND OwnerName ='{1}.{0}'", + zoneName, CorrectHostName(zoneName, host)); + } + else + { + query = String.Format("SELECT * FROM MicrosoftDNS_SRVType " + + "WHERE ContainerName = '{0}' AND OwnerName ='{1}'", + zoneName, CorrectHostName(zoneName, host)); + } + + + + if (domainName != null) + query += String.Format(" AND SRVDomainName = '{0}.'", domainName); + + using (ManagementObjectCollection objRRs = wmi.ExecuteQuery(query)) + { + foreach (ManagementObject objRR in objRRs) using (objRR) + objRR.Delete(); + } // update SOA record UpdateSoaRecord(zoneName); @@ -865,36 +1001,36 @@ namespace WebsitePanel.Providers.DNS #endregion #region private helper methods - /// - /// Supports managed resources disposal - /// - /// - private string GetDnsServerName() - { - using (ManagementObject objServer = wmi.GetObject("MicrosoftDNS_Server.Name=\".\"")) - { - return (string)objServer.Properties["Name"].Value; - } - } + /// + /// Supports managed resources disposal + /// + /// + private string GetDnsServerName() + { + using (ManagementObject objServer = wmi.GetObject("MicrosoftDNS_Server.Name=\".\"")) + { + return (string)objServer.Properties["Name"].Value; + } + } - /// - /// Supports managed resources disposal - /// - /// - /// - /// - private string AddDnsRecord(string zoneName, string recordText) + /// + /// Supports managed resources disposal + /// + /// + /// + /// + private string AddDnsRecord(string zoneName, string recordText) { // get the name of the server string serverName = GetDnsServerName(); // add record - using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_ResourceRecord")) - { - object[] prms = new object[] { serverName, zoneName, recordText, null }; - clsRR.InvokeMethod("CreateInstanceFromTextRepresentation", prms); - return (string)prms[3]; - } + using (ManagementClass clsRR = wmi.GetClass("MicrosoftDNS_ResourceRecord")) + { + object[] prms = new object[] { serverName, zoneName, recordText, null }; + clsRR.InvokeMethod("CreateInstanceFromTextRepresentation", prms); + return (string)prms[3]; + } } private string CorrectHostName(string zoneName, string host) @@ -937,30 +1073,30 @@ namespace WebsitePanel.Providers.DNS } } - /// - /// Supports managed resources disposal - /// - /// + /// + /// Supports managed resources disposal + /// + /// protected bool IsDNSInstalled() { - using (RegistryKey root = Registry.LocalMachine) - { - using (RegistryKey key = root.OpenSubKey("SYSTEM\\CurrentControlSet\\Services\\DNS")) - { - bool res = key != null; - if (key != null) - key.Close(); + using (RegistryKey root = Registry.LocalMachine) + { + using (RegistryKey key = root.OpenSubKey("SYSTEM\\CurrentControlSet\\Services\\DNS")) + { + bool res = key != null; + if (key != null) + key.Close(); - return res; - } - } + return res; + } + } } public override bool IsInstalled() { return IsDNSInstalled(); } - + #endregion } } diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/DnsServerProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/DnsServerProxy.cs index 85e734a3..66950b94 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/DnsServerProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/DnsServerProxy.cs @@ -39,324 +39,373 @@ // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // -namespace WebsitePanel.Providers.DNS { +namespace WebsitePanel.Providers.DNS +{ using System.Diagnostics; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Xml.Serialization; - - + + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name="DNSServerSoap", Namespace="http://smbsaas/websitepanel/server/")] - public partial class DNSServer : Microsoft.Web.Services3.WebServicesClientProtocol { - + [System.Web.Services.WebServiceBindingAttribute(Name = "DNSServerSoap", Namespace = "http://smbsaas/websitepanel/server/")] + public partial class DNSServer : Microsoft.Web.Services3.WebServicesClientProtocol + { + public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue; - + private System.Threading.SendOrPostCallback ZoneExistsOperationCompleted; - + private System.Threading.SendOrPostCallback GetZonesOperationCompleted; - + private System.Threading.SendOrPostCallback AddPrimaryZoneOperationCompleted; - + private System.Threading.SendOrPostCallback AddSecondaryZoneOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteZoneOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateSoaRecordOperationCompleted; - + private System.Threading.SendOrPostCallback GetZoneRecordsOperationCompleted; - + private System.Threading.SendOrPostCallback AddZoneRecordOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteZoneRecordOperationCompleted; - + private System.Threading.SendOrPostCallback AddZoneRecordsOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteZoneRecordsOperationCompleted; - + /// - public DNSServer() { + public DNSServer() + { this.Url = "http://localhost/WebsitePanelServer11/DnsServer.asmx"; } - + /// public event ZoneExistsCompletedEventHandler ZoneExistsCompleted; - + /// public event GetZonesCompletedEventHandler GetZonesCompleted; - + /// public event AddPrimaryZoneCompletedEventHandler AddPrimaryZoneCompleted; - + /// public event AddSecondaryZoneCompletedEventHandler AddSecondaryZoneCompleted; - + /// public event DeleteZoneCompletedEventHandler DeleteZoneCompleted; - + /// public event UpdateSoaRecordCompletedEventHandler UpdateSoaRecordCompleted; - + /// public event GetZoneRecordsCompletedEventHandler GetZoneRecordsCompleted; - + /// public event AddZoneRecordCompletedEventHandler AddZoneRecordCompleted; - + /// public event DeleteZoneRecordCompletedEventHandler DeleteZoneRecordCompleted; - + /// public event AddZoneRecordsCompletedEventHandler AddZoneRecordsCompleted; - + /// public event DeleteZoneRecordsCompletedEventHandler DeleteZoneRecordsCompleted; - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ZoneExists", 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 bool ZoneExists(string zoneName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ZoneExists", 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 bool ZoneExists(string zoneName) + { object[] results = this.Invoke("ZoneExists", new object[] { zoneName}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginZoneExists(string zoneName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginZoneExists(string zoneName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ZoneExists", new object[] { zoneName}, callback, asyncState); } - + /// - public bool EndZoneExists(System.IAsyncResult asyncResult) { + public bool EndZoneExists(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void ZoneExistsAsync(string zoneName) { + public void ZoneExistsAsync(string zoneName) + { this.ZoneExistsAsync(zoneName, null); } - + /// - public void ZoneExistsAsync(string zoneName, object userState) { - if ((this.ZoneExistsOperationCompleted == null)) { + public void ZoneExistsAsync(string zoneName, object userState) + { + if ((this.ZoneExistsOperationCompleted == null)) + { this.ZoneExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnZoneExistsOperationCompleted); } this.InvokeAsync("ZoneExists", new object[] { zoneName}, this.ZoneExistsOperationCompleted, userState); } - - private void OnZoneExistsOperationCompleted(object arg) { - if ((this.ZoneExistsCompleted != null)) { + + private void OnZoneExistsOperationCompleted(object arg) + { + if ((this.ZoneExistsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ZoneExistsCompleted(this, new ZoneExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetZones", 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 string[] GetZones() { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetZones", 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 string[] GetZones() + { object[] results = this.Invoke("GetZones", new object[0]); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetZones(System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetZones(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetZones", new object[0], callback, asyncState); } - + /// - public string[] EndGetZones(System.IAsyncResult asyncResult) { + public string[] EndGetZones(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetZonesAsync() { + public void GetZonesAsync() + { this.GetZonesAsync(null); } - + /// - public void GetZonesAsync(object userState) { - if ((this.GetZonesOperationCompleted == null)) { + public void GetZonesAsync(object userState) + { + if ((this.GetZonesOperationCompleted == null)) + { this.GetZonesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetZonesOperationCompleted); } this.InvokeAsync("GetZones", new object[0], this.GetZonesOperationCompleted, userState); } - - private void OnGetZonesOperationCompleted(object arg) { - if ((this.GetZonesCompleted != null)) { + + private void OnGetZonesOperationCompleted(object arg) + { + if ((this.GetZonesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetZonesCompleted(this, new GetZonesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddPrimaryZone", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void AddPrimaryZone(string zoneName, string[] secondaryServers) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddPrimaryZone", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void AddPrimaryZone(string zoneName, string[] secondaryServers) + { this.Invoke("AddPrimaryZone", new object[] { zoneName, secondaryServers}); } - + /// - public System.IAsyncResult BeginAddPrimaryZone(string zoneName, string[] secondaryServers, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddPrimaryZone(string zoneName, string[] secondaryServers, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddPrimaryZone", new object[] { zoneName, secondaryServers}, callback, asyncState); } - + /// - public void EndAddPrimaryZone(System.IAsyncResult asyncResult) { + public void EndAddPrimaryZone(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void AddPrimaryZoneAsync(string zoneName, string[] secondaryServers) { + public void AddPrimaryZoneAsync(string zoneName, string[] secondaryServers) + { this.AddPrimaryZoneAsync(zoneName, secondaryServers, null); } - + /// - public void AddPrimaryZoneAsync(string zoneName, string[] secondaryServers, object userState) { - if ((this.AddPrimaryZoneOperationCompleted == null)) { + public void AddPrimaryZoneAsync(string zoneName, string[] secondaryServers, object userState) + { + if ((this.AddPrimaryZoneOperationCompleted == null)) + { this.AddPrimaryZoneOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddPrimaryZoneOperationCompleted); } this.InvokeAsync("AddPrimaryZone", new object[] { zoneName, secondaryServers}, this.AddPrimaryZoneOperationCompleted, userState); } - - private void OnAddPrimaryZoneOperationCompleted(object arg) { - if ((this.AddPrimaryZoneCompleted != null)) { + + private void OnAddPrimaryZoneOperationCompleted(object arg) + { + if ((this.AddPrimaryZoneCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddPrimaryZoneCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddSecondaryZone", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void AddSecondaryZone(string zoneName, string[] masterServers) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddSecondaryZone", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void AddSecondaryZone(string zoneName, string[] masterServers) + { this.Invoke("AddSecondaryZone", new object[] { zoneName, masterServers}); } - + /// - public System.IAsyncResult BeginAddSecondaryZone(string zoneName, string[] masterServers, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddSecondaryZone(string zoneName, string[] masterServers, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddSecondaryZone", new object[] { zoneName, masterServers}, callback, asyncState); } - + /// - public void EndAddSecondaryZone(System.IAsyncResult asyncResult) { + public void EndAddSecondaryZone(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void AddSecondaryZoneAsync(string zoneName, string[] masterServers) { + public void AddSecondaryZoneAsync(string zoneName, string[] masterServers) + { this.AddSecondaryZoneAsync(zoneName, masterServers, null); } - + /// - public void AddSecondaryZoneAsync(string zoneName, string[] masterServers, object userState) { - if ((this.AddSecondaryZoneOperationCompleted == null)) { + public void AddSecondaryZoneAsync(string zoneName, string[] masterServers, object userState) + { + if ((this.AddSecondaryZoneOperationCompleted == null)) + { this.AddSecondaryZoneOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddSecondaryZoneOperationCompleted); } this.InvokeAsync("AddSecondaryZone", new object[] { zoneName, masterServers}, this.AddSecondaryZoneOperationCompleted, userState); } - - private void OnAddSecondaryZoneOperationCompleted(object arg) { - if ((this.AddSecondaryZoneCompleted != null)) { + + private void OnAddSecondaryZoneOperationCompleted(object arg) + { + if ((this.AddSecondaryZoneCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddSecondaryZoneCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZone", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteZone(string zoneName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZone", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteZone(string zoneName) + { this.Invoke("DeleteZone", new object[] { zoneName}); } - + /// - public System.IAsyncResult BeginDeleteZone(string zoneName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteZone(string zoneName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteZone", new object[] { zoneName}, callback, asyncState); } - + /// - public void EndDeleteZone(System.IAsyncResult asyncResult) { + public void EndDeleteZone(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteZoneAsync(string zoneName) { + public void DeleteZoneAsync(string zoneName) + { this.DeleteZoneAsync(zoneName, null); } - + /// - public void DeleteZoneAsync(string zoneName, object userState) { - if ((this.DeleteZoneOperationCompleted == null)) { + public void DeleteZoneAsync(string zoneName, object userState) + { + if ((this.DeleteZoneOperationCompleted == null)) + { this.DeleteZoneOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteZoneOperationCompleted); } this.InvokeAsync("DeleteZone", new object[] { zoneName}, this.DeleteZoneOperationCompleted, userState); } - - private void OnDeleteZoneOperationCompleted(object arg) { - if ((this.DeleteZoneCompleted != null)) { + + private void OnDeleteZoneOperationCompleted(object arg) + { + if ((this.DeleteZoneCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteZoneCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateSoaRecord", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void UpdateSoaRecord(string zoneName, string host, string primaryNsServer, string primaryPerson) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateSoaRecord", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void UpdateSoaRecord(string zoneName, string host, string primaryNsServer, string primaryPerson) + { this.Invoke("UpdateSoaRecord", new object[] { zoneName, host, primaryNsServer, primaryPerson}); } - + /// - public System.IAsyncResult BeginUpdateSoaRecord(string zoneName, string host, string primaryNsServer, string primaryPerson, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateSoaRecord(string zoneName, string host, string primaryNsServer, string primaryPerson, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateSoaRecord", new object[] { zoneName, host, primaryNsServer, primaryPerson}, callback, asyncState); } - + /// - public void EndUpdateSoaRecord(System.IAsyncResult asyncResult) { + public void EndUpdateSoaRecord(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void UpdateSoaRecordAsync(string zoneName, string host, string primaryNsServer, string primaryPerson) { + public void UpdateSoaRecordAsync(string zoneName, string host, string primaryNsServer, string primaryPerson) + { this.UpdateSoaRecordAsync(zoneName, host, primaryNsServer, primaryPerson, null); } - + /// - public void UpdateSoaRecordAsync(string zoneName, string host, string primaryNsServer, string primaryPerson, object userState) { - if ((this.UpdateSoaRecordOperationCompleted == null)) { + public void UpdateSoaRecordAsync(string zoneName, string host, string primaryNsServer, string primaryPerson, object userState) + { + if ((this.UpdateSoaRecordOperationCompleted == null)) + { this.UpdateSoaRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateSoaRecordOperationCompleted); } this.InvokeAsync("UpdateSoaRecord", new object[] { @@ -365,340 +414,395 @@ namespace WebsitePanel.Providers.DNS { primaryNsServer, primaryPerson}, this.UpdateSoaRecordOperationCompleted, userState); } - - private void OnUpdateSoaRecordOperationCompleted(object arg) { - if ((this.UpdateSoaRecordCompleted != null)) { + + private void OnUpdateSoaRecordOperationCompleted(object arg) + { + if ((this.UpdateSoaRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateSoaRecordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetZoneRecords", 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 DnsRecord[] GetZoneRecords(string zoneName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetZoneRecords", 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 DnsRecord[] GetZoneRecords(string zoneName) + { object[] results = this.Invoke("GetZoneRecords", new object[] { zoneName}); return ((DnsRecord[])(results[0])); } - + /// - public System.IAsyncResult BeginGetZoneRecords(string zoneName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetZoneRecords(string zoneName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetZoneRecords", new object[] { zoneName}, callback, asyncState); } - + /// - public DnsRecord[] EndGetZoneRecords(System.IAsyncResult asyncResult) { + public DnsRecord[] EndGetZoneRecords(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((DnsRecord[])(results[0])); } - + /// - public void GetZoneRecordsAsync(string zoneName) { + public void GetZoneRecordsAsync(string zoneName) + { this.GetZoneRecordsAsync(zoneName, null); } - + /// - public void GetZoneRecordsAsync(string zoneName, object userState) { - if ((this.GetZoneRecordsOperationCompleted == null)) { + public void GetZoneRecordsAsync(string zoneName, object userState) + { + if ((this.GetZoneRecordsOperationCompleted == null)) + { this.GetZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetZoneRecordsOperationCompleted); } this.InvokeAsync("GetZoneRecords", new object[] { zoneName}, this.GetZoneRecordsOperationCompleted, userState); } - - private void OnGetZoneRecordsOperationCompleted(object arg) { - if ((this.GetZoneRecordsCompleted != null)) { + + private void OnGetZoneRecordsOperationCompleted(object arg) + { + if ((this.GetZoneRecordsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetZoneRecordsCompleted(this, new GetZoneRecordsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddZoneRecord", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void AddZoneRecord(string zoneName, DnsRecord record) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddZoneRecord", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void AddZoneRecord(string zoneName, DnsRecord record) + { this.Invoke("AddZoneRecord", new object[] { zoneName, record}); } - + /// - public System.IAsyncResult BeginAddZoneRecord(string zoneName, DnsRecord record, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddZoneRecord(string zoneName, DnsRecord record, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddZoneRecord", new object[] { zoneName, record}, callback, asyncState); } - + /// - public void EndAddZoneRecord(System.IAsyncResult asyncResult) { + public void EndAddZoneRecord(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void AddZoneRecordAsync(string zoneName, DnsRecord record) { + public void AddZoneRecordAsync(string zoneName, DnsRecord record) + { this.AddZoneRecordAsync(zoneName, record, null); } - + /// - public void AddZoneRecordAsync(string zoneName, DnsRecord record, object userState) { - if ((this.AddZoneRecordOperationCompleted == null)) { + public void AddZoneRecordAsync(string zoneName, DnsRecord record, object userState) + { + if ((this.AddZoneRecordOperationCompleted == null)) + { this.AddZoneRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddZoneRecordOperationCompleted); } this.InvokeAsync("AddZoneRecord", new object[] { zoneName, record}, this.AddZoneRecordOperationCompleted, userState); } - - private void OnAddZoneRecordOperationCompleted(object arg) { - if ((this.AddZoneRecordCompleted != null)) { + + private void OnAddZoneRecordOperationCompleted(object arg) + { + if ((this.AddZoneRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddZoneRecordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZoneRecord", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteZoneRecord(string zoneName, DnsRecord record) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZoneRecord", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteZoneRecord(string zoneName, DnsRecord record) + { this.Invoke("DeleteZoneRecord", new object[] { zoneName, record}); } - + /// - public System.IAsyncResult BeginDeleteZoneRecord(string zoneName, DnsRecord record, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteZoneRecord(string zoneName, DnsRecord record, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteZoneRecord", new object[] { zoneName, record}, callback, asyncState); } - + /// - public void EndDeleteZoneRecord(System.IAsyncResult asyncResult) { + public void EndDeleteZoneRecord(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteZoneRecordAsync(string zoneName, DnsRecord record) { + public void DeleteZoneRecordAsync(string zoneName, DnsRecord record) + { this.DeleteZoneRecordAsync(zoneName, record, null); } - + /// - public void DeleteZoneRecordAsync(string zoneName, DnsRecord record, object userState) { - if ((this.DeleteZoneRecordOperationCompleted == null)) { + public void DeleteZoneRecordAsync(string zoneName, DnsRecord record, object userState) + { + if ((this.DeleteZoneRecordOperationCompleted == null)) + { this.DeleteZoneRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteZoneRecordOperationCompleted); } this.InvokeAsync("DeleteZoneRecord", new object[] { zoneName, record}, this.DeleteZoneRecordOperationCompleted, userState); } - - private void OnDeleteZoneRecordOperationCompleted(object arg) { - if ((this.DeleteZoneRecordCompleted != null)) { + + private void OnDeleteZoneRecordOperationCompleted(object arg) + { + if ((this.DeleteZoneRecordCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteZoneRecordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddZoneRecords", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void AddZoneRecords(string zoneName, DnsRecord[] records) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddZoneRecords", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void AddZoneRecords(string zoneName, DnsRecord[] records) + { this.Invoke("AddZoneRecords", new object[] { zoneName, records}); } - + /// - public System.IAsyncResult BeginAddZoneRecords(string zoneName, DnsRecord[] records, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddZoneRecords(string zoneName, DnsRecord[] records, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddZoneRecords", new object[] { zoneName, records}, callback, asyncState); } - + /// - public void EndAddZoneRecords(System.IAsyncResult asyncResult) { + public void EndAddZoneRecords(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void AddZoneRecordsAsync(string zoneName, DnsRecord[] records) { + public void AddZoneRecordsAsync(string zoneName, DnsRecord[] records) + { this.AddZoneRecordsAsync(zoneName, records, null); } - + /// - public void AddZoneRecordsAsync(string zoneName, DnsRecord[] records, object userState) { - if ((this.AddZoneRecordsOperationCompleted == null)) { + public void AddZoneRecordsAsync(string zoneName, DnsRecord[] records, object userState) + { + if ((this.AddZoneRecordsOperationCompleted == null)) + { this.AddZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddZoneRecordsOperationCompleted); } this.InvokeAsync("AddZoneRecords", new object[] { zoneName, records}, this.AddZoneRecordsOperationCompleted, userState); } - - private void OnAddZoneRecordsOperationCompleted(object arg) { - if ((this.AddZoneRecordsCompleted != null)) { + + private void OnAddZoneRecordsOperationCompleted(object arg) + { + if ((this.AddZoneRecordsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddZoneRecordsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZoneRecords", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteZoneRecords(string zoneName, DnsRecord[] records) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZoneRecords", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteZoneRecords(string zoneName, DnsRecord[] records) + { this.Invoke("DeleteZoneRecords", new object[] { zoneName, records}); } - + /// - public System.IAsyncResult BeginDeleteZoneRecords(string zoneName, DnsRecord[] records, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteZoneRecords(string zoneName, DnsRecord[] records, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteZoneRecords", new object[] { zoneName, records}, callback, asyncState); } - + /// - public void EndDeleteZoneRecords(System.IAsyncResult asyncResult) { + public void EndDeleteZoneRecords(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteZoneRecordsAsync(string zoneName, DnsRecord[] records) { + public void DeleteZoneRecordsAsync(string zoneName, DnsRecord[] records) + { this.DeleteZoneRecordsAsync(zoneName, records, null); } - + /// - public void DeleteZoneRecordsAsync(string zoneName, DnsRecord[] records, object userState) { - if ((this.DeleteZoneRecordsOperationCompleted == null)) { + public void DeleteZoneRecordsAsync(string zoneName, DnsRecord[] records, object userState) + { + if ((this.DeleteZoneRecordsOperationCompleted == null)) + { this.DeleteZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteZoneRecordsOperationCompleted); } this.InvokeAsync("DeleteZoneRecords", new object[] { zoneName, records}, this.DeleteZoneRecordsOperationCompleted, userState); } - - private void OnDeleteZoneRecordsOperationCompleted(object arg) { - if ((this.DeleteZoneRecordsCompleted != null)) { + + private void OnDeleteZoneRecordsOperationCompleted(object arg) + { + if ((this.DeleteZoneRecordsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteZoneRecordsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - public new void CancelAsync(object userState) { + public new void CancelAsync(object userState) + { base.CancelAsync(userState); } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void ZoneExistsCompletedEventHandler(object sender, ZoneExistsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class ZoneExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class ZoneExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal ZoneExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal ZoneExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public bool Result { - get { + public bool Result + { + get + { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetZonesCompletedEventHandler(object sender, GetZonesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetZonesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetZonesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetZonesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetZonesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public string[] Result { - get { + public string[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((string[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddPrimaryZoneCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddSecondaryZoneCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteZoneCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateSoaRecordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetZoneRecordsCompletedEventHandler(object sender, GetZoneRecordsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetZoneRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetZoneRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public DnsRecord[] Result { - get { + public DnsRecord[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((DnsRecord[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddZoneRecordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteZoneRecordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddZoneRecordsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteZoneRecordsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx index 81ff9687..423d479b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx @@ -1,15 +1,13 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DnsZoneRecords.ascx.cs" Inherits="WebsitePanel.Portal.DnsZoneRecords" %> -<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" - TagPrefix="wsp" %> +<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
@@ -33,6 +31,9 @@ function confirmation() + + + @@ -41,7 +42,7 @@ function confirmation() - <%# GetRecordFullData((string)Eval("RecordType"), (string)Eval("RecordData"), (int)Eval("MxPriority")) %> + <%# GetRecordFullData((string)Eval("RecordType"), (string)Eval("RecordData"), (int)Eval("MxPriority"), (int)Eval("SrvPort"))%> @@ -77,6 +78,7 @@ function confirmation() NS TXT CNAME + SRV @@ -106,10 +108,43 @@ function confirmation() + + + + + + + + + + + + + + + + + + + + + + + + + + +
- +
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.cs index a4f1e1f2..5bc12d15 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.cs @@ -54,25 +54,35 @@ namespace WebsitePanel.Portal // toggle panels ShowPanels(false); - // domain name - DomainInfo domain = ES.Services.Servers.GetDomain(PanelRequest.DomainID); - litDomainName.Text = domain.DomainName; + // domain name + DomainInfo domain = ES.Services.Servers.GetDomain(PanelRequest.DomainID); + litDomainName.Text = domain.DomainName; } } - public string GetRecordFullData(string recordType, string recordData, int mxPriority) + public string GetRecordFullData(string recordType, string recordData, int mxPriority, int port) { - return (String.Compare(recordType, "mx", true) == 0) - ? String.Format("[{0}], {1}", mxPriority, recordData) : recordData; + + switch (recordType) + { + case "MX": + return String.Format("[{0}], {1}", mxPriority, recordData); + case "SRV": + return String.Format("[{0}], {1}", port, recordData); + default: + return recordData; + } } private void GetRecordsDetails(int recordIndex) { GridViewRow row = gvRecords.Rows[recordIndex]; + ViewState["SrvPort"] = ((Literal)row.Cells[0].FindControl("litSrvPort")).Text; + ViewState["SrvWeight"] = ((Literal)row.Cells[0].FindControl("litSrvWeight")).Text; + ViewState["SrvPriority"] = ((Literal)row.Cells[0].FindControl("litSrvPriority")).Text; ViewState["MxPriority"] = ((Literal)row.Cells[0].FindControl("litMxPriority")).Text; ViewState["RecordName"] = ((Literal)row.Cells[0].FindControl("litRecordName")).Text; ; - ViewState["RecordType"] = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), - ((Literal)row.Cells[0].FindControl("litRecordType")).Text, true); + ViewState["RecordType"] = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), ((Literal)row.Cells[0].FindControl("litRecordType")).Text, true); ViewState["RecordData"] = ((Literal)row.Cells[0].FindControl("litRecordData")).Text; } @@ -88,6 +98,9 @@ namespace WebsitePanel.Portal txtRecordName.Text = ViewState["RecordName"].ToString(); txtRecordData.Text = ViewState["RecordData"].ToString(); txtMXPriority.Text = ViewState["MxPriority"].ToString(); + txtSRVPriority.Text = ViewState["SrvPriority"].ToString(); + txtSRVWeight.Text = ViewState["SrvWeight"].ToString(); + txtSRVPort.Text = ViewState["SrvPort"].ToString(); } catch (Exception ex) { @@ -103,24 +116,39 @@ namespace WebsitePanel.Portal private void ToggleRecordControls() { - rowMXPriority.Visible = (ddlRecordType.SelectedValue == "MX"); - if (ddlRecordType.SelectedValue == "A") + rowMXPriority.Visible = false; + rowSRVPriority.Visible = false; + rowSRVWeight.Visible = false; + rowSRVPort.Visible = false; + lblRecordData.Text = "Record Data:"; + IPValidator.Enabled = false; + + switch (ddlRecordType.SelectedValue) { - lblRecordData.Text = "IP:"; - IPValidator.Enabled = true; - } - else - { - lblRecordData.Text = "Record Data:"; - IPValidator.Enabled = false; + case "A": + lblRecordData.Text = "IP:"; + IPValidator.Enabled = true; + break; + case "MX": + rowMXPriority.Visible = true; + break; + case "SRV": + rowSRVPriority.Visible = true; + rowSRVWeight.Visible = true; + rowSRVPort.Visible = true; + lblRecordData.Text = "Host offering this service:"; + break; + default: + break; } + } private void SaveRecord() { if (Page.IsValid) { - bool newRecord = (bool) ViewState["NewRecord"]; + bool newRecord = (bool)ViewState["NewRecord"]; if (newRecord) { @@ -130,10 +158,13 @@ namespace WebsitePanel.Portal int result = ES.Services.Servers.AddDnsZoneRecord(PanelRequest.DomainID, txtRecordName.Text.Trim(), (DnsRecordType) - Enum.Parse(typeof (DnsRecordType), + Enum.Parse(typeof(DnsRecordType), ddlRecordType.SelectedValue, true), txtRecordData.Text.Trim(), - Int32.Parse(txtMXPriority.Text.Trim())); + Int32.Parse(txtMXPriority.Text.Trim()), + Int32.Parse(txtSRVPriority.Text.Trim()), + Int32.Parse(txtSRVWeight.Text.Trim()), + Int32.Parse(txtSRVPort.Text.Trim())); if (result < 0) { @@ -156,9 +187,12 @@ namespace WebsitePanel.Portal ViewState["RecordName"].ToString(), ViewState["RecordData"].ToString(), txtRecordName.Text.Trim(), - (DnsRecordType) ViewState["RecordType"], + (DnsRecordType)ViewState["RecordType"], txtRecordData.Text.Trim(), - Int32.Parse(txtMXPriority.Text.Trim())); + Int32.Parse(txtMXPriority.Text.Trim()), + Int32.Parse(txtSRVPriority.Text.Trim()), + Int32.Parse(txtSRVWeight.Text.Trim()), + Int32.Parse(txtSRVPort.Text.Trim())); if (result < 0) { @@ -217,6 +251,10 @@ namespace WebsitePanel.Portal txtRecordName.Text = ""; txtRecordData.Text = ""; txtMXPriority.Text = "1"; + txtSRVPriority.Text = "0"; + txtSRVWeight.Text = "0"; + txtSRVPort.Text = "0"; + ShowPanels(true); } @@ -253,7 +291,7 @@ namespace WebsitePanel.Portal { if (e.Exception != null) { - ShowErrorMessage("GDNS_GET_RECORD", e.Exception); + ShowErrorMessage("GDNS_GET_RECORD", e.Exception); //this.DisableControls = true; e.ExceptionHandled = true; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.designer.cs index 88859342..b9a95504 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DnsZoneRecords.ascx.designer.cs @@ -1,10 +1,9 @@ //------------------------------------------------------------------------------ // // 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. +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -220,6 +219,141 @@ namespace WebsitePanel.Portal { ///
protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectPriority; + /// + /// rowSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVPriority; + + /// + /// lblSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVPriority; + + /// + /// txtSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVPriority; + + /// + /// valRequireSrvPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireSrvPriority; + + /// + /// valRequireCorrectSrvPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectSrvPriority; + + /// + /// rowSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVWeight; + + /// + /// lblSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVWeight; + + /// + /// txtSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVWeight; + + /// + /// valRequireSrvWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireSrvWeight; + + /// + /// valRequireCorrectSrvWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectSrvWeight; + + /// + /// rowSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVPort; + + /// + /// lblSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVPort; + + /// + /// txtSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVPort; + + /// + /// valRequireSrvPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireSrvPort; + + /// + /// valRequireCorrectSrvPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectSrvPort; + /// /// btnSave control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsEditDomain.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsEditDomain.ascx.cs index 20beb6d1..98698245 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsEditDomain.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsEditDomain.ascx.cs @@ -304,7 +304,7 @@ namespace WebsitePanel.Portal try { // create instant alias - int result = ES.Services.Servers.CreateDomainInstantAlias(PanelRequest.DomainID); + int result = ES.Services.Servers.CreateDomainInstantAlias("", PanelRequest.DomainID); if (result < 0) { ShowResultMessage(result); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx index 68d67f1e..cc0a9e28 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx @@ -49,10 +49,13 @@ - - - - + + + + + + + @@ -61,7 +64,7 @@ - <%# GetRecordFullData((string)Eval("RecordType"), (string)Eval("RecordData"), (int)Eval("MxPriority")) %> + <%# GetRecordFullData((string)Eval("RecordType"), (string)Eval("RecordData"), (int)Eval("MxPriority"), (int)Eval("SrvPort"))%> @@ -112,11 +115,12 @@ - A - MX - NS - TXT - CNAME + A + MX + NS + TXT + CNAME + SRV @@ -126,27 +130,60 @@ - - - - - - - + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.cs index b43ebb7a..81796d94 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.cs @@ -59,44 +59,53 @@ namespace WebsitePanel.Portal.ExchangeServer } } - public string GetRecordFullData(string recordType, string recordData, int mxPriority) + public string GetRecordFullData(string recordType, string recordData, int mxPriority, int port) { - return (String.Compare(recordType, "mx", true) == 0) - ? String.Format("[{0}], {1}", mxPriority, recordData) : recordData; - } + switch (recordType) + { + case "MX": + return String.Format("[{0}], {1}", mxPriority, recordData); + case "SRV": + return String.Format("[{0}], {1}", port, recordData); + default: + return recordData; + } + } private void GetRecordsDetails(int recordIndex) { - GridViewRow row = gvRecords.Rows[recordIndex]; - ViewState["MxPriority"] = ((Literal)row.Cells[0].FindControl("litMxPriority")).Text; - ViewState["RecordName"] = ((Literal)row.Cells[0].FindControl("litRecordName")).Text; ; - ViewState["RecordType"] = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), - ((Literal)row.Cells[0].FindControl("litRecordType")).Text, true); - ViewState["RecordData"] = ((Literal)row.Cells[0].FindControl("litRecordData")).Text; - } + GridViewRow row = gvRecords.Rows[recordIndex]; + ViewState["SrvPort"] = ((Literal)row.Cells[0].FindControl("litSrvPort")).Text; + ViewState["SrvWeight"] = ((Literal)row.Cells[0].FindControl("litSrvWeight")).Text; + ViewState["SrvPriority"] = ((Literal)row.Cells[0].FindControl("litSrvPriority")).Text; + ViewState["MxPriority"] = ((Literal)row.Cells[0].FindControl("litMxPriority")).Text; + ViewState["RecordName"] = ((Literal)row.Cells[0].FindControl("litRecordName")).Text; ; + ViewState["RecordType"] = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), ((Literal)row.Cells[0].FindControl("litRecordType")).Text, true); + ViewState["RecordData"] = ((Literal)row.Cells[0].FindControl("litRecordData")).Text; + } private void BindDnsRecord(int recordIndex) { - try - { - litRecordType.Visible = true; - ddlRecordType.Visible = false; + try + { + ViewState["NewRecord"] = false; + GetRecordsDetails(recordIndex); - GetRecordsDetails(recordIndex); - - ddlRecordType.SelectedValue = ViewState["RecordType"].ToString(); - litRecordType.Text = ViewState["RecordType"].ToString(); - txtRecordName.Text = ViewState["RecordName"].ToString(); - txtRecordData.Text = ViewState["RecordData"].ToString(); - txtMXPriority.Text = ViewState["MxPriority"].ToString(); - ToggleRecordControls(); - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("GDNS_GET_RECORD", ex); - return; - } - } + ddlRecordType.SelectedValue = ViewState["RecordType"].ToString(); + litRecordType.Text = ViewState["RecordType"].ToString(); + txtRecordName.Text = ViewState["RecordName"].ToString(); + txtRecordData.Text = ViewState["RecordData"].ToString(); + txtMXPriority.Text = ViewState["MxPriority"].ToString(); + txtSRVPriority.Text = ViewState["SrvPriority"].ToString(); + txtSRVWeight.Text = ViewState["SrvWeight"].ToString(); + txtSRVPort.Text = ViewState["SrvPort"].ToString(); + } + catch (Exception ex) + { + ShowErrorMessage("GDNS_GET_RECORD", ex); + return; + } + } protected void ddlRecordType_SelectedIndexChanged(object sender, EventArgs e) { @@ -105,19 +114,32 @@ namespace WebsitePanel.Portal.ExchangeServer private void ToggleRecordControls() { - rowMXPriority.Visible = (ddlRecordType.SelectedValue == "MX"); - - if (ddlRecordType.SelectedValue == "A") + rowMXPriority.Visible = false; + rowSRVPriority.Visible = false; + rowSRVWeight.Visible = false; + rowSRVPort.Visible = false; + lblRecordData.Text = "Record Data:"; + IPValidator.Enabled = false; + + switch (ddlRecordType.SelectedValue) { - lblRecordData.Text = "IP:"; - IPValidator1.Enabled = true; + case "A": + lblRecordData.Text = "IP:"; + IPValidator.Enabled = true; + break; + case "MX": + rowMXPriority.Visible = true; + break; + case "SRV": + rowSRVPriority.Visible = true; + rowSRVWeight.Visible = true; + rowSRVPort.Visible = true; + lblRecordData.Text = "Host offering this service:"; + break; + default: + break; } - else - { - lblRecordData.Text = "Record Data:"; - IPValidator1.Enabled = false; - } - } + } private void SaveRecord() { @@ -131,11 +153,16 @@ namespace WebsitePanel.Portal.ExchangeServer // add record try { - int result = ES.Services.Servers.AddDnsZoneRecord(PanelRequest.DomainID, - txtRecordName.Text.Trim(), - (DnsRecordType)Enum.Parse(typeof(DnsRecordType), ddlRecordType.SelectedValue, true), - txtRecordData.Text.Trim(), - Utils.ParseInt(txtMXPriority.Text.Trim(), 0)); + int result = ES.Services.Servers.AddDnsZoneRecord(PanelRequest.DomainID, + txtRecordName.Text.Trim(), + (DnsRecordType) + Enum.Parse(typeof(DnsRecordType), + ddlRecordType.SelectedValue, true), + txtRecordData.Text.Trim(), + Int32.Parse(txtMXPriority.Text.Trim()), + Int32.Parse(txtSRVPriority.Text.Trim()), + Int32.Parse(txtSRVWeight.Text.Trim()), + Int32.Parse(txtSRVPort.Text.Trim())); if (result < 0) { @@ -154,13 +181,16 @@ namespace WebsitePanel.Portal.ExchangeServer // update record try { - int result = ES.Services.Servers.UpdateDnsZoneRecord(PanelRequest.DomainID, - ViewState["RecordName"].ToString(), - ViewState["RecordData"].ToString(), - txtRecordName.Text.Trim(), - (DnsRecordType)ViewState["RecordType"], - txtRecordData.Text.Trim(), - Utils.ParseInt(txtMXPriority.Text.Trim(), 0)); + int result = ES.Services.Servers.UpdateDnsZoneRecord(PanelRequest.DomainID, + ViewState["RecordName"].ToString(), + ViewState["RecordData"].ToString(), + txtRecordName.Text.Trim(), + (DnsRecordType)ViewState["RecordType"], + txtRecordData.Text.Trim(), + Int32.Parse(txtMXPriority.Text.Trim()), + Int32.Parse(txtSRVPriority.Text.Trim()), + Int32.Parse(txtSRVWeight.Text.Trim()), + Int32.Parse(txtSRVPort.Text.Trim())); if (result < 0) { @@ -220,18 +250,21 @@ namespace WebsitePanel.Portal.ExchangeServer private void ResetPopup() { - EditRecordModal.Hide(); - ViewState["ExistingRecord"] = null; + EditRecordModal.Hide(); + ViewState["ExistingRecord"] = null; - // erase fields - litRecordType.Visible = false; - ddlRecordType.Visible = true; - ddlRecordType.SelectedIndex = 0; - txtRecordName.Text = ""; - txtRecordData.Text = ""; - txtMXPriority.Text = "1"; - ToggleRecordControls(); - } + // erase fields + litRecordType.Visible = false; + ddlRecordType.Visible = true; + ddlRecordType.SelectedIndex = 0; + txtRecordName.Text = ""; + txtRecordData.Text = ""; + txtMXPriority.Text = "1"; + txtSRVPriority.Text = "0"; + txtSRVWeight.Text = "0"; + txtSRVPort.Text = "0"; + ToggleRecordControls(); + } protected void gvRecords_RowEditing(object sender, GridViewEditEventArgs e) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.designer.cs index d9cc5277..fe5fa391 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeDomainRecords.ascx.designer.cs @@ -1,10 +1,9 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.1433 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -229,6 +228,15 @@ namespace WebsitePanel.Portal.ExchangeServer { ///
protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireData; + /// + /// IPValidator control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RegularExpressionValidator IPValidator; + /// /// IPValidator1 control. /// @@ -283,6 +291,141 @@ namespace WebsitePanel.Portal.ExchangeServer { ///
protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectPriority; + /// + /// rowSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVPriority; + + /// + /// lblSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVPriority; + + /// + /// txtSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVPriority; + + /// + /// valRequireSrvPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireSrvPriority; + + /// + /// valRequireCorrectSrvPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectSrvPriority; + + /// + /// rowSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVWeight; + + /// + /// lblSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVWeight; + + /// + /// txtSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVWeight; + + /// + /// valRequireSrvWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireSrvWeight; + + /// + /// valRequireCorrectSrvWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectSrvWeight; + + /// + /// rowSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVPort; + + /// + /// lblSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVPort; + + /// + /// txtSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVPort; + + /// + /// valRequireSrvPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireSrvPort; + + /// + /// valRequireCorrectSrvPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RegularExpressionValidator valRequireCorrectSrvPort; + /// /// btnSave control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx index bf9d97f3..86c15066 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx @@ -39,6 +39,7 @@ NS TXT CNAME + SRV @@ -60,6 +61,28 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.cs index 5d03772c..2ecb71f8 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2012, Outercurve Foundation. +// Copyright (c) 2011, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, @@ -86,6 +86,7 @@ namespace WebsitePanel.Portal return; } } + } private void BindDnsRecords() @@ -104,6 +105,8 @@ namespace WebsitePanel.Portal gvRecords.DataSource = ds; gvRecords.DataBind(); } + + ToggleRecordControls(); } private void BindDnsRecord(int recordId) @@ -119,6 +122,9 @@ namespace WebsitePanel.Portal txtRecordName.Text = record.RecordName; txtRecordData.Text = record.RecordData; txtMXPriority.Text = record.MxPriority.ToString(); + txtSRVPriority.Text = record.SrvPriority.ToString(); + txtSRVWeight.Text = record.SrvWeight.ToString(); + txtSRVPort.Text = record.SrvPort.ToString(); ipAddress.AddressId = record.IpAddressId; } @@ -138,9 +144,32 @@ namespace WebsitePanel.Portal private void ToggleRecordControls() { - ipAddress.Visible = (ddlRecordType.SelectedValue == "A"); - //rowData.Visible = (ddlRecordType.SelectedValue != "A"); - rowMXPriority.Visible = (ddlRecordType.SelectedValue == "MX"); + + rowMXPriority.Visible = false; + rowSRVPriority.Visible = false; + rowSRVWeight.Visible = false; + rowSRVPort.Visible = false; + lblRecordData.Text = "Record Data:"; + ipAddress.Visible = false; + + switch (ddlRecordType.SelectedValue) + { + case "A": + lblRecordData.Text = "IP:"; + ipAddress.Visible = true; + break; + case "MX": + rowMXPriority.Visible = true; + break; + case "SRV": + rowSRVPriority.Visible = true; + rowSRVWeight.Visible = true; + rowSRVPort.Visible = true; + lblRecordData.Text = "Host offering this service:"; + break; + default: + break; + } } private void SaveRecord() @@ -151,6 +180,9 @@ namespace WebsitePanel.Portal record.RecordName = txtRecordName.Text.Trim(); record.RecordData = txtRecordData.Text.Trim(); record.MxPriority = Utils.ParseInt(txtMXPriority.Text, 0); + record.SrvPriority = Utils.ParseInt(txtSRVPriority.Text, 0); + record.SrvWeight = Utils.ParseInt(txtSRVWeight.Text, 0); + record.SrvPort = Utils.ParseInt(txtSRVPort.Text, 0); record.IpAddressId = ipAddress.AddressId; if (ServiceIdParam != null) @@ -230,6 +262,11 @@ namespace WebsitePanel.Portal txtRecordName.Text = ""; txtRecordData.Text = ""; txtMXPriority.Text = "0"; + txtSRVPriority.Text = "0"; + txtSRVWeight.Text = "0"; + txtSRVPort.Text = "0"; + + ToggleRecordControls(); ShowPanels(true); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.designer.cs index d9fbff7f..a376fa40 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/GlobalDnsRecordsControl.ascx.designer.cs @@ -1,32 +1,249 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ namespace WebsitePanel.Portal { + public partial class GlobalDnsRecordsControl { - protected System.Web.UI.WebControls.Panel pnlRecords; - protected System.Web.UI.WebControls.Button btnAdd; - protected System.Web.UI.WebControls.GridView gvRecords; - protected System.Web.UI.WebControls.Panel pnlEdit; - protected System.Web.UI.WebControls.Label lblRecordType; - protected System.Web.UI.WebControls.DropDownList ddlRecordType; - protected System.Web.UI.WebControls.Label lblRecordName; - protected System.Web.UI.WebControls.TextBox txtRecordName; - protected System.Web.UI.HtmlControls.HtmlTableRow rowData; - protected System.Web.UI.WebControls.Label lblRecordData; - protected System.Web.UI.WebControls.TextBox txtRecordData; - protected WebsitePanel.Portal.SelectIPAddress ipAddress; - protected System.Web.UI.HtmlControls.HtmlTableRow rowMXPriority; - protected System.Web.UI.WebControls.Label lblMXPriority; - protected System.Web.UI.WebControls.TextBox txtMXPriority; - protected System.Web.UI.WebControls.Button btnSave; - protected System.Web.UI.WebControls.Button btnCancel; + + /// + /// pnlRecords control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlRecords; + + /// + /// 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; + + /// + /// gvRecords control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView gvRecords; + + /// + /// pnlEdit control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlEdit; + + /// + /// lblRecordType control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblRecordType; + + /// + /// ddlRecordType control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlRecordType; + + /// + /// lblRecordName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblRecordName; + + /// + /// txtRecordName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtRecordName; + + /// + /// rowData control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowData; + + /// + /// lblRecordData control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblRecordData; + + /// + /// txtRecordData control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtRecordData; + + /// + /// ipAddress control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.SelectIPAddress ipAddress; + + /// + /// rowMXPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowMXPriority; + + /// + /// lblMXPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblMXPriority; + + /// + /// txtMXPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtMXPriority; + + /// + /// rowSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVPriority; + + /// + /// lblSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVPriority; + + /// + /// txtSRVPriority control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVPriority; + + /// + /// rowSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVWeight; + + /// + /// lblSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVWeight; + + /// + /// txtSRVWeight control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVWeight; + + /// + /// rowSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowSRVPort; + + /// + /// lblSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSRVPort; + + /// + /// txtSRVPort control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSRVPort; + + /// + /// btnSave control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnSave; + + /// + /// 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/HostedSharePointEditSiteCollection.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/HostedSharePointEditSiteCollection.ascx.cs index 1c13ab54..bc712364 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/HostedSharePointEditSiteCollection.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/HostedSharePointEditSiteCollection.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, @@ -273,7 +273,7 @@ namespace WebsitePanel.Portal private void AddDnsRecord(int domainId, string recordName, string recordData) { - int result = ES.Services.Servers.AddDnsZoneRecord(domainId, recordName, DnsRecordType.A, recordData, 0); + int result = ES.Services.Servers.AddDnsZoneRecord(domainId, recordName, DnsRecordType.A, recordData, 0, 0, 0, 0); if (result < 0) { ShowResultMessage(result);