From b3dc88fe8644d167cb4329191674f5e5a2bcac6d Mon Sep 17 00:00:00 2001 From: dev_amdtel Date: Thu, 23 Oct 2014 01:19:16 +0400 Subject: [PATCH] Exchange2013 DefaultPublicFolderMailbox fix --- .../ExchangeServerController.cs | 4 +- .../HostedSolution/IExchangeServer.cs | 4 +- .../Exchange2013.cs | 25 +- .../Exchange2007.cs | 4 +- .../Exchange2010SP2.cs | 3 +- .../ExchangeServerProxy.cs | 4931 ++++++++++------- .../ExchangeServer.asmx.cs | 8 +- 7 files changed, 2896 insertions(+), 2083 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs index 746d8234..b80b87d1 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs @@ -1782,7 +1782,9 @@ namespace WebsitePanel.EnterpriseServer //GetServiceSettings StringDictionary primSettings = ServerController.GetServiceSettings(exchangeServiceId); - string samAccount = exchange.CreateMailEnableUser(email, org.OrganizationId, org.DistinguishedName, accountType, primSettings["mailboxdatabase"], + string samAccount = exchange.CreateMailEnableUser(email, org.OrganizationId, org.DistinguishedName, + org.SecurityGroup, org.DefaultDomain, + accountType, primSettings["mailboxdatabase"], org.OfflineAddressBook, org.AddressBookPolicy, retUser.SamAccountName, diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs index 6a69cc2b..327912c0 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs @@ -37,7 +37,9 @@ namespace WebsitePanel.Providers.HostedSolution bool CheckAccountCredentials(string username, string password); // Organizations - string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, ExchangeAccountType accountType, + string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, + string securityGroup, string organizationDomain, + ExchangeAccountType accountType, string mailboxDatabase, string offlineAddressBook, string addressBookPolicy, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs index e456ea3e..7deb5df1 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs @@ -1871,14 +1871,18 @@ namespace WebsitePanel.Providers.HostedSolution } - public string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, ExchangeAccountType accountType, + public string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, + string securityGroup, string organizationDomain, + ExchangeAccountType accountType, string mailboxDatabase, string offlineAddressBook, string addressBookPolicy, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB, int maxReceiveMessageSizeKB, bool hideFromAddressBook, bool IsConsumer, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning) { - return CreateMailEnableUserInternal(upn, organizationId, organizationDistinguishedName, accountType, + return CreateMailEnableUserInternal(upn, organizationId, organizationDistinguishedName, + securityGroup, organizationDomain, + accountType, mailboxDatabase, offlineAddressBook, addressBookPolicy, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, @@ -1886,7 +1890,9 @@ namespace WebsitePanel.Providers.HostedSolution keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, hideFromAddressBook, IsConsumer, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning); } - internal virtual string CreateMailEnableUserInternal(string upn, string organizationId, string organizationDistinguishedName, ExchangeAccountType accountType, + internal virtual string CreateMailEnableUserInternal(string upn, string organizationId, string organizationDistinguishedName, + string securityGroup, string organizationDomain, + ExchangeAccountType accountType, string mailboxDatabase, string offlineAddressBook, string addressBookPolicy, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, @@ -1955,8 +1961,19 @@ namespace WebsitePanel.Providers.HostedSolution transaction.RegisterEnableMailbox(id); + // default public folder + string orgCanonicalName = ConvertADPathToCanonicalName(organizationDistinguishedName); + + //create organization public folder mailbox if required + CheckOrganizationPublicFolderMailbox(runSpace, orgCanonicalName, organizationId, organizationDomain); + + //create organization root folder if required + CheckOrganizationRootFolder(runSpace, organizationId, securityGroup, orgCanonicalName, organizationId); + string windowsEmailAddress = ObjToString(GetPSObjectProperty(result[0], "WindowsEmailAddress")); + string defaultPublicFolderMailbox = orgCanonicalName + "/" + GetPublicFolderMailboxName(organizationId); + //update mailbox cmd = new Command("Set-Mailbox"); cmd.Parameters.Add("Identity", id); @@ -1987,6 +2004,8 @@ namespace WebsitePanel.Providers.HostedSolution cmd.Parameters.Add("RecoverableItemsWarningQuota", ConvertKBToUnlimited(recoverabelItemsWarning)); } + cmd.Parameters.Add("DefaultPublicFolderMailbox", defaultPublicFolderMailbox); + ExecuteShellCommand(runSpace, cmd); //Litigation Hold diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs index 181d7d11..cfbb73b4 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs @@ -1784,7 +1784,9 @@ namespace WebsitePanel.Providers.HostedSolution } - public string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, ExchangeAccountType accountType, + public string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, + string securityGroup, string organizationDomain, + ExchangeAccountType accountType, string mailboxDatabase, string offlineAddressBook, string addressBookPolicy, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2010SP2.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2010SP2.cs index f2ae8e76..fbb33f3a 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2010SP2.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2010SP2.cs @@ -325,7 +325,8 @@ namespace WebsitePanel.Providers.HostedSolution #endregion #region Mailbox - internal override string CreateMailEnableUserInternal(string upn, string organizationId, string organizationDistinguishedName, ExchangeAccountType accountType, + internal override string CreateMailEnableUserInternal(string upn, string organizationId, string organizationDistinguishedName, + ExchangeAccountType accountType, string mailboxDatabase, string offlineAddressBook, string addressBookPolicy, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs index 1c9d6530..e1241b9e 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs @@ -29,6 +29,7 @@ using WebsitePanel.Providers.HostedSolution; using WebsitePanel.Providers.Common; + //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -42,514 +43,534 @@ using WebsitePanel.Providers.Common; // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // -namespace WebsitePanel.Providers.Exchange { +namespace WebsitePanel.Providers.Exchange +{ using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Diagnostics; - - + + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name="ExchangeServerSoap", Namespace="http://smbsaas/websitepanel/server/")] + [System.Web.Services.WebServiceBindingAttribute(Name = "ExchangeServerSoap", Namespace = "http://smbsaas/websitepanel/server/")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseStatistics))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] - public partial class ExchangeServer : Microsoft.Web.Services3.WebServicesClientProtocol { - + public partial class ExchangeServer : Microsoft.Web.Services3.WebServicesClientProtocol + { + public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue; - + private System.Threading.SendOrPostCallback CreateOrganizationActiveSyncPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback GetActiveSyncPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback SetActiveSyncPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback GetMobileDevicesOperationCompleted; - + private System.Threading.SendOrPostCallback GetMobileDeviceOperationCompleted; - + private System.Threading.SendOrPostCallback WipeDataFromDeviceOperationCompleted; - + private System.Threading.SendOrPostCallback CancelRemoteWipeRequestOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveDeviceOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailBoxArchivingOperationCompleted; - + private System.Threading.SendOrPostCallback SetRetentionPolicyTagOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveRetentionPolicyTagOperationCompleted; - + private System.Threading.SendOrPostCallback SetRetentionPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveRetentionPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback CheckAccountCredentialsOperationCompleted; - + private System.Threading.SendOrPostCallback ExtendToExchangeOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback CreateMailEnableUserOperationCompleted; - + private System.Threading.SendOrPostCallback CreateOrganizationOfflineAddressBookOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateOrganizationOfflineAddressBookOperationCompleted; - + private System.Threading.SendOrPostCallback GetOABVirtualDirectoryOperationCompleted; - + private System.Threading.SendOrPostCallback CreateOrganizationAddressBookPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback SetOrganizationStorageLimitsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxesStatisticsOperationCompleted; - + private System.Threading.SendOrPostCallback AddAuthoritativeDomainOperationCompleted; - + private System.Threading.SendOrPostCallback ChangeAcceptedDomainTypeOperationCompleted; - + private System.Threading.SendOrPostCallback GetAuthoritativeDomainsOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteAuthoritativeDomainOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteMailboxOperationCompleted; - + private System.Threading.SendOrPostCallback DisableMailboxOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxAdvancedSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxAdvancedSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxPrimaryEmailAddressOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxStatisticsOperationCompleted; - + private System.Threading.SendOrPostCallback CreateContactOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteContactOperationCompleted; - + private System.Threading.SendOrPostCallback GetContactGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetContactGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetContactMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetContactMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback CreateDistributionListOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteDistributionListOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListPrimaryEmailAddressOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback SetDisclaimerOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveDisclaimerOperationCompleted; - + private System.Threading.SendOrPostCallback AddDisclamerMemberOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveDisclamerMemberOperationCompleted; - + private System.Threading.SendOrPostCallback CreatePublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback DeletePublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback EnableMailPublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback DisableMailPublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFolderGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFolderMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFolderEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderPrimaryEmailAddressOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFoldersStatisticsOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFoldersRecursiveOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFolderSizeOperationCompleted; - + /// - public ExchangeServer() { + public ExchangeServer() + { this.Url = "http://localhost:9004/ExchangeServer.asmx"; } - + /// public event CreateOrganizationActiveSyncPolicyCompletedEventHandler CreateOrganizationActiveSyncPolicyCompleted; - + /// public event GetActiveSyncPolicyCompletedEventHandler GetActiveSyncPolicyCompleted; - + /// public event SetActiveSyncPolicyCompletedEventHandler SetActiveSyncPolicyCompleted; - + /// public event GetMobileDevicesCompletedEventHandler GetMobileDevicesCompleted; - + /// public event GetMobileDeviceCompletedEventHandler GetMobileDeviceCompleted; - + /// public event WipeDataFromDeviceCompletedEventHandler WipeDataFromDeviceCompleted; - + /// public event CancelRemoteWipeRequestCompletedEventHandler CancelRemoteWipeRequestCompleted; - + /// public event RemoveDeviceCompletedEventHandler RemoveDeviceCompleted; - + /// public event SetMailBoxArchivingCompletedEventHandler SetMailBoxArchivingCompleted; - + /// public event SetRetentionPolicyTagCompletedEventHandler SetRetentionPolicyTagCompleted; - + /// public event RemoveRetentionPolicyTagCompletedEventHandler RemoveRetentionPolicyTagCompleted; - + /// public event SetRetentionPolicyCompletedEventHandler SetRetentionPolicyCompleted; - + /// public event RemoveRetentionPolicyCompletedEventHandler RemoveRetentionPolicyCompleted; - + /// public event CheckAccountCredentialsCompletedEventHandler CheckAccountCredentialsCompleted; - + /// public event ExtendToExchangeOrganizationCompletedEventHandler ExtendToExchangeOrganizationCompleted; - + /// public event CreateMailEnableUserCompletedEventHandler CreateMailEnableUserCompleted; - + /// public event CreateOrganizationOfflineAddressBookCompletedEventHandler CreateOrganizationOfflineAddressBookCompleted; - + /// public event UpdateOrganizationOfflineAddressBookCompletedEventHandler UpdateOrganizationOfflineAddressBookCompleted; - + /// public event GetOABVirtualDirectoryCompletedEventHandler GetOABVirtualDirectoryCompleted; - + /// public event CreateOrganizationAddressBookPolicyCompletedEventHandler CreateOrganizationAddressBookPolicyCompleted; - + /// public event DeleteOrganizationCompletedEventHandler DeleteOrganizationCompleted; - + /// public event SetOrganizationStorageLimitsCompletedEventHandler SetOrganizationStorageLimitsCompleted; - + /// public event GetMailboxesStatisticsCompletedEventHandler GetMailboxesStatisticsCompleted; - + /// public event AddAuthoritativeDomainCompletedEventHandler AddAuthoritativeDomainCompleted; - + /// public event ChangeAcceptedDomainTypeCompletedEventHandler ChangeAcceptedDomainTypeCompleted; - + /// public event GetAuthoritativeDomainsCompletedEventHandler GetAuthoritativeDomainsCompleted; - + /// public event DeleteAuthoritativeDomainCompletedEventHandler DeleteAuthoritativeDomainCompleted; - + /// public event DeleteMailboxCompletedEventHandler DeleteMailboxCompleted; - + /// public event DisableMailboxCompletedEventHandler DisableMailboxCompleted; - + /// public event GetMailboxGeneralSettingsCompletedEventHandler GetMailboxGeneralSettingsCompleted; - + /// public event SetMailboxGeneralSettingsCompletedEventHandler SetMailboxGeneralSettingsCompleted; - + /// public event GetMailboxMailFlowSettingsCompletedEventHandler GetMailboxMailFlowSettingsCompleted; - + /// public event SetMailboxMailFlowSettingsCompletedEventHandler SetMailboxMailFlowSettingsCompleted; - + /// public event GetMailboxAdvancedSettingsCompletedEventHandler GetMailboxAdvancedSettingsCompleted; - + /// public event SetMailboxAdvancedSettingsCompletedEventHandler SetMailboxAdvancedSettingsCompleted; - + /// public event GetMailboxEmailAddressesCompletedEventHandler GetMailboxEmailAddressesCompleted; - + /// public event SetMailboxEmailAddressesCompletedEventHandler SetMailboxEmailAddressesCompleted; - + /// public event SetMailboxPrimaryEmailAddressCompletedEventHandler SetMailboxPrimaryEmailAddressCompleted; - + /// public event SetMailboxPermissionsCompletedEventHandler SetMailboxPermissionsCompleted; - + /// public event GetMailboxPermissionsCompletedEventHandler GetMailboxPermissionsCompleted; - + /// public event GetMailboxStatisticsCompletedEventHandler GetMailboxStatisticsCompleted; - + /// public event CreateContactCompletedEventHandler CreateContactCompleted; - + /// public event DeleteContactCompletedEventHandler DeleteContactCompleted; - + /// public event GetContactGeneralSettingsCompletedEventHandler GetContactGeneralSettingsCompleted; - + /// public event SetContactGeneralSettingsCompletedEventHandler SetContactGeneralSettingsCompleted; - + /// public event GetContactMailFlowSettingsCompletedEventHandler GetContactMailFlowSettingsCompleted; - + /// public event SetContactMailFlowSettingsCompletedEventHandler SetContactMailFlowSettingsCompleted; - + /// public event CreateDistributionListCompletedEventHandler CreateDistributionListCompleted; - + /// public event DeleteDistributionListCompletedEventHandler DeleteDistributionListCompleted; - + /// public event GetDistributionListGeneralSettingsCompletedEventHandler GetDistributionListGeneralSettingsCompleted; - + /// public event SetDistributionListGeneralSettingsCompletedEventHandler SetDistributionListGeneralSettingsCompleted; - + /// public event GetDistributionListMailFlowSettingsCompletedEventHandler GetDistributionListMailFlowSettingsCompleted; - + /// public event SetDistributionListMailFlowSettingsCompletedEventHandler SetDistributionListMailFlowSettingsCompleted; - + /// public event GetDistributionListEmailAddressesCompletedEventHandler GetDistributionListEmailAddressesCompleted; - + /// public event SetDistributionListEmailAddressesCompletedEventHandler SetDistributionListEmailAddressesCompleted; - + /// public event SetDistributionListPrimaryEmailAddressCompletedEventHandler SetDistributionListPrimaryEmailAddressCompleted; - + /// public event SetDistributionListPermissionsCompletedEventHandler SetDistributionListPermissionsCompleted; - + /// public event GetDistributionListPermissionsCompletedEventHandler GetDistributionListPermissionsCompleted; - + /// public event SetDisclaimerCompletedEventHandler SetDisclaimerCompleted; - + /// public event RemoveDisclaimerCompletedEventHandler RemoveDisclaimerCompleted; - + /// public event AddDisclamerMemberCompletedEventHandler AddDisclamerMemberCompleted; - + /// public event RemoveDisclamerMemberCompletedEventHandler RemoveDisclamerMemberCompleted; - + /// public event CreatePublicFolderCompletedEventHandler CreatePublicFolderCompleted; - + /// public event DeletePublicFolderCompletedEventHandler DeletePublicFolderCompleted; - + /// public event EnableMailPublicFolderCompletedEventHandler EnableMailPublicFolderCompleted; - + /// public event DisableMailPublicFolderCompletedEventHandler DisableMailPublicFolderCompleted; - + /// public event GetPublicFolderGeneralSettingsCompletedEventHandler GetPublicFolderGeneralSettingsCompleted; - + /// public event SetPublicFolderGeneralSettingsCompletedEventHandler SetPublicFolderGeneralSettingsCompleted; - + /// public event GetPublicFolderMailFlowSettingsCompletedEventHandler GetPublicFolderMailFlowSettingsCompleted; - + /// public event SetPublicFolderMailFlowSettingsCompletedEventHandler SetPublicFolderMailFlowSettingsCompleted; - + /// public event GetPublicFolderEmailAddressesCompletedEventHandler GetPublicFolderEmailAddressesCompleted; - + /// public event SetPublicFolderEmailAddressesCompletedEventHandler SetPublicFolderEmailAddressesCompleted; - + /// public event SetPublicFolderPrimaryEmailAddressCompletedEventHandler SetPublicFolderPrimaryEmailAddressCompleted; - + /// public event GetPublicFoldersStatisticsCompletedEventHandler GetPublicFoldersStatisticsCompleted; - + /// public event GetPublicFoldersRecursiveCompletedEventHandler GetPublicFoldersRecursiveCompleted; - + /// public event GetPublicFolderSizeCompletedEventHandler GetPublicFolderSizeCompleted; - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationActiveSyncPolicy", 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 CreateOrganizationActiveSyncPolicy(string organizationId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationActiveSyncPolicy", 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 CreateOrganizationActiveSyncPolicy(string organizationId) + { this.Invoke("CreateOrganizationActiveSyncPolicy", new object[] { organizationId}); } - + /// - public System.IAsyncResult BeginCreateOrganizationActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateOrganizationActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateOrganizationActiveSyncPolicy", new object[] { organizationId}, callback, asyncState); } - + /// - public void EndCreateOrganizationActiveSyncPolicy(System.IAsyncResult asyncResult) { + public void EndCreateOrganizationActiveSyncPolicy(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreateOrganizationActiveSyncPolicyAsync(string organizationId) { + public void CreateOrganizationActiveSyncPolicyAsync(string organizationId) + { this.CreateOrganizationActiveSyncPolicyAsync(organizationId, null); } - + /// - public void CreateOrganizationActiveSyncPolicyAsync(string organizationId, object userState) { - if ((this.CreateOrganizationActiveSyncPolicyOperationCompleted == null)) { + public void CreateOrganizationActiveSyncPolicyAsync(string organizationId, object userState) + { + if ((this.CreateOrganizationActiveSyncPolicyOperationCompleted == null)) + { this.CreateOrganizationActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationActiveSyncPolicyOperationCompleted); } this.InvokeAsync("CreateOrganizationActiveSyncPolicy", new object[] { organizationId}, this.CreateOrganizationActiveSyncPolicyOperationCompleted, userState); } - - private void OnCreateOrganizationActiveSyncPolicyOperationCompleted(object arg) { - if ((this.CreateOrganizationActiveSyncPolicyCompleted != null)) { + + private void OnCreateOrganizationActiveSyncPolicyOperationCompleted(object arg) + { + if ((this.CreateOrganizationActiveSyncPolicyCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateOrganizationActiveSyncPolicyCompleted(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/GetActiveSyncPolicy", 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 ExchangeActiveSyncPolicy GetActiveSyncPolicy(string organizationId) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetActiveSyncPolicy", 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 ExchangeActiveSyncPolicy GetActiveSyncPolicy(string organizationId) + { object[] results = this.Invoke("GetActiveSyncPolicy", new object[] { organizationId}); return ((ExchangeActiveSyncPolicy)(results[0])); } - + /// - public System.IAsyncResult BeginGetActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetActiveSyncPolicy", new object[] { organizationId}, callback, asyncState); } - + /// - public ExchangeActiveSyncPolicy EndGetActiveSyncPolicy(System.IAsyncResult asyncResult) { + public ExchangeActiveSyncPolicy EndGetActiveSyncPolicy(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeActiveSyncPolicy)(results[0])); } - + /// - public void GetActiveSyncPolicyAsync(string organizationId) { + public void GetActiveSyncPolicyAsync(string organizationId) + { this.GetActiveSyncPolicyAsync(organizationId, null); } - + /// - public void GetActiveSyncPolicyAsync(string organizationId, object userState) { - if ((this.GetActiveSyncPolicyOperationCompleted == null)) { + public void GetActiveSyncPolicyAsync(string organizationId, object userState) + { + if ((this.GetActiveSyncPolicyOperationCompleted == null)) + { this.GetActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetActiveSyncPolicyOperationCompleted); } this.InvokeAsync("GetActiveSyncPolicy", new object[] { organizationId}, this.GetActiveSyncPolicyOperationCompleted, userState); } - - private void OnGetActiveSyncPolicyOperationCompleted(object arg) { - if ((this.GetActiveSyncPolicyCompleted != null)) { + + private void OnGetActiveSyncPolicyOperationCompleted(object arg) + { + if ((this.GetActiveSyncPolicyCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetActiveSyncPolicyCompleted(this, new GetActiveSyncPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetActiveSyncPolicy", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetActiveSyncPolicy", 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 SetActiveSyncPolicy( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval) { + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval) + { this.Invoke("SetActiveSyncPolicy", new object[] { id, allowNonProvisionableDevices, @@ -569,28 +590,29 @@ namespace WebsitePanel.Providers.Exchange { passwordHistory, refreshInterval}); } - + /// public System.IAsyncResult BeginSetActiveSyncPolicy( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval, - System.AsyncCallback callback, - object asyncState) { + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval, + System.AsyncCallback callback, + object asyncState) + { return this.BeginInvoke("SetActiveSyncPolicy", new object[] { id, allowNonProvisionableDevices, @@ -610,55 +632,59 @@ namespace WebsitePanel.Providers.Exchange { passwordHistory, refreshInterval}, callback, asyncState); } - + /// - public void EndSetActiveSyncPolicy(System.IAsyncResult asyncResult) { + public void EndSetActiveSyncPolicy(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// public void SetActiveSyncPolicyAsync( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval) { + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval) + { this.SetActiveSyncPolicyAsync(id, allowNonProvisionableDevices, attachmentsEnabled, maxAttachmentSizeKB, uncAccessEnabled, wssAccessEnabled, devicePasswordEnabled, alphanumericPasswordRequired, passwordRecoveryEnabled, deviceEncryptionEnabled, allowSimplePassword, maxPasswordFailedAttempts, minPasswordLength, inactivityLockMin, passwordExpirationDays, passwordHistory, refreshInterval, null); } - + /// public void SetActiveSyncPolicyAsync( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval, - object userState) { - if ((this.SetActiveSyncPolicyOperationCompleted == null)) { + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval, + object userState) + { + if ((this.SetActiveSyncPolicyOperationCompleted == null)) + { this.SetActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetActiveSyncPolicyOperationCompleted); } this.InvokeAsync("SetActiveSyncPolicy", new object[] { @@ -680,222 +706,265 @@ namespace WebsitePanel.Providers.Exchange { passwordHistory, refreshInterval}, this.SetActiveSyncPolicyOperationCompleted, userState); } - - private void OnSetActiveSyncPolicyOperationCompleted(object arg) { - if ((this.SetActiveSyncPolicyCompleted != null)) { + + private void OnSetActiveSyncPolicyOperationCompleted(object arg) + { + if ((this.SetActiveSyncPolicyCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetActiveSyncPolicyCompleted(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/GetMobileDevices", 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 ExchangeMobileDevice[] GetMobileDevices(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMobileDevices", 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 ExchangeMobileDevice[] GetMobileDevices(string accountName) + { object[] results = this.Invoke("GetMobileDevices", new object[] { accountName}); return ((ExchangeMobileDevice[])(results[0])); } - + /// - public System.IAsyncResult BeginGetMobileDevices(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMobileDevices(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMobileDevices", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMobileDevice[] EndGetMobileDevices(System.IAsyncResult asyncResult) { + public ExchangeMobileDevice[] EndGetMobileDevices(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMobileDevice[])(results[0])); } - + /// - public void GetMobileDevicesAsync(string accountName) { + public void GetMobileDevicesAsync(string accountName) + { this.GetMobileDevicesAsync(accountName, null); } - + /// - public void GetMobileDevicesAsync(string accountName, object userState) { - if ((this.GetMobileDevicesOperationCompleted == null)) { + public void GetMobileDevicesAsync(string accountName, object userState) + { + if ((this.GetMobileDevicesOperationCompleted == null)) + { this.GetMobileDevicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDevicesOperationCompleted); } this.InvokeAsync("GetMobileDevices", new object[] { accountName}, this.GetMobileDevicesOperationCompleted, userState); } - - private void OnGetMobileDevicesOperationCompleted(object arg) { - if ((this.GetMobileDevicesCompleted != null)) { + + private void OnGetMobileDevicesOperationCompleted(object arg) + { + if ((this.GetMobileDevicesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMobileDevicesCompleted(this, new GetMobileDevicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMobileDevice", 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 ExchangeMobileDevice GetMobileDevice(string id) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMobileDevice", 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 ExchangeMobileDevice GetMobileDevice(string id) + { object[] results = this.Invoke("GetMobileDevice", new object[] { id}); return ((ExchangeMobileDevice)(results[0])); } - + /// - public System.IAsyncResult BeginGetMobileDevice(string id, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMobileDevice(string id, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMobileDevice", new object[] { id}, callback, asyncState); } - + /// - public ExchangeMobileDevice EndGetMobileDevice(System.IAsyncResult asyncResult) { + public ExchangeMobileDevice EndGetMobileDevice(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMobileDevice)(results[0])); } - + /// - public void GetMobileDeviceAsync(string id) { + public void GetMobileDeviceAsync(string id) + { this.GetMobileDeviceAsync(id, null); } - + /// - public void GetMobileDeviceAsync(string id, object userState) { - if ((this.GetMobileDeviceOperationCompleted == null)) { + public void GetMobileDeviceAsync(string id, object userState) + { + if ((this.GetMobileDeviceOperationCompleted == null)) + { this.GetMobileDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDeviceOperationCompleted); } this.InvokeAsync("GetMobileDevice", new object[] { id}, this.GetMobileDeviceOperationCompleted, userState); } - - private void OnGetMobileDeviceOperationCompleted(object arg) { - if ((this.GetMobileDeviceCompleted != null)) { + + private void OnGetMobileDeviceOperationCompleted(object arg) + { + if ((this.GetMobileDeviceCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMobileDeviceCompleted(this, new GetMobileDeviceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/WipeDataFromDevice", 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 WipeDataFromDevice(string id) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/WipeDataFromDevice", 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 WipeDataFromDevice(string id) + { this.Invoke("WipeDataFromDevice", new object[] { id}); } - + /// - public System.IAsyncResult BeginWipeDataFromDevice(string id, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginWipeDataFromDevice(string id, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("WipeDataFromDevice", new object[] { id}, callback, asyncState); } - + /// - public void EndWipeDataFromDevice(System.IAsyncResult asyncResult) { + public void EndWipeDataFromDevice(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void WipeDataFromDeviceAsync(string id) { + public void WipeDataFromDeviceAsync(string id) + { this.WipeDataFromDeviceAsync(id, null); } - + /// - public void WipeDataFromDeviceAsync(string id, object userState) { - if ((this.WipeDataFromDeviceOperationCompleted == null)) { + public void WipeDataFromDeviceAsync(string id, object userState) + { + if ((this.WipeDataFromDeviceOperationCompleted == null)) + { this.WipeDataFromDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWipeDataFromDeviceOperationCompleted); } this.InvokeAsync("WipeDataFromDevice", new object[] { id}, this.WipeDataFromDeviceOperationCompleted, userState); } - - private void OnWipeDataFromDeviceOperationCompleted(object arg) { - if ((this.WipeDataFromDeviceCompleted != null)) { + + private void OnWipeDataFromDeviceOperationCompleted(object arg) + { + if ((this.WipeDataFromDeviceCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.WipeDataFromDeviceCompleted(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/CancelRemoteWipeRequest", 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 CancelRemoteWipeRequest(string id) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CancelRemoteWipeRequest", 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 CancelRemoteWipeRequest(string id) + { this.Invoke("CancelRemoteWipeRequest", new object[] { id}); } - + /// - public System.IAsyncResult BeginCancelRemoteWipeRequest(string id, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCancelRemoteWipeRequest(string id, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CancelRemoteWipeRequest", new object[] { id}, callback, asyncState); } - + /// - public void EndCancelRemoteWipeRequest(System.IAsyncResult asyncResult) { + public void EndCancelRemoteWipeRequest(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CancelRemoteWipeRequestAsync(string id) { + public void CancelRemoteWipeRequestAsync(string id) + { this.CancelRemoteWipeRequestAsync(id, null); } - + /// - public void CancelRemoteWipeRequestAsync(string id, object userState) { - if ((this.CancelRemoteWipeRequestOperationCompleted == null)) { + public void CancelRemoteWipeRequestAsync(string id, object userState) + { + if ((this.CancelRemoteWipeRequestOperationCompleted == null)) + { this.CancelRemoteWipeRequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCancelRemoteWipeRequestOperationCompleted); } this.InvokeAsync("CancelRemoteWipeRequest", new object[] { id}, this.CancelRemoteWipeRequestOperationCompleted, userState); } - - private void OnCancelRemoteWipeRequestOperationCompleted(object arg) { - if ((this.CancelRemoteWipeRequestCompleted != null)) { + + private void OnCancelRemoteWipeRequestOperationCompleted(object arg) + { + if ((this.CancelRemoteWipeRequestCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CancelRemoteWipeRequestCompleted(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/RemoveDevice", 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 RemoveDevice(string id) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDevice", 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 RemoveDevice(string id) + { this.Invoke("RemoveDevice", new object[] { id}); } - + /// - public System.IAsyncResult BeginRemoveDevice(string id, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginRemoveDevice(string id, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("RemoveDevice", new object[] { id}, callback, asyncState); } - + /// - public void EndRemoveDevice(System.IAsyncResult asyncResult) { + public void EndRemoveDevice(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void RemoveDeviceAsync(string id) { + public void RemoveDeviceAsync(string id) + { this.RemoveDeviceAsync(id, null); } - + /// - public void RemoveDeviceAsync(string id, object userState) { - if ((this.RemoveDeviceOperationCompleted == null)) { + public void RemoveDeviceAsync(string id, object userState) + { + if ((this.RemoveDeviceOperationCompleted == null)) + { this.RemoveDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveDeviceOperationCompleted); } this.InvokeAsync("RemoveDevice", new object[] { id}, this.RemoveDeviceOperationCompleted, userState); } - - private void OnRemoveDeviceOperationCompleted(object arg) { - if ((this.RemoveDeviceCompleted != null)) { + + private void OnRemoveDeviceOperationCompleted(object arg) + { + if ((this.RemoveDeviceCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveDeviceCompleted(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/SetMailBoxArchiving", 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 ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailBoxArchiving", 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 ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) + { object[] results = this.Invoke("SetMailBoxArchiving", new object[] { organizationId, accountName, @@ -905,9 +974,10 @@ namespace WebsitePanel.Providers.Exchange { RetentionPolicy}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginSetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetMailBoxArchiving", new object[] { organizationId, accountName, @@ -916,21 +986,25 @@ namespace WebsitePanel.Providers.Exchange { archiveWarningQuotaKB, RetentionPolicy}, callback, asyncState); } - + /// - public ResultObject EndSetMailBoxArchiving(System.IAsyncResult asyncResult) { + public ResultObject EndSetMailBoxArchiving(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) { + public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) + { this.SetMailBoxArchivingAsync(organizationId, accountName, archive, archiveQuotaKB, archiveWarningQuotaKB, RetentionPolicy, null); } - + /// - public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy, object userState) { - if ((this.SetMailBoxArchivingOperationCompleted == null)) { + public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy, object userState) + { + if ((this.SetMailBoxArchivingOperationCompleted == null)) + { this.SetMailBoxArchivingOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailBoxArchivingOperationCompleted); } this.InvokeAsync("SetMailBoxArchiving", new object[] { @@ -941,18 +1015,21 @@ namespace WebsitePanel.Providers.Exchange { archiveWarningQuotaKB, RetentionPolicy}, this.SetMailBoxArchivingOperationCompleted, userState); } - - private void OnSetMailBoxArchivingOperationCompleted(object arg) { - if ((this.SetMailBoxArchivingCompleted != null)) { + + private void OnSetMailBoxArchivingOperationCompleted(object arg) + { + if ((this.SetMailBoxArchivingCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailBoxArchivingCompleted(this, new SetMailBoxArchivingCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetRetentionPolicyTag", 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 ResultObject SetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetRetentionPolicyTag", 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 ResultObject SetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) + { object[] results = this.Invoke("SetRetentionPolicyTag", new object[] { Identity, Type, @@ -960,30 +1037,35 @@ namespace WebsitePanel.Providers.Exchange { RetentionAction}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginSetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetRetentionPolicyTag", new object[] { Identity, Type, AgeLimitForRetention, RetentionAction}, callback, asyncState); } - + /// - public ResultObject EndSetRetentionPolicyTag(System.IAsyncResult asyncResult) { + public ResultObject EndSetRetentionPolicyTag(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) { + public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) + { this.SetRetentionPolicyTagAsync(Identity, Type, AgeLimitForRetention, RetentionAction, null); } - + /// - public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction, object userState) { - if ((this.SetRetentionPolicyTagOperationCompleted == null)) { + public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction, object userState) + { + if ((this.SetRetentionPolicyTagOperationCompleted == null)) + { this.SetRetentionPolicyTagOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRetentionPolicyTagOperationCompleted); } this.InvokeAsync("SetRetentionPolicyTag", new object[] { @@ -992,221 +1074,261 @@ namespace WebsitePanel.Providers.Exchange { AgeLimitForRetention, RetentionAction}, this.SetRetentionPolicyTagOperationCompleted, userState); } - - private void OnSetRetentionPolicyTagOperationCompleted(object arg) { - if ((this.SetRetentionPolicyTagCompleted != null)) { + + private void OnSetRetentionPolicyTagOperationCompleted(object arg) + { + if ((this.SetRetentionPolicyTagCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetRetentionPolicyTagCompleted(this, new SetRetentionPolicyTagCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveRetentionPolicyTag", 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 ResultObject RemoveRetentionPolicyTag(string Identity) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveRetentionPolicyTag", 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 ResultObject RemoveRetentionPolicyTag(string Identity) + { object[] results = this.Invoke("RemoveRetentionPolicyTag", new object[] { Identity}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveRetentionPolicyTag(string Identity, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginRemoveRetentionPolicyTag(string Identity, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("RemoveRetentionPolicyTag", new object[] { Identity}, callback, asyncState); } - + /// - public ResultObject EndRemoveRetentionPolicyTag(System.IAsyncResult asyncResult) { + public ResultObject EndRemoveRetentionPolicyTag(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void RemoveRetentionPolicyTagAsync(string Identity) { + public void RemoveRetentionPolicyTagAsync(string Identity) + { this.RemoveRetentionPolicyTagAsync(Identity, null); } - + /// - public void RemoveRetentionPolicyTagAsync(string Identity, object userState) { - if ((this.RemoveRetentionPolicyTagOperationCompleted == null)) { + public void RemoveRetentionPolicyTagAsync(string Identity, object userState) + { + if ((this.RemoveRetentionPolicyTagOperationCompleted == null)) + { this.RemoveRetentionPolicyTagOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRetentionPolicyTagOperationCompleted); } this.InvokeAsync("RemoveRetentionPolicyTag", new object[] { Identity}, this.RemoveRetentionPolicyTagOperationCompleted, userState); } - - private void OnRemoveRetentionPolicyTagOperationCompleted(object arg) { - if ((this.RemoveRetentionPolicyTagCompleted != null)) { + + private void OnRemoveRetentionPolicyTagOperationCompleted(object arg) + { + if ((this.RemoveRetentionPolicyTagCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveRetentionPolicyTagCompleted(this, new RemoveRetentionPolicyTagCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetRetentionPolicy", 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 ResultObject SetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetRetentionPolicy", 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 ResultObject SetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks) + { object[] results = this.Invoke("SetRetentionPolicy", new object[] { Identity, RetentionPolicyTagLinks}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginSetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetRetentionPolicy", new object[] { Identity, RetentionPolicyTagLinks}, callback, asyncState); } - + /// - public ResultObject EndSetRetentionPolicy(System.IAsyncResult asyncResult) { + public ResultObject EndSetRetentionPolicy(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks) { + public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks) + { this.SetRetentionPolicyAsync(Identity, RetentionPolicyTagLinks, null); } - + /// - public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks, object userState) { - if ((this.SetRetentionPolicyOperationCompleted == null)) { + public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks, object userState) + { + if ((this.SetRetentionPolicyOperationCompleted == null)) + { this.SetRetentionPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRetentionPolicyOperationCompleted); } this.InvokeAsync("SetRetentionPolicy", new object[] { Identity, RetentionPolicyTagLinks}, this.SetRetentionPolicyOperationCompleted, userState); } - - private void OnSetRetentionPolicyOperationCompleted(object arg) { - if ((this.SetRetentionPolicyCompleted != null)) { + + private void OnSetRetentionPolicyOperationCompleted(object arg) + { + if ((this.SetRetentionPolicyCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetRetentionPolicyCompleted(this, new SetRetentionPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveRetentionPolicy", 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 ResultObject RemoveRetentionPolicy(string Identity) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveRetentionPolicy", 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 ResultObject RemoveRetentionPolicy(string Identity) + { object[] results = this.Invoke("RemoveRetentionPolicy", new object[] { Identity}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveRetentionPolicy(string Identity, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginRemoveRetentionPolicy(string Identity, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("RemoveRetentionPolicy", new object[] { Identity}, callback, asyncState); } - + /// - public ResultObject EndRemoveRetentionPolicy(System.IAsyncResult asyncResult) { + public ResultObject EndRemoveRetentionPolicy(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void RemoveRetentionPolicyAsync(string Identity) { + public void RemoveRetentionPolicyAsync(string Identity) + { this.RemoveRetentionPolicyAsync(Identity, null); } - + /// - public void RemoveRetentionPolicyAsync(string Identity, object userState) { - if ((this.RemoveRetentionPolicyOperationCompleted == null)) { + public void RemoveRetentionPolicyAsync(string Identity, object userState) + { + if ((this.RemoveRetentionPolicyOperationCompleted == null)) + { this.RemoveRetentionPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRetentionPolicyOperationCompleted); } this.InvokeAsync("RemoveRetentionPolicy", new object[] { Identity}, this.RemoveRetentionPolicyOperationCompleted, userState); } - - private void OnRemoveRetentionPolicyOperationCompleted(object arg) { - if ((this.RemoveRetentionPolicyCompleted != null)) { + + private void OnRemoveRetentionPolicyOperationCompleted(object arg) + { + if ((this.RemoveRetentionPolicyCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveRetentionPolicyCompleted(this, new RemoveRetentionPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CheckAccountCredentials", 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 CheckAccountCredentials(string username, string password) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CheckAccountCredentials", 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 CheckAccountCredentials(string username, string password) + { object[] results = this.Invoke("CheckAccountCredentials", new object[] { username, password}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginCheckAccountCredentials(string username, string password, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCheckAccountCredentials(string username, string password, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CheckAccountCredentials", new object[] { username, password}, callback, asyncState); } - + /// - public bool EndCheckAccountCredentials(System.IAsyncResult asyncResult) { + public bool EndCheckAccountCredentials(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void CheckAccountCredentialsAsync(string username, string password) { + public void CheckAccountCredentialsAsync(string username, string password) + { this.CheckAccountCredentialsAsync(username, password, null); } - + /// - public void CheckAccountCredentialsAsync(string username, string password, object userState) { - if ((this.CheckAccountCredentialsOperationCompleted == null)) { + public void CheckAccountCredentialsAsync(string username, string password, object userState) + { + if ((this.CheckAccountCredentialsOperationCompleted == null)) + { this.CheckAccountCredentialsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckAccountCredentialsOperationCompleted); } this.InvokeAsync("CheckAccountCredentials", new object[] { username, password}, this.CheckAccountCredentialsOperationCompleted, userState); } - - private void OnCheckAccountCredentialsOperationCompleted(object arg) { - if ((this.CheckAccountCredentialsCompleted != null)) { + + private void OnCheckAccountCredentialsOperationCompleted(object arg) + { + if ((this.CheckAccountCredentialsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CheckAccountCredentialsCompleted(this, new CheckAccountCredentialsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExtendToExchangeOrganization", 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 Organization ExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExtendToExchangeOrganization", 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 Organization ExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer) + { object[] results = this.Invoke("ExtendToExchangeOrganization", new object[] { organizationId, securityGroup, IsConsumer}); return ((Organization)(results[0])); } - + /// - public System.IAsyncResult BeginExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ExtendToExchangeOrganization", new object[] { organizationId, securityGroup, IsConsumer}, callback, asyncState); } - + /// - public Organization EndExtendToExchangeOrganization(System.IAsyncResult asyncResult) { + public Organization EndExtendToExchangeOrganization(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((Organization)(results[0])); } - + /// - public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer) { + public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer) + { this.ExtendToExchangeOrganizationAsync(organizationId, securityGroup, IsConsumer, null); } - + /// - public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer, object userState) { - if ((this.ExtendToExchangeOrganizationOperationCompleted == null)) { + public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer, object userState) + { + if ((this.ExtendToExchangeOrganizationOperationCompleted == null)) + { this.ExtendToExchangeOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExtendToExchangeOrganizationOperationCompleted); } this.InvokeAsync("ExtendToExchangeOrganization", new object[] { @@ -1214,47 +1336,54 @@ namespace WebsitePanel.Providers.Exchange { securityGroup, IsConsumer}, this.ExtendToExchangeOrganizationOperationCompleted, userState); } - - private void OnExtendToExchangeOrganizationOperationCompleted(object arg) { - if ((this.ExtendToExchangeOrganizationCompleted != null)) { + + private void OnExtendToExchangeOrganizationOperationCompleted(object arg) + { + if ((this.ExtendToExchangeOrganizationCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ExtendToExchangeOrganizationCompleted(this, new ExtendToExchangeOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateMailEnableUser", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateMailEnableUser", 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 CreateMailEnableUser( - string upn, - string organizationId, - string organizationDistinguishedName, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning) { + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning) + { object[] results = this.Invoke("CreateMailEnableUser", new object[] { upn, organizationId, organizationDistinguishedName, + securityGroup, + organizationDomain, accountType, mailboxDatabase, offlineAddressBook, @@ -1279,40 +1408,45 @@ namespace WebsitePanel.Providers.Exchange { recoverabelItemsWarning}); return ((string)(results[0])); } - + /// public System.IAsyncResult BeginCreateMailEnableUser( - string upn, - string organizationId, - string organizationDistinguishedName, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - System.AsyncCallback callback, - object asyncState) { + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + System.AsyncCallback callback, + object asyncState) + { return this.BeginInvoke("CreateMailEnableUser", new object[] { upn, organizationId, organizationDistinguishedName, + securityGroup, + organizationDomain, accountType, mailboxDatabase, offlineAddressBook, @@ -1336,78 +1470,88 @@ namespace WebsitePanel.Providers.Exchange { recoverabelItemsSpace, recoverabelItemsWarning}, callback, asyncState); } - + /// - public string EndCreateMailEnableUser(System.IAsyncResult asyncResult) { + public string EndCreateMailEnableUser(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// public void CreateMailEnableUserAsync( - string upn, - string organizationId, - string organizationDistinguishedName, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning) { - this.CreateMailEnableUserAsync(upn, organizationId, organizationDistinguishedName, accountType, mailboxDatabase, offlineAddressBook, addressBookPolicy, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, hideFromAddressBook, isConsumer, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, null); + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning) + { + this.CreateMailEnableUserAsync(upn, organizationId, organizationDistinguishedName, securityGroup, organizationDomain, accountType, mailboxDatabase, offlineAddressBook, addressBookPolicy, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, hideFromAddressBook, isConsumer, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, null); } - + /// public void CreateMailEnableUserAsync( - string upn, - string organizationId, - string organizationDistinguishedName, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - object userState) { - if ((this.CreateMailEnableUserOperationCompleted == null)) { + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + object userState) + { + if ((this.CreateMailEnableUserOperationCompleted == null)) + { this.CreateMailEnableUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateMailEnableUserOperationCompleted); } this.InvokeAsync("CreateMailEnableUser", new object[] { upn, organizationId, organizationDistinguishedName, + securityGroup, + organizationDomain, accountType, mailboxDatabase, offlineAddressBook, @@ -1431,47 +1575,55 @@ namespace WebsitePanel.Providers.Exchange { recoverabelItemsSpace, recoverabelItemsWarning}, this.CreateMailEnableUserOperationCompleted, userState); } - - private void OnCreateMailEnableUserOperationCompleted(object arg) { - if ((this.CreateMailEnableUserCompleted != null)) { + + private void OnCreateMailEnableUserOperationCompleted(object arg) + { + if ((this.CreateMailEnableUserCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateMailEnableUserCompleted(this, new CreateMailEnableUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationOfflineAddressBook", 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 Organization CreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationOfflineAddressBook", 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 Organization CreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir) + { object[] results = this.Invoke("CreateOrganizationOfflineAddressBook", new object[] { organizationId, securityGroup, oabVirtualDir}); return ((Organization)(results[0])); } - + /// - public System.IAsyncResult BeginCreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateOrganizationOfflineAddressBook", new object[] { organizationId, securityGroup, oabVirtualDir}, callback, asyncState); } - + /// - public Organization EndCreateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) { + public Organization EndCreateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((Organization)(results[0])); } - + /// - public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir) { + public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir) + { this.CreateOrganizationOfflineAddressBookAsync(organizationId, securityGroup, oabVirtualDir, null); } - + /// - public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir, object userState) { - if ((this.CreateOrganizationOfflineAddressBookOperationCompleted == null)) { + public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir, object userState) + { + if ((this.CreateOrganizationOfflineAddressBookOperationCompleted == null)) + { this.CreateOrganizationOfflineAddressBookOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationOfflineAddressBookOperationCompleted); } this.InvokeAsync("CreateOrganizationOfflineAddressBook", new object[] { @@ -1479,97 +1631,116 @@ namespace WebsitePanel.Providers.Exchange { securityGroup, oabVirtualDir}, this.CreateOrganizationOfflineAddressBookOperationCompleted, userState); } - - private void OnCreateOrganizationOfflineAddressBookOperationCompleted(object arg) { - if ((this.CreateOrganizationOfflineAddressBookCompleted != null)) { + + private void OnCreateOrganizationOfflineAddressBookOperationCompleted(object arg) + { + if ((this.CreateOrganizationOfflineAddressBookCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateOrganizationOfflineAddressBookCompleted(this, new CreateOrganizationOfflineAddressBookCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationOfflineAddressBook", 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 UpdateOrganizationOfflineAddressBook(string id) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationOfflineAddressBook", 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 UpdateOrganizationOfflineAddressBook(string id) + { this.Invoke("UpdateOrganizationOfflineAddressBook", new object[] { id}); } - + /// - public System.IAsyncResult BeginUpdateOrganizationOfflineAddressBook(string id, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateOrganizationOfflineAddressBook(string id, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateOrganizationOfflineAddressBook", new object[] { id}, callback, asyncState); } - + /// - public void EndUpdateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) { + public void EndUpdateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void UpdateOrganizationOfflineAddressBookAsync(string id) { + public void UpdateOrganizationOfflineAddressBookAsync(string id) + { this.UpdateOrganizationOfflineAddressBookAsync(id, null); } - + /// - public void UpdateOrganizationOfflineAddressBookAsync(string id, object userState) { - if ((this.UpdateOrganizationOfflineAddressBookOperationCompleted == null)) { + public void UpdateOrganizationOfflineAddressBookAsync(string id, object userState) + { + if ((this.UpdateOrganizationOfflineAddressBookOperationCompleted == null)) + { this.UpdateOrganizationOfflineAddressBookOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationOfflineAddressBookOperationCompleted); } this.InvokeAsync("UpdateOrganizationOfflineAddressBook", new object[] { id}, this.UpdateOrganizationOfflineAddressBookOperationCompleted, userState); } - - private void OnUpdateOrganizationOfflineAddressBookOperationCompleted(object arg) { - if ((this.UpdateOrganizationOfflineAddressBookCompleted != null)) { + + private void OnUpdateOrganizationOfflineAddressBookOperationCompleted(object arg) + { + if ((this.UpdateOrganizationOfflineAddressBookCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateOrganizationOfflineAddressBookCompleted(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/GetOABVirtualDirectory", 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 GetOABVirtualDirectory() { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetOABVirtualDirectory", 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 GetOABVirtualDirectory() + { object[] results = this.Invoke("GetOABVirtualDirectory", new object[0]); return ((string)(results[0])); } - + /// - public System.IAsyncResult BeginGetOABVirtualDirectory(System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetOABVirtualDirectory(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetOABVirtualDirectory", new object[0], callback, asyncState); } - + /// - public string EndGetOABVirtualDirectory(System.IAsyncResult asyncResult) { + public string EndGetOABVirtualDirectory(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// - public void GetOABVirtualDirectoryAsync() { + public void GetOABVirtualDirectoryAsync() + { this.GetOABVirtualDirectoryAsync(null); } - + /// - public void GetOABVirtualDirectoryAsync(object userState) { - if ((this.GetOABVirtualDirectoryOperationCompleted == null)) { + public void GetOABVirtualDirectoryAsync(object userState) + { + if ((this.GetOABVirtualDirectoryOperationCompleted == null)) + { this.GetOABVirtualDirectoryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOABVirtualDirectoryOperationCompleted); } this.InvokeAsync("GetOABVirtualDirectory", new object[0], this.GetOABVirtualDirectoryOperationCompleted, userState); } - - private void OnGetOABVirtualDirectoryOperationCompleted(object arg) { - if ((this.GetOABVirtualDirectoryCompleted != null)) { + + private void OnGetOABVirtualDirectoryOperationCompleted(object arg) + { + if ((this.GetOABVirtualDirectoryCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetOABVirtualDirectoryCompleted(this, new GetOABVirtualDirectoryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationAddressBookPolicy", 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 Organization CreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationAddressBookPolicy", 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 Organization CreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab) + { object[] results = this.Invoke("CreateOrganizationAddressBookPolicy", new object[] { organizationId, gal, @@ -1578,9 +1749,10 @@ namespace WebsitePanel.Providers.Exchange { oab}); return ((Organization)(results[0])); } - + /// - public System.IAsyncResult BeginCreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateOrganizationAddressBookPolicy", new object[] { organizationId, gal, @@ -1588,21 +1760,25 @@ namespace WebsitePanel.Providers.Exchange { roomList, oab}, callback, asyncState); } - + /// - public Organization EndCreateOrganizationAddressBookPolicy(System.IAsyncResult asyncResult) { + public Organization EndCreateOrganizationAddressBookPolicy(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((Organization)(results[0])); } - + /// - public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab) { + public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab) + { this.CreateOrganizationAddressBookPolicyAsync(organizationId, gal, addressBook, roomList, oab, null); } - + /// - public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab, object userState) { - if ((this.CreateOrganizationAddressBookPolicyOperationCompleted == null)) { + public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab, object userState) + { + if ((this.CreateOrganizationAddressBookPolicyOperationCompleted == null)) + { this.CreateOrganizationAddressBookPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationAddressBookPolicyOperationCompleted); } this.InvokeAsync("CreateOrganizationAddressBookPolicy", new object[] { @@ -1612,18 +1788,21 @@ namespace WebsitePanel.Providers.Exchange { roomList, oab}, this.CreateOrganizationAddressBookPolicyOperationCompleted, userState); } - - private void OnCreateOrganizationAddressBookPolicyOperationCompleted(object arg) { - if ((this.CreateOrganizationAddressBookPolicyCompleted != null)) { + + private void OnCreateOrganizationAddressBookPolicyOperationCompleted(object arg) + { + if ((this.CreateOrganizationAddressBookPolicyCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateOrganizationAddressBookPolicyCompleted(this, new CreateOrganizationAddressBookPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteOrganization", 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 DeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteOrganization", 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 DeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) + { object[] results = this.Invoke("DeleteOrganization", new object[] { organizationId, distinguishedName, @@ -1636,9 +1815,10 @@ namespace WebsitePanel.Providers.Exchange { acceptedDomains}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteOrganization", new object[] { organizationId, distinguishedName, @@ -1650,21 +1830,25 @@ namespace WebsitePanel.Providers.Exchange { addressBookPolicy, acceptedDomains}, callback, asyncState); } - + /// - public bool EndDeleteOrganization(System.IAsyncResult asyncResult) { + public bool EndDeleteOrganization(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) { + public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) + { this.DeleteOrganizationAsync(organizationId, distinguishedName, globalAddressList, addressList, roomList, offlineAddressBook, securityGroup, addressBookPolicy, acceptedDomains, null); } - + /// - public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, object userState) { - if ((this.DeleteOrganizationOperationCompleted == null)) { + public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, object userState) + { + if ((this.DeleteOrganizationOperationCompleted == null)) + { this.DeleteOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationOperationCompleted); } this.InvokeAsync("DeleteOrganization", new object[] { @@ -1678,18 +1862,21 @@ namespace WebsitePanel.Providers.Exchange { addressBookPolicy, acceptedDomains}, this.DeleteOrganizationOperationCompleted, userState); } - - private void OnDeleteOrganizationOperationCompleted(object arg) { - if ((this.DeleteOrganizationCompleted != null)) { + + private void OnDeleteOrganizationOperationCompleted(object arg) + { + if ((this.DeleteOrganizationCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteOrganizationCompleted(this, new DeleteOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetOrganizationStorageLimits", 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 SetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetOrganizationStorageLimits", 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 SetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) + { this.Invoke("SetOrganizationStorageLimits", new object[] { organizationDistinguishedName, issueWarningKB, @@ -1697,9 +1884,10 @@ namespace WebsitePanel.Providers.Exchange { prohibitSendReceiveKB, keepDeletedItemsDays}); } - + /// - public System.IAsyncResult BeginSetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetOrganizationStorageLimits", new object[] { organizationDistinguishedName, issueWarningKB, @@ -1707,20 +1895,24 @@ namespace WebsitePanel.Providers.Exchange { prohibitSendReceiveKB, keepDeletedItemsDays}, callback, asyncState); } - + /// - public void EndSetOrganizationStorageLimits(System.IAsyncResult asyncResult) { + public void EndSetOrganizationStorageLimits(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) { + public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) + { this.SetOrganizationStorageLimitsAsync(organizationDistinguishedName, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, null); } - + /// - public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, object userState) { - if ((this.SetOrganizationStorageLimitsOperationCompleted == null)) { + public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, object userState) + { + if ((this.SetOrganizationStorageLimitsOperationCompleted == null)) + { this.SetOrganizationStorageLimitsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetOrganizationStorageLimitsOperationCompleted); } this.InvokeAsync("SetOrganizationStorageLimits", new object[] { @@ -1730,371 +1922,443 @@ namespace WebsitePanel.Providers.Exchange { prohibitSendReceiveKB, keepDeletedItemsDays}, this.SetOrganizationStorageLimitsOperationCompleted, userState); } - - private void OnSetOrganizationStorageLimitsOperationCompleted(object arg) { - if ((this.SetOrganizationStorageLimitsCompleted != null)) { + + private void OnSetOrganizationStorageLimitsOperationCompleted(object arg) + { + if ((this.SetOrganizationStorageLimitsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetOrganizationStorageLimitsCompleted(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/GetMailboxesStatistics", 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 ExchangeItemStatistics[] GetMailboxesStatistics(string organizationDistinguishedName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxesStatistics", 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 ExchangeItemStatistics[] GetMailboxesStatistics(string organizationDistinguishedName) + { object[] results = this.Invoke("GetMailboxesStatistics", new object[] { organizationDistinguishedName}); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxesStatistics(string organizationDistinguishedName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMailboxesStatistics(string organizationDistinguishedName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMailboxesStatistics", new object[] { organizationDistinguishedName}, callback, asyncState); } - + /// - public ExchangeItemStatistics[] EndGetMailboxesStatistics(System.IAsyncResult asyncResult) { + public ExchangeItemStatistics[] EndGetMailboxesStatistics(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public void GetMailboxesStatisticsAsync(string organizationDistinguishedName) { + public void GetMailboxesStatisticsAsync(string organizationDistinguishedName) + { this.GetMailboxesStatisticsAsync(organizationDistinguishedName, null); } - + /// - public void GetMailboxesStatisticsAsync(string organizationDistinguishedName, object userState) { - if ((this.GetMailboxesStatisticsOperationCompleted == null)) { + public void GetMailboxesStatisticsAsync(string organizationDistinguishedName, object userState) + { + if ((this.GetMailboxesStatisticsOperationCompleted == null)) + { this.GetMailboxesStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxesStatisticsOperationCompleted); } this.InvokeAsync("GetMailboxesStatistics", new object[] { organizationDistinguishedName}, this.GetMailboxesStatisticsOperationCompleted, userState); } - - private void OnGetMailboxesStatisticsOperationCompleted(object arg) { - if ((this.GetMailboxesStatisticsCompleted != null)) { + + private void OnGetMailboxesStatisticsOperationCompleted(object arg) + { + if ((this.GetMailboxesStatisticsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxesStatisticsCompleted(this, new GetMailboxesStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddAuthoritativeDomain", 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 AddAuthoritativeDomain(string domain) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddAuthoritativeDomain", 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 AddAuthoritativeDomain(string domain) + { this.Invoke("AddAuthoritativeDomain", new object[] { domain}); } - + /// - public System.IAsyncResult BeginAddAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddAuthoritativeDomain", new object[] { domain}, callback, asyncState); } - + /// - public void EndAddAuthoritativeDomain(System.IAsyncResult asyncResult) { + public void EndAddAuthoritativeDomain(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void AddAuthoritativeDomainAsync(string domain) { + public void AddAuthoritativeDomainAsync(string domain) + { this.AddAuthoritativeDomainAsync(domain, null); } - + /// - public void AddAuthoritativeDomainAsync(string domain, object userState) { - if ((this.AddAuthoritativeDomainOperationCompleted == null)) { + public void AddAuthoritativeDomainAsync(string domain, object userState) + { + if ((this.AddAuthoritativeDomainOperationCompleted == null)) + { this.AddAuthoritativeDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddAuthoritativeDomainOperationCompleted); } this.InvokeAsync("AddAuthoritativeDomain", new object[] { domain}, this.AddAuthoritativeDomainOperationCompleted, userState); } - - private void OnAddAuthoritativeDomainOperationCompleted(object arg) { - if ((this.AddAuthoritativeDomainCompleted != null)) { + + private void OnAddAuthoritativeDomainOperationCompleted(object arg) + { + if ((this.AddAuthoritativeDomainCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddAuthoritativeDomainCompleted(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/ChangeAcceptedDomainType", 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 ChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeAcceptedDomainType", 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 ChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType) + { this.Invoke("ChangeAcceptedDomainType", new object[] { domain, domainType}); } - + /// - public System.IAsyncResult BeginChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ChangeAcceptedDomainType", new object[] { domain, domainType}, callback, asyncState); } - + /// - public void EndChangeAcceptedDomainType(System.IAsyncResult asyncResult) { + public void EndChangeAcceptedDomainType(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType) { + public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType) + { this.ChangeAcceptedDomainTypeAsync(domain, domainType, null); } - + /// - public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType, object userState) { - if ((this.ChangeAcceptedDomainTypeOperationCompleted == null)) { + public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType, object userState) + { + if ((this.ChangeAcceptedDomainTypeOperationCompleted == null)) + { this.ChangeAcceptedDomainTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeAcceptedDomainTypeOperationCompleted); } this.InvokeAsync("ChangeAcceptedDomainType", new object[] { domain, domainType}, this.ChangeAcceptedDomainTypeOperationCompleted, userState); } - - private void OnChangeAcceptedDomainTypeOperationCompleted(object arg) { - if ((this.ChangeAcceptedDomainTypeCompleted != null)) { + + private void OnChangeAcceptedDomainTypeOperationCompleted(object arg) + { + if ((this.ChangeAcceptedDomainTypeCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ChangeAcceptedDomainTypeCompleted(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/GetAuthoritativeDomains", 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[] GetAuthoritativeDomains() { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetAuthoritativeDomains", 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[] GetAuthoritativeDomains() + { object[] results = this.Invoke("GetAuthoritativeDomains", new object[0]); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetAuthoritativeDomains(System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetAuthoritativeDomains(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetAuthoritativeDomains", new object[0], callback, asyncState); } - + /// - public string[] EndGetAuthoritativeDomains(System.IAsyncResult asyncResult) { + public string[] EndGetAuthoritativeDomains(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetAuthoritativeDomainsAsync() { + public void GetAuthoritativeDomainsAsync() + { this.GetAuthoritativeDomainsAsync(null); } - + /// - public void GetAuthoritativeDomainsAsync(object userState) { - if ((this.GetAuthoritativeDomainsOperationCompleted == null)) { + public void GetAuthoritativeDomainsAsync(object userState) + { + if ((this.GetAuthoritativeDomainsOperationCompleted == null)) + { this.GetAuthoritativeDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuthoritativeDomainsOperationCompleted); } this.InvokeAsync("GetAuthoritativeDomains", new object[0], this.GetAuthoritativeDomainsOperationCompleted, userState); } - - private void OnGetAuthoritativeDomainsOperationCompleted(object arg) { - if ((this.GetAuthoritativeDomainsCompleted != null)) { + + private void OnGetAuthoritativeDomainsOperationCompleted(object arg) + { + if ((this.GetAuthoritativeDomainsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetAuthoritativeDomainsCompleted(this, new GetAuthoritativeDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteAuthoritativeDomain", 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 DeleteAuthoritativeDomain(string domain) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteAuthoritativeDomain", 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 DeleteAuthoritativeDomain(string domain) + { this.Invoke("DeleteAuthoritativeDomain", new object[] { domain}); } - + /// - public System.IAsyncResult BeginDeleteAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteAuthoritativeDomain", new object[] { domain}, callback, asyncState); } - + /// - public void EndDeleteAuthoritativeDomain(System.IAsyncResult asyncResult) { + public void EndDeleteAuthoritativeDomain(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteAuthoritativeDomainAsync(string domain) { + public void DeleteAuthoritativeDomainAsync(string domain) + { this.DeleteAuthoritativeDomainAsync(domain, null); } - + /// - public void DeleteAuthoritativeDomainAsync(string domain, object userState) { - if ((this.DeleteAuthoritativeDomainOperationCompleted == null)) { + public void DeleteAuthoritativeDomainAsync(string domain, object userState) + { + if ((this.DeleteAuthoritativeDomainOperationCompleted == null)) + { this.DeleteAuthoritativeDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteAuthoritativeDomainOperationCompleted); } this.InvokeAsync("DeleteAuthoritativeDomain", new object[] { domain}, this.DeleteAuthoritativeDomainOperationCompleted, userState); } - - private void OnDeleteAuthoritativeDomainOperationCompleted(object arg) { - if ((this.DeleteAuthoritativeDomainCompleted != null)) { + + private void OnDeleteAuthoritativeDomainOperationCompleted(object arg) + { + if ((this.DeleteAuthoritativeDomainCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteAuthoritativeDomainCompleted(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/DeleteMailbox", 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 DeleteMailbox(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteMailbox", 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 DeleteMailbox(string accountName) + { this.Invoke("DeleteMailbox", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDeleteMailbox(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteMailbox(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteMailbox", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDeleteMailbox(System.IAsyncResult asyncResult) { + public void EndDeleteMailbox(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteMailboxAsync(string accountName) { + public void DeleteMailboxAsync(string accountName) + { this.DeleteMailboxAsync(accountName, null); } - + /// - public void DeleteMailboxAsync(string accountName, object userState) { - if ((this.DeleteMailboxOperationCompleted == null)) { + public void DeleteMailboxAsync(string accountName, object userState) + { + if ((this.DeleteMailboxOperationCompleted == null)) + { this.DeleteMailboxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteMailboxOperationCompleted); } this.InvokeAsync("DeleteMailbox", new object[] { accountName}, this.DeleteMailboxOperationCompleted, userState); } - - private void OnDeleteMailboxOperationCompleted(object arg) { - if ((this.DeleteMailboxCompleted != null)) { + + private void OnDeleteMailboxOperationCompleted(object arg) + { + if ((this.DeleteMailboxCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteMailboxCompleted(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/DisableMailbox", 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 DisableMailbox(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DisableMailbox", 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 DisableMailbox(string accountName) + { this.Invoke("DisableMailbox", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDisableMailbox(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDisableMailbox(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DisableMailbox", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDisableMailbox(System.IAsyncResult asyncResult) { + public void EndDisableMailbox(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DisableMailboxAsync(string accountName) { + public void DisableMailboxAsync(string accountName) + { this.DisableMailboxAsync(accountName, null); } - + /// - public void DisableMailboxAsync(string accountName, object userState) { - if ((this.DisableMailboxOperationCompleted == null)) { + public void DisableMailboxAsync(string accountName, object userState) + { + if ((this.DisableMailboxOperationCompleted == null)) + { this.DisableMailboxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableMailboxOperationCompleted); } this.InvokeAsync("DisableMailbox", new object[] { accountName}, this.DisableMailboxOperationCompleted, userState); } - - private void OnDisableMailboxOperationCompleted(object arg) { - if ((this.DisableMailboxCompleted != null)) { + + private void OnDisableMailboxOperationCompleted(object arg) + { + if ((this.DisableMailboxCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DisableMailboxCompleted(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/GetMailboxGeneralSettings", 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 ExchangeMailbox GetMailboxGeneralSettings(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxGeneralSettings", 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 ExchangeMailbox GetMailboxGeneralSettings(string accountName) + { object[] results = this.Invoke("GetMailboxGeneralSettings", new object[] { accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMailboxGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMailboxGeneralSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxGeneralSettings(System.IAsyncResult asyncResult) { + public ExchangeMailbox EndGetMailboxGeneralSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxGeneralSettingsAsync(string accountName) { + public void GetMailboxGeneralSettingsAsync(string accountName) + { this.GetMailboxGeneralSettingsAsync(accountName, null); } - + /// - public void GetMailboxGeneralSettingsAsync(string accountName, object userState) { - if ((this.GetMailboxGeneralSettingsOperationCompleted == null)) { + public void GetMailboxGeneralSettingsAsync(string accountName, object userState) + { + if ((this.GetMailboxGeneralSettingsOperationCompleted == null)) + { this.GetMailboxGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxGeneralSettingsOperationCompleted); } this.InvokeAsync("GetMailboxGeneralSettings", new object[] { accountName}, this.GetMailboxGeneralSettingsOperationCompleted, userState); } - - private void OnGetMailboxGeneralSettingsOperationCompleted(object arg) { - if ((this.GetMailboxGeneralSettingsCompleted != null)) { + + private void OnGetMailboxGeneralSettingsOperationCompleted(object arg) + { + if ((this.GetMailboxGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxGeneralSettingsCompleted(this, new GetMailboxGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxGeneralSettings", 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 SetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxGeneralSettings", 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 SetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled) + { this.Invoke("SetMailboxGeneralSettings", new object[] { accountName, hideFromAddressBook, disabled}); } - + /// - public System.IAsyncResult BeginSetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetMailboxGeneralSettings", new object[] { accountName, hideFromAddressBook, disabled}, callback, asyncState); } - + /// - public void EndSetMailboxGeneralSettings(System.IAsyncResult asyncResult) { + public void EndSetMailboxGeneralSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled) { + public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled) + { this.SetMailboxGeneralSettingsAsync(accountName, hideFromAddressBook, disabled, null); } - + /// - public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled, object userState) { - if ((this.SetMailboxGeneralSettingsOperationCompleted == null)) { + public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled, object userState) + { + if ((this.SetMailboxGeneralSettingsOperationCompleted == null)) + { this.SetMailboxGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxGeneralSettingsOperationCompleted); } this.InvokeAsync("SetMailboxGeneralSettings", new object[] { @@ -2102,60 +2366,71 @@ namespace WebsitePanel.Providers.Exchange { hideFromAddressBook, disabled}, this.SetMailboxGeneralSettingsOperationCompleted, userState); } - - private void OnSetMailboxGeneralSettingsOperationCompleted(object arg) { - if ((this.SetMailboxGeneralSettingsCompleted != null)) { + + private void OnSetMailboxGeneralSettingsOperationCompleted(object arg) + { + if ((this.SetMailboxGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxGeneralSettingsCompleted(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/GetMailboxMailFlowSettings", 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 ExchangeMailbox GetMailboxMailFlowSettings(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxMailFlowSettings", 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 ExchangeMailbox GetMailboxMailFlowSettings(string accountName) + { object[] results = this.Invoke("GetMailboxMailFlowSettings", new object[] { accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMailboxMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMailboxMailFlowSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxMailFlowSettings(System.IAsyncResult asyncResult) { + public ExchangeMailbox EndGetMailboxMailFlowSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxMailFlowSettingsAsync(string accountName) { + public void GetMailboxMailFlowSettingsAsync(string accountName) + { this.GetMailboxMailFlowSettingsAsync(accountName, null); } - + /// - public void GetMailboxMailFlowSettingsAsync(string accountName, object userState) { - if ((this.GetMailboxMailFlowSettingsOperationCompleted == null)) { + public void GetMailboxMailFlowSettingsAsync(string accountName, object userState) + { + if ((this.GetMailboxMailFlowSettingsOperationCompleted == null)) + { this.GetMailboxMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetMailboxMailFlowSettings", new object[] { accountName}, this.GetMailboxMailFlowSettingsOperationCompleted, userState); } - - private void OnGetMailboxMailFlowSettingsOperationCompleted(object arg) { - if ((this.GetMailboxMailFlowSettingsCompleted != null)) { + + private void OnGetMailboxMailFlowSettingsOperationCompleted(object arg) + { + if ((this.GetMailboxMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxMailFlowSettingsCompleted(this, new GetMailboxMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxMailFlowSettings", 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 SetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxMailFlowSettings", 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 SetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) + { this.Invoke("SetMailboxMailFlowSettings", new object[] { accountName, enableForwarding, @@ -2166,9 +2441,10 @@ namespace WebsitePanel.Providers.Exchange { rejectAccounts, requireSenderAuthentication}); } - + /// - public System.IAsyncResult BeginSetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetMailboxMailFlowSettings", new object[] { accountName, enableForwarding, @@ -2179,20 +2455,24 @@ namespace WebsitePanel.Providers.Exchange { rejectAccounts, requireSenderAuthentication}, callback, asyncState); } - + /// - public void EndSetMailboxMailFlowSettings(System.IAsyncResult asyncResult) { + public void EndSetMailboxMailFlowSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { + public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) + { this.SetMailboxMailFlowSettingsAsync(accountName, enableForwarding, forwardingAccountName, forwardToBoth, sendOnBehalfAccounts, acceptAccounts, rejectAccounts, requireSenderAuthentication, null); } - + /// - public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) { - if ((this.SetMailboxMailFlowSettingsOperationCompleted == null)) { + public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) + { + if ((this.SetMailboxMailFlowSettingsOperationCompleted == null)) + { this.SetMailboxMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetMailboxMailFlowSettings", new object[] { @@ -2205,79 +2485,90 @@ namespace WebsitePanel.Providers.Exchange { rejectAccounts, requireSenderAuthentication}, this.SetMailboxMailFlowSettingsOperationCompleted, userState); } - - private void OnSetMailboxMailFlowSettingsOperationCompleted(object arg) { - if ((this.SetMailboxMailFlowSettingsCompleted != null)) { + + private void OnSetMailboxMailFlowSettingsOperationCompleted(object arg) + { + if ((this.SetMailboxMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxMailFlowSettingsCompleted(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/GetMailboxAdvancedSettings", 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 ExchangeMailbox GetMailboxAdvancedSettings(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxAdvancedSettings", 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 ExchangeMailbox GetMailboxAdvancedSettings(string accountName) + { object[] results = this.Invoke("GetMailboxAdvancedSettings", new object[] { accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxAdvancedSettings(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMailboxAdvancedSettings(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMailboxAdvancedSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxAdvancedSettings(System.IAsyncResult asyncResult) { + public ExchangeMailbox EndGetMailboxAdvancedSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxAdvancedSettingsAsync(string accountName) { + public void GetMailboxAdvancedSettingsAsync(string accountName) + { this.GetMailboxAdvancedSettingsAsync(accountName, null); } - + /// - public void GetMailboxAdvancedSettingsAsync(string accountName, object userState) { - if ((this.GetMailboxAdvancedSettingsOperationCompleted == null)) { + public void GetMailboxAdvancedSettingsAsync(string accountName, object userState) + { + if ((this.GetMailboxAdvancedSettingsOperationCompleted == null)) + { this.GetMailboxAdvancedSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxAdvancedSettingsOperationCompleted); } this.InvokeAsync("GetMailboxAdvancedSettings", new object[] { accountName}, this.GetMailboxAdvancedSettingsOperationCompleted, userState); } - - private void OnGetMailboxAdvancedSettingsOperationCompleted(object arg) { - if ((this.GetMailboxAdvancedSettingsCompleted != null)) { + + private void OnGetMailboxAdvancedSettingsOperationCompleted(object arg) + { + if ((this.GetMailboxAdvancedSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxAdvancedSettingsCompleted(this, new GetMailboxAdvancedSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxAdvancedSettings", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxAdvancedSettings", 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 SetMailboxAdvancedSettings( - string organizationId, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - string litigationHoldUrl, - string litigationHoldMsg) { + string organizationId, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + string litigationHoldUrl, + string litigationHoldMsg) + { this.Invoke("SetMailboxAdvancedSettings", new object[] { organizationId, accountName, @@ -2299,30 +2590,31 @@ namespace WebsitePanel.Providers.Exchange { litigationHoldUrl, litigationHoldMsg}); } - + /// public System.IAsyncResult BeginSetMailboxAdvancedSettings( - string organizationId, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - string litigationHoldUrl, - string litigationHoldMsg, - System.AsyncCallback callback, - object asyncState) { + string organizationId, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + string litigationHoldUrl, + string litigationHoldMsg, + System.AsyncCallback callback, + object asyncState) + { return this.BeginInvoke("SetMailboxAdvancedSettings", new object[] { organizationId, accountName, @@ -2344,59 +2636,63 @@ namespace WebsitePanel.Providers.Exchange { litigationHoldUrl, litigationHoldMsg}, callback, asyncState); } - + /// - public void EndSetMailboxAdvancedSettings(System.IAsyncResult asyncResult) { + public void EndSetMailboxAdvancedSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// public void SetMailboxAdvancedSettingsAsync( - string organizationId, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - string litigationHoldUrl, - string litigationHoldMsg) { + string organizationId, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + string litigationHoldUrl, + string litigationHoldMsg) + { this.SetMailboxAdvancedSettingsAsync(organizationId, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, litigationHoldUrl, litigationHoldMsg, null); } - + /// public void SetMailboxAdvancedSettingsAsync( - string organizationId, - string accountName, - bool enablePOP, - bool enableIMAP, - bool enableOWA, - bool enableMAPI, - bool enableActiveSync, - long issueWarningKB, - long prohibitSendKB, - long prohibitSendReceiveKB, - int keepDeletedItemsDays, - int maxRecipients, - int maxSendMessageSizeKB, - int maxReceiveMessageSizeKB, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - string litigationHoldUrl, - string litigationHoldMsg, - object userState) { - if ((this.SetMailboxAdvancedSettingsOperationCompleted == null)) { + string organizationId, + string accountName, + bool enablePOP, + bool enableIMAP, + bool enableOWA, + bool enableMAPI, + bool enableActiveSync, + long issueWarningKB, + long prohibitSendKB, + long prohibitSendReceiveKB, + int keepDeletedItemsDays, + int maxRecipients, + int maxSendMessageSizeKB, + int maxReceiveMessageSizeKB, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + string litigationHoldUrl, + string litigationHoldMsg, + object userState) + { + if ((this.SetMailboxAdvancedSettingsOperationCompleted == null)) + { this.SetMailboxAdvancedSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxAdvancedSettingsOperationCompleted); } this.InvokeAsync("SetMailboxAdvancedSettings", new object[] { @@ -2420,175 +2716,207 @@ namespace WebsitePanel.Providers.Exchange { litigationHoldUrl, litigationHoldMsg}, this.SetMailboxAdvancedSettingsOperationCompleted, userState); } - - private void OnSetMailboxAdvancedSettingsOperationCompleted(object arg) { - if ((this.SetMailboxAdvancedSettingsCompleted != null)) { + + private void OnSetMailboxAdvancedSettingsOperationCompleted(object arg) + { + if ((this.SetMailboxAdvancedSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxAdvancedSettingsCompleted(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/GetMailboxEmailAddresses", 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 ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxEmailAddresses", 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 ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName) + { object[] results = this.Invoke("GetMailboxEmailAddresses", new object[] { accountName}); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMailboxEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMailboxEmailAddresses", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeEmailAddress[] EndGetMailboxEmailAddresses(System.IAsyncResult asyncResult) { + public ExchangeEmailAddress[] EndGetMailboxEmailAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public void GetMailboxEmailAddressesAsync(string accountName) { + public void GetMailboxEmailAddressesAsync(string accountName) + { this.GetMailboxEmailAddressesAsync(accountName, null); } - + /// - public void GetMailboxEmailAddressesAsync(string accountName, object userState) { - if ((this.GetMailboxEmailAddressesOperationCompleted == null)) { + public void GetMailboxEmailAddressesAsync(string accountName, object userState) + { + if ((this.GetMailboxEmailAddressesOperationCompleted == null)) + { this.GetMailboxEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxEmailAddressesOperationCompleted); } this.InvokeAsync("GetMailboxEmailAddresses", new object[] { accountName}, this.GetMailboxEmailAddressesOperationCompleted, userState); } - - private void OnGetMailboxEmailAddressesOperationCompleted(object arg) { - if ((this.GetMailboxEmailAddressesCompleted != null)) { + + private void OnGetMailboxEmailAddressesOperationCompleted(object arg) + { + if ((this.GetMailboxEmailAddressesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxEmailAddressesCompleted(this, new GetMailboxEmailAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxEmailAddresses", 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 SetMailboxEmailAddresses(string accountName, string[] emailAddresses) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxEmailAddresses", 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 SetMailboxEmailAddresses(string accountName, string[] emailAddresses) + { this.Invoke("SetMailboxEmailAddresses", new object[] { accountName, emailAddresses}); } - + /// - public System.IAsyncResult BeginSetMailboxEmailAddresses(string accountName, string[] emailAddresses, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetMailboxEmailAddresses(string accountName, string[] emailAddresses, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetMailboxEmailAddresses", new object[] { accountName, emailAddresses}, callback, asyncState); } - + /// - public void EndSetMailboxEmailAddresses(System.IAsyncResult asyncResult) { + public void EndSetMailboxEmailAddresses(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses) { + public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses) + { this.SetMailboxEmailAddressesAsync(accountName, emailAddresses, null); } - + /// - public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses, object userState) { - if ((this.SetMailboxEmailAddressesOperationCompleted == null)) { + public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses, object userState) + { + if ((this.SetMailboxEmailAddressesOperationCompleted == null)) + { this.SetMailboxEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxEmailAddressesOperationCompleted); } this.InvokeAsync("SetMailboxEmailAddresses", new object[] { accountName, emailAddresses}, this.SetMailboxEmailAddressesOperationCompleted, userState); } - - private void OnSetMailboxEmailAddressesOperationCompleted(object arg) { - if ((this.SetMailboxEmailAddressesCompleted != null)) { + + private void OnSetMailboxEmailAddressesOperationCompleted(object arg) + { + if ((this.SetMailboxEmailAddressesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxEmailAddressesCompleted(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/SetMailboxPrimaryEmailAddress", 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 SetMailboxPrimaryEmailAddress(string accountName, string emailAddress) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxPrimaryEmailAddress", 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 SetMailboxPrimaryEmailAddress(string accountName, string emailAddress) + { this.Invoke("SetMailboxPrimaryEmailAddress", new object[] { accountName, emailAddress}); } - + /// - public System.IAsyncResult BeginSetMailboxPrimaryEmailAddress(string accountName, string emailAddress, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetMailboxPrimaryEmailAddress(string accountName, string emailAddress, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetMailboxPrimaryEmailAddress", new object[] { accountName, emailAddress}, callback, asyncState); } - + /// - public void EndSetMailboxPrimaryEmailAddress(System.IAsyncResult asyncResult) { + public void EndSetMailboxPrimaryEmailAddress(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress) { + public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress) + { this.SetMailboxPrimaryEmailAddressAsync(accountName, emailAddress, null); } - + /// - public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress, object userState) { - if ((this.SetMailboxPrimaryEmailAddressOperationCompleted == null)) { + public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress, object userState) + { + if ((this.SetMailboxPrimaryEmailAddressOperationCompleted == null)) + { this.SetMailboxPrimaryEmailAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxPrimaryEmailAddressOperationCompleted); } this.InvokeAsync("SetMailboxPrimaryEmailAddress", new object[] { accountName, emailAddress}, this.SetMailboxPrimaryEmailAddressOperationCompleted, userState); } - - private void OnSetMailboxPrimaryEmailAddressOperationCompleted(object arg) { - if ((this.SetMailboxPrimaryEmailAddressCompleted != null)) { + + private void OnSetMailboxPrimaryEmailAddressOperationCompleted(object arg) + { + if ((this.SetMailboxPrimaryEmailAddressCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxPrimaryEmailAddressCompleted(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/SetMailboxPermissions", 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 SetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxPermissions", 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 SetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) + { this.Invoke("SetMailboxPermissions", new object[] { organizationId, accountName, sendAsAccounts, fullAccessAccounts}); } - + /// - public System.IAsyncResult BeginSetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetMailboxPermissions", new object[] { organizationId, accountName, sendAsAccounts, fullAccessAccounts}, callback, asyncState); } - + /// - public void EndSetMailboxPermissions(System.IAsyncResult asyncResult) { + public void EndSetMailboxPermissions(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) { + public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) + { this.SetMailboxPermissionsAsync(organizationId, accountName, sendAsAccounts, fullAccessAccounts, null); } - + /// - public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, object userState) { - if ((this.SetMailboxPermissionsOperationCompleted == null)) { + public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, object userState) + { + if ((this.SetMailboxPermissionsOperationCompleted == null)) + { this.SetMailboxPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxPermissionsOperationCompleted); } this.InvokeAsync("SetMailboxPermissions", new object[] { @@ -2597,105 +2925,124 @@ namespace WebsitePanel.Providers.Exchange { sendAsAccounts, fullAccessAccounts}, this.SetMailboxPermissionsOperationCompleted, userState); } - - private void OnSetMailboxPermissionsOperationCompleted(object arg) { - if ((this.SetMailboxPermissionsCompleted != null)) { + + private void OnSetMailboxPermissionsOperationCompleted(object arg) + { + if ((this.SetMailboxPermissionsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxPermissionsCompleted(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/GetMailboxPermissions", 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 ExchangeMailbox GetMailboxPermissions(string organizationId, string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxPermissions", 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 ExchangeMailbox GetMailboxPermissions(string organizationId, string accountName) + { object[] results = this.Invoke("GetMailboxPermissions", new object[] { organizationId, accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMailboxPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMailboxPermissions", new object[] { organizationId, accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxPermissions(System.IAsyncResult asyncResult) { + public ExchangeMailbox EndGetMailboxPermissions(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxPermissionsAsync(string organizationId, string accountName) { + public void GetMailboxPermissionsAsync(string organizationId, string accountName) + { this.GetMailboxPermissionsAsync(organizationId, accountName, null); } - + /// - public void GetMailboxPermissionsAsync(string organizationId, string accountName, object userState) { - if ((this.GetMailboxPermissionsOperationCompleted == null)) { + public void GetMailboxPermissionsAsync(string organizationId, string accountName, object userState) + { + if ((this.GetMailboxPermissionsOperationCompleted == null)) + { this.GetMailboxPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxPermissionsOperationCompleted); } this.InvokeAsync("GetMailboxPermissions", new object[] { organizationId, accountName}, this.GetMailboxPermissionsOperationCompleted, userState); } - - private void OnGetMailboxPermissionsOperationCompleted(object arg) { - if ((this.GetMailboxPermissionsCompleted != null)) { + + private void OnGetMailboxPermissionsOperationCompleted(object arg) + { + if ((this.GetMailboxPermissionsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxPermissionsCompleted(this, new GetMailboxPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxStatistics", 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 ExchangeMailboxStatistics GetMailboxStatistics(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxStatistics", 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 ExchangeMailboxStatistics GetMailboxStatistics(string accountName) + { object[] results = this.Invoke("GetMailboxStatistics", new object[] { accountName}); return ((ExchangeMailboxStatistics)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxStatistics(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetMailboxStatistics(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetMailboxStatistics", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailboxStatistics EndGetMailboxStatistics(System.IAsyncResult asyncResult) { + public ExchangeMailboxStatistics EndGetMailboxStatistics(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailboxStatistics)(results[0])); } - + /// - public void GetMailboxStatisticsAsync(string accountName) { + public void GetMailboxStatisticsAsync(string accountName) + { this.GetMailboxStatisticsAsync(accountName, null); } - + /// - public void GetMailboxStatisticsAsync(string accountName, object userState) { - if ((this.GetMailboxStatisticsOperationCompleted == null)) { + public void GetMailboxStatisticsAsync(string accountName, object userState) + { + if ((this.GetMailboxStatisticsOperationCompleted == null)) + { this.GetMailboxStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxStatisticsOperationCompleted); } this.InvokeAsync("GetMailboxStatistics", new object[] { accountName}, this.GetMailboxStatisticsOperationCompleted, userState); } - - private void OnGetMailboxStatisticsOperationCompleted(object arg) { - if ((this.GetMailboxStatisticsCompleted != null)) { + + private void OnGetMailboxStatisticsOperationCompleted(object arg) + { + if ((this.GetMailboxStatisticsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxStatisticsCompleted(this, new GetMailboxStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateContact", 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 CreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateContact", 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 CreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) + { this.Invoke("CreateContact", new object[] { organizationId, organizationDistinguishedName, @@ -2704,9 +3051,10 @@ namespace WebsitePanel.Providers.Exchange { contactEmail, defaultOrganizationDomain}); } - + /// - public System.IAsyncResult BeginCreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateContact", new object[] { organizationId, organizationDistinguishedName, @@ -2715,20 +3063,24 @@ namespace WebsitePanel.Providers.Exchange { contactEmail, defaultOrganizationDomain}, callback, asyncState); } - + /// - public void EndCreateContact(System.IAsyncResult asyncResult) { + public void EndCreateContact(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) { + public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) + { this.CreateContactAsync(organizationId, organizationDistinguishedName, contactDisplayName, contactAccountName, contactEmail, defaultOrganizationDomain, null); } - + /// - public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, object userState) { - if ((this.CreateContactOperationCompleted == null)) { + public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, object userState) + { + if ((this.CreateContactOperationCompleted == null)) + { this.CreateContactOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateContactOperationCompleted); } this.InvokeAsync("CreateContact", new object[] { @@ -2739,126 +3091,145 @@ namespace WebsitePanel.Providers.Exchange { contactEmail, defaultOrganizationDomain}, this.CreateContactOperationCompleted, userState); } - - private void OnCreateContactOperationCompleted(object arg) { - if ((this.CreateContactCompleted != null)) { + + private void OnCreateContactOperationCompleted(object arg) + { + if ((this.CreateContactCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateContactCompleted(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/DeleteContact", 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 DeleteContact(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteContact", 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 DeleteContact(string accountName) + { this.Invoke("DeleteContact", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDeleteContact(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteContact(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteContact", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDeleteContact(System.IAsyncResult asyncResult) { + public void EndDeleteContact(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteContactAsync(string accountName) { + public void DeleteContactAsync(string accountName) + { this.DeleteContactAsync(accountName, null); } - + /// - public void DeleteContactAsync(string accountName, object userState) { - if ((this.DeleteContactOperationCompleted == null)) { + public void DeleteContactAsync(string accountName, object userState) + { + if ((this.DeleteContactOperationCompleted == null)) + { this.DeleteContactOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteContactOperationCompleted); } this.InvokeAsync("DeleteContact", new object[] { accountName}, this.DeleteContactOperationCompleted, userState); } - - private void OnDeleteContactOperationCompleted(object arg) { - if ((this.DeleteContactCompleted != null)) { + + private void OnDeleteContactOperationCompleted(object arg) + { + if ((this.DeleteContactCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteContactCompleted(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/GetContactGeneralSettings", 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 ExchangeContact GetContactGeneralSettings(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetContactGeneralSettings", 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 ExchangeContact GetContactGeneralSettings(string accountName) + { object[] results = this.Invoke("GetContactGeneralSettings", new object[] { accountName}); return ((ExchangeContact)(results[0])); } - + /// - public System.IAsyncResult BeginGetContactGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetContactGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetContactGeneralSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeContact EndGetContactGeneralSettings(System.IAsyncResult asyncResult) { + public ExchangeContact EndGetContactGeneralSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeContact)(results[0])); } - + /// - public void GetContactGeneralSettingsAsync(string accountName) { + public void GetContactGeneralSettingsAsync(string accountName) + { this.GetContactGeneralSettingsAsync(accountName, null); } - + /// - public void GetContactGeneralSettingsAsync(string accountName, object userState) { - if ((this.GetContactGeneralSettingsOperationCompleted == null)) { + public void GetContactGeneralSettingsAsync(string accountName, object userState) + { + if ((this.GetContactGeneralSettingsOperationCompleted == null)) + { this.GetContactGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetContactGeneralSettingsOperationCompleted); } this.InvokeAsync("GetContactGeneralSettings", new object[] { accountName}, this.GetContactGeneralSettingsOperationCompleted, userState); } - - private void OnGetContactGeneralSettingsOperationCompleted(object arg) { - if ((this.GetContactGeneralSettingsCompleted != null)) { + + private void OnGetContactGeneralSettingsOperationCompleted(object arg) + { + if ((this.GetContactGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetContactGeneralSettingsCompleted(this, new GetContactGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactGeneralSettings", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactGeneralSettings", 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 SetContactGeneralSettings( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain) { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain) + { this.Invoke("SetContactGeneralSettings", new object[] { accountName, displayName, @@ -2887,37 +3258,38 @@ namespace WebsitePanel.Providers.Exchange { useMapiRichTextFormat, defaultDomain}); } - + /// public System.IAsyncResult BeginSetContactGeneralSettings( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain, - System.AsyncCallback callback, - object asyncState) { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain, + System.AsyncCallback callback, + object asyncState) + { return this.BeginInvoke("SetContactGeneralSettings", new object[] { accountName, displayName, @@ -2946,73 +3318,77 @@ namespace WebsitePanel.Providers.Exchange { useMapiRichTextFormat, defaultDomain}, callback, asyncState); } - + /// - public void EndSetContactGeneralSettings(System.IAsyncResult asyncResult) { + public void EndSetContactGeneralSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// public void SetContactGeneralSettingsAsync( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain) { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain) + { this.SetContactGeneralSettingsAsync(accountName, displayName, email, hideFromAddressBook, firstName, initials, lastName, address, city, state, zip, country, jobTitle, company, department, office, managerAccountName, businessPhone, fax, homePhone, mobilePhone, pager, webPage, notes, useMapiRichTextFormat, defaultDomain, null); } - + /// public void SetContactGeneralSettingsAsync( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain, - object userState) { - if ((this.SetContactGeneralSettingsOperationCompleted == null)) { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain, + object userState) + { + if ((this.SetContactGeneralSettingsOperationCompleted == null)) + { this.SetContactGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetContactGeneralSettingsOperationCompleted); } this.InvokeAsync("SetContactGeneralSettings", new object[] { @@ -3043,89 +3419,105 @@ namespace WebsitePanel.Providers.Exchange { useMapiRichTextFormat, defaultDomain}, this.SetContactGeneralSettingsOperationCompleted, userState); } - - private void OnSetContactGeneralSettingsOperationCompleted(object arg) { - if ((this.SetContactGeneralSettingsCompleted != null)) { + + private void OnSetContactGeneralSettingsOperationCompleted(object arg) + { + if ((this.SetContactGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetContactGeneralSettingsCompleted(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/GetContactMailFlowSettings", 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 ExchangeContact GetContactMailFlowSettings(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetContactMailFlowSettings", 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 ExchangeContact GetContactMailFlowSettings(string accountName) + { object[] results = this.Invoke("GetContactMailFlowSettings", new object[] { accountName}); return ((ExchangeContact)(results[0])); } - + /// - public System.IAsyncResult BeginGetContactMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetContactMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetContactMailFlowSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeContact EndGetContactMailFlowSettings(System.IAsyncResult asyncResult) { + public ExchangeContact EndGetContactMailFlowSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeContact)(results[0])); } - + /// - public void GetContactMailFlowSettingsAsync(string accountName) { + public void GetContactMailFlowSettingsAsync(string accountName) + { this.GetContactMailFlowSettingsAsync(accountName, null); } - + /// - public void GetContactMailFlowSettingsAsync(string accountName, object userState) { - if ((this.GetContactMailFlowSettingsOperationCompleted == null)) { + public void GetContactMailFlowSettingsAsync(string accountName, object userState) + { + if ((this.GetContactMailFlowSettingsOperationCompleted == null)) + { this.GetContactMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetContactMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetContactMailFlowSettings", new object[] { accountName}, this.GetContactMailFlowSettingsOperationCompleted, userState); } - - private void OnGetContactMailFlowSettingsOperationCompleted(object arg) { - if ((this.GetContactMailFlowSettingsCompleted != null)) { + + private void OnGetContactMailFlowSettingsOperationCompleted(object arg) + { + if ((this.GetContactMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetContactMailFlowSettingsCompleted(this, new GetContactMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactMailFlowSettings", 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 SetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactMailFlowSettings", 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 SetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) + { this.Invoke("SetContactMailFlowSettings", new object[] { accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication}); } - + /// - public System.IAsyncResult BeginSetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetContactMailFlowSettings", new object[] { accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication}, callback, asyncState); } - + /// - public void EndSetContactMailFlowSettings(System.IAsyncResult asyncResult) { + public void EndSetContactMailFlowSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { + public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) + { this.SetContactMailFlowSettingsAsync(accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication, null); } - + /// - public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) { - if ((this.SetContactMailFlowSettingsOperationCompleted == null)) { + public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) + { + if ((this.SetContactMailFlowSettingsOperationCompleted == null)) + { this.SetContactMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetContactMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetContactMailFlowSettings", new object[] { @@ -3134,18 +3526,21 @@ namespace WebsitePanel.Providers.Exchange { rejectAccounts, requireSenderAuthentication}, this.SetContactMailFlowSettingsOperationCompleted, userState); } - - private void OnSetContactMailFlowSettingsOperationCompleted(object arg) { - if ((this.SetContactMailFlowSettingsCompleted != null)) { + + private void OnSetContactMailFlowSettingsOperationCompleted(object arg) + { + if ((this.SetContactMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetContactMailFlowSettingsCompleted(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/CreateDistributionList", 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 CreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateDistributionList", 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 CreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) + { this.Invoke("CreateDistributionList", new object[] { organizationId, organizationDistinguishedName, @@ -3156,9 +3551,10 @@ namespace WebsitePanel.Providers.Exchange { managedBy, addressLists}); } - + /// - public System.IAsyncResult BeginCreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateDistributionList", new object[] { organizationId, organizationDistinguishedName, @@ -3169,20 +3565,24 @@ namespace WebsitePanel.Providers.Exchange { managedBy, addressLists}, callback, asyncState); } - + /// - public void EndCreateDistributionList(System.IAsyncResult asyncResult) { + public void EndCreateDistributionList(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) { + public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) + { this.CreateDistributionListAsync(organizationId, organizationDistinguishedName, displayName, accountName, name, domain, managedBy, addressLists, null); } - + /// - public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, object userState) { - if ((this.CreateDistributionListOperationCompleted == null)) { + public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, object userState) + { + if ((this.CreateDistributionListOperationCompleted == null)) + { this.CreateDistributionListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDistributionListOperationCompleted); } this.InvokeAsync("CreateDistributionList", new object[] { @@ -3195,100 +3595,119 @@ namespace WebsitePanel.Providers.Exchange { managedBy, addressLists}, this.CreateDistributionListOperationCompleted, userState); } - - private void OnCreateDistributionListOperationCompleted(object arg) { - if ((this.CreateDistributionListCompleted != null)) { + + private void OnCreateDistributionListOperationCompleted(object arg) + { + if ((this.CreateDistributionListCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateDistributionListCompleted(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/DeleteDistributionList", 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 DeleteDistributionList(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDistributionList", 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 DeleteDistributionList(string accountName) + { this.Invoke("DeleteDistributionList", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDeleteDistributionList(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteDistributionList(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteDistributionList", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDeleteDistributionList(System.IAsyncResult asyncResult) { + public void EndDeleteDistributionList(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteDistributionListAsync(string accountName) { + public void DeleteDistributionListAsync(string accountName) + { this.DeleteDistributionListAsync(accountName, null); } - + /// - public void DeleteDistributionListAsync(string accountName, object userState) { - if ((this.DeleteDistributionListOperationCompleted == null)) { + public void DeleteDistributionListAsync(string accountName, object userState) + { + if ((this.DeleteDistributionListOperationCompleted == null)) + { this.DeleteDistributionListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDistributionListOperationCompleted); } this.InvokeAsync("DeleteDistributionList", new object[] { accountName}, this.DeleteDistributionListOperationCompleted, userState); } - - private void OnDeleteDistributionListOperationCompleted(object arg) { - if ((this.DeleteDistributionListCompleted != null)) { + + private void OnDeleteDistributionListOperationCompleted(object arg) + { + if ((this.DeleteDistributionListCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDistributionListCompleted(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/GetDistributionListGeneralSettings", 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 ExchangeDistributionList GetDistributionListGeneralSettings(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListGeneralSettings", 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 ExchangeDistributionList GetDistributionListGeneralSettings(string accountName) + { object[] results = this.Invoke("GetDistributionListGeneralSettings", new object[] { accountName}); return ((ExchangeDistributionList)(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDistributionListGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDistributionListGeneralSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeDistributionList EndGetDistributionListGeneralSettings(System.IAsyncResult asyncResult) { + public ExchangeDistributionList EndGetDistributionListGeneralSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeDistributionList)(results[0])); } - + /// - public void GetDistributionListGeneralSettingsAsync(string accountName) { + public void GetDistributionListGeneralSettingsAsync(string accountName) + { this.GetDistributionListGeneralSettingsAsync(accountName, null); } - + /// - public void GetDistributionListGeneralSettingsAsync(string accountName, object userState) { - if ((this.GetDistributionListGeneralSettingsOperationCompleted == null)) { + public void GetDistributionListGeneralSettingsAsync(string accountName, object userState) + { + if ((this.GetDistributionListGeneralSettingsOperationCompleted == null)) + { this.GetDistributionListGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListGeneralSettingsOperationCompleted); } this.InvokeAsync("GetDistributionListGeneralSettings", new object[] { accountName}, this.GetDistributionListGeneralSettingsOperationCompleted, userState); } - - private void OnGetDistributionListGeneralSettingsOperationCompleted(object arg) { - if ((this.GetDistributionListGeneralSettingsCompleted != null)) { + + private void OnGetDistributionListGeneralSettingsOperationCompleted(object arg) + { + if ((this.GetDistributionListGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListGeneralSettingsCompleted(this, new GetDistributionListGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListGeneralSettings", 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 SetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListGeneralSettings", 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 SetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) + { this.Invoke("SetDistributionListGeneralSettings", new object[] { accountName, displayName, @@ -3298,9 +3717,10 @@ namespace WebsitePanel.Providers.Exchange { notes, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetDistributionListGeneralSettings", new object[] { accountName, displayName, @@ -3310,20 +3730,24 @@ namespace WebsitePanel.Providers.Exchange { notes, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListGeneralSettings(System.IAsyncResult asyncResult) { + public void EndSetDistributionListGeneralSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) { + public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) + { this.SetDistributionListGeneralSettingsAsync(accountName, displayName, hideFromAddressBook, managedBy, members, notes, addressLists, null); } - + /// - public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, object userState) { - if ((this.SetDistributionListGeneralSettingsOperationCompleted == null)) { + public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, object userState) + { + if ((this.SetDistributionListGeneralSettingsOperationCompleted == null)) + { this.SetDistributionListGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListGeneralSettingsOperationCompleted); } this.InvokeAsync("SetDistributionListGeneralSettings", new object[] { @@ -3335,60 +3759,71 @@ namespace WebsitePanel.Providers.Exchange { notes, addressLists}, this.SetDistributionListGeneralSettingsOperationCompleted, userState); } - - private void OnSetDistributionListGeneralSettingsOperationCompleted(object arg) { - if ((this.SetDistributionListGeneralSettingsCompleted != null)) { + + private void OnSetDistributionListGeneralSettingsOperationCompleted(object arg) + { + if ((this.SetDistributionListGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListGeneralSettingsCompleted(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/GetDistributionListMailFlowSettings", 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 ExchangeDistributionList GetDistributionListMailFlowSettings(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListMailFlowSettings", 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 ExchangeDistributionList GetDistributionListMailFlowSettings(string accountName) + { object[] results = this.Invoke("GetDistributionListMailFlowSettings", new object[] { accountName}); return ((ExchangeDistributionList)(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDistributionListMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDistributionListMailFlowSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeDistributionList EndGetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) { + public ExchangeDistributionList EndGetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeDistributionList)(results[0])); } - + /// - public void GetDistributionListMailFlowSettingsAsync(string accountName) { + public void GetDistributionListMailFlowSettingsAsync(string accountName) + { this.GetDistributionListMailFlowSettingsAsync(accountName, null); } - + /// - public void GetDistributionListMailFlowSettingsAsync(string accountName, object userState) { - if ((this.GetDistributionListMailFlowSettingsOperationCompleted == null)) { + public void GetDistributionListMailFlowSettingsAsync(string accountName, object userState) + { + if ((this.GetDistributionListMailFlowSettingsOperationCompleted == null)) + { this.GetDistributionListMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetDistributionListMailFlowSettings", new object[] { accountName}, this.GetDistributionListMailFlowSettingsOperationCompleted, userState); } - - private void OnGetDistributionListMailFlowSettingsOperationCompleted(object arg) { - if ((this.GetDistributionListMailFlowSettingsCompleted != null)) { + + private void OnGetDistributionListMailFlowSettingsOperationCompleted(object arg) + { + if ((this.GetDistributionListMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListMailFlowSettingsCompleted(this, new GetDistributionListMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListMailFlowSettings", 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 SetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListMailFlowSettings", 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 SetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) + { this.Invoke("SetDistributionListMailFlowSettings", new object[] { accountName, acceptAccounts, @@ -3396,9 +3831,10 @@ namespace WebsitePanel.Providers.Exchange { requireSenderAuthentication, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetDistributionListMailFlowSettings", new object[] { accountName, acceptAccounts, @@ -3406,20 +3842,24 @@ namespace WebsitePanel.Providers.Exchange { requireSenderAuthentication, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) { + public void EndSetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) { + public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) + { this.SetDistributionListMailFlowSettingsAsync(accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication, addressLists, null); } - + /// - public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, object userState) { - if ((this.SetDistributionListMailFlowSettingsOperationCompleted == null)) { + public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, object userState) + { + if ((this.SetDistributionListMailFlowSettingsOperationCompleted == null)) + { this.SetDistributionListMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetDistributionListMailFlowSettings", new object[] { @@ -3429,87 +3869,103 @@ namespace WebsitePanel.Providers.Exchange { requireSenderAuthentication, addressLists}, this.SetDistributionListMailFlowSettingsOperationCompleted, userState); } - - private void OnSetDistributionListMailFlowSettingsOperationCompleted(object arg) { - if ((this.SetDistributionListMailFlowSettingsCompleted != null)) { + + private void OnSetDistributionListMailFlowSettingsOperationCompleted(object arg) + { + if ((this.SetDistributionListMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListMailFlowSettingsCompleted(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/GetDistributionListEmailAddresses", 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 ExchangeEmailAddress[] GetDistributionListEmailAddresses(string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListEmailAddresses", 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 ExchangeEmailAddress[] GetDistributionListEmailAddresses(string accountName) + { object[] results = this.Invoke("GetDistributionListEmailAddresses", new object[] { accountName}); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDistributionListEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDistributionListEmailAddresses", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeEmailAddress[] EndGetDistributionListEmailAddresses(System.IAsyncResult asyncResult) { + public ExchangeEmailAddress[] EndGetDistributionListEmailAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public void GetDistributionListEmailAddressesAsync(string accountName) { + public void GetDistributionListEmailAddressesAsync(string accountName) + { this.GetDistributionListEmailAddressesAsync(accountName, null); } - + /// - public void GetDistributionListEmailAddressesAsync(string accountName, object userState) { - if ((this.GetDistributionListEmailAddressesOperationCompleted == null)) { + public void GetDistributionListEmailAddressesAsync(string accountName, object userState) + { + if ((this.GetDistributionListEmailAddressesOperationCompleted == null)) + { this.GetDistributionListEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListEmailAddressesOperationCompleted); } this.InvokeAsync("GetDistributionListEmailAddresses", new object[] { accountName}, this.GetDistributionListEmailAddressesOperationCompleted, userState); } - - private void OnGetDistributionListEmailAddressesOperationCompleted(object arg) { - if ((this.GetDistributionListEmailAddressesCompleted != null)) { + + private void OnGetDistributionListEmailAddressesOperationCompleted(object arg) + { + if ((this.GetDistributionListEmailAddressesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListEmailAddressesCompleted(this, new GetDistributionListEmailAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListEmailAddresses", 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 SetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListEmailAddresses", 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 SetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists) + { this.Invoke("SetDistributionListEmailAddresses", new object[] { accountName, emailAddresses, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetDistributionListEmailAddresses", new object[] { accountName, emailAddresses, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListEmailAddresses(System.IAsyncResult asyncResult) { + public void EndSetDistributionListEmailAddresses(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists) { + public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists) + { this.SetDistributionListEmailAddressesAsync(accountName, emailAddresses, addressLists, null); } - + /// - public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists, object userState) { - if ((this.SetDistributionListEmailAddressesOperationCompleted == null)) { + public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists, object userState) + { + if ((this.SetDistributionListEmailAddressesOperationCompleted == null)) + { this.SetDistributionListEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListEmailAddressesOperationCompleted); } this.InvokeAsync("SetDistributionListEmailAddresses", new object[] { @@ -3517,45 +3973,53 @@ namespace WebsitePanel.Providers.Exchange { emailAddresses, addressLists}, this.SetDistributionListEmailAddressesOperationCompleted, userState); } - - private void OnSetDistributionListEmailAddressesOperationCompleted(object arg) { - if ((this.SetDistributionListEmailAddressesCompleted != null)) { + + private void OnSetDistributionListEmailAddressesOperationCompleted(object arg) + { + if ((this.SetDistributionListEmailAddressesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListEmailAddressesCompleted(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/SetDistributionListPrimaryEmailAddress", 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 SetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListPrimaryEmailAddress", 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 SetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists) + { this.Invoke("SetDistributionListPrimaryEmailAddress", new object[] { accountName, emailAddress, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetDistributionListPrimaryEmailAddress", new object[] { accountName, emailAddress, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListPrimaryEmailAddress(System.IAsyncResult asyncResult) { + public void EndSetDistributionListPrimaryEmailAddress(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists) { + public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists) + { this.SetDistributionListPrimaryEmailAddressAsync(accountName, emailAddress, addressLists, null); } - + /// - public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists, object userState) { - if ((this.SetDistributionListPrimaryEmailAddressOperationCompleted == null)) { + public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists, object userState) + { + if ((this.SetDistributionListPrimaryEmailAddressOperationCompleted == null)) + { this.SetDistributionListPrimaryEmailAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListPrimaryEmailAddressOperationCompleted); } this.InvokeAsync("SetDistributionListPrimaryEmailAddress", new object[] { @@ -3563,18 +4027,21 @@ namespace WebsitePanel.Providers.Exchange { emailAddress, addressLists}, this.SetDistributionListPrimaryEmailAddressOperationCompleted, userState); } - - private void OnSetDistributionListPrimaryEmailAddressOperationCompleted(object arg) { - if ((this.SetDistributionListPrimaryEmailAddressCompleted != null)) { + + private void OnSetDistributionListPrimaryEmailAddressOperationCompleted(object arg) + { + if ((this.SetDistributionListPrimaryEmailAddressCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListPrimaryEmailAddressCompleted(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/SetDistributionListPermissions", 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 SetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListPermissions", 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 SetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) + { this.Invoke("SetDistributionListPermissions", new object[] { organizationId, accountName, @@ -3582,9 +4049,10 @@ namespace WebsitePanel.Providers.Exchange { sendOnBehalfAccounts, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetDistributionListPermissions", new object[] { organizationId, accountName, @@ -3592,20 +4060,24 @@ namespace WebsitePanel.Providers.Exchange { sendOnBehalfAccounts, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListPermissions(System.IAsyncResult asyncResult) { + public void EndSetDistributionListPermissions(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) { + public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) + { this.SetDistributionListPermissionsAsync(organizationId, accountName, sendAsAccounts, sendOnBehalfAccounts, addressLists, null); } - + /// - public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, object userState) { - if ((this.SetDistributionListPermissionsOperationCompleted == null)) { + public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, object userState) + { + if ((this.SetDistributionListPermissionsOperationCompleted == null)) + { this.SetDistributionListPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListPermissionsOperationCompleted); } this.InvokeAsync("SetDistributionListPermissions", new object[] { @@ -3615,240 +4087,283 @@ namespace WebsitePanel.Providers.Exchange { sendOnBehalfAccounts, addressLists}, this.SetDistributionListPermissionsOperationCompleted, userState); } - - private void OnSetDistributionListPermissionsOperationCompleted(object arg) { - if ((this.SetDistributionListPermissionsCompleted != null)) { + + private void OnSetDistributionListPermissionsOperationCompleted(object arg) + { + if ((this.SetDistributionListPermissionsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListPermissionsCompleted(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/GetDistributionListPermissions", 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 ExchangeDistributionList GetDistributionListPermissions(string organizationId, string accountName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListPermissions", 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 ExchangeDistributionList GetDistributionListPermissions(string organizationId, string accountName) + { object[] results = this.Invoke("GetDistributionListPermissions", new object[] { organizationId, accountName}); return ((ExchangeDistributionList)(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDistributionListPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDistributionListPermissions", new object[] { organizationId, accountName}, callback, asyncState); } - + /// - public ExchangeDistributionList EndGetDistributionListPermissions(System.IAsyncResult asyncResult) { + public ExchangeDistributionList EndGetDistributionListPermissions(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeDistributionList)(results[0])); } - + /// - public void GetDistributionListPermissionsAsync(string organizationId, string accountName) { + public void GetDistributionListPermissionsAsync(string organizationId, string accountName) + { this.GetDistributionListPermissionsAsync(organizationId, accountName, null); } - + /// - public void GetDistributionListPermissionsAsync(string organizationId, string accountName, object userState) { - if ((this.GetDistributionListPermissionsOperationCompleted == null)) { + public void GetDistributionListPermissionsAsync(string organizationId, string accountName, object userState) + { + if ((this.GetDistributionListPermissionsOperationCompleted == null)) + { this.GetDistributionListPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListPermissionsOperationCompleted); } this.InvokeAsync("GetDistributionListPermissions", new object[] { organizationId, accountName}, this.GetDistributionListPermissionsOperationCompleted, userState); } - - private void OnGetDistributionListPermissionsOperationCompleted(object arg) { - if ((this.GetDistributionListPermissionsCompleted != null)) { + + private void OnGetDistributionListPermissionsOperationCompleted(object arg) + { + if ((this.GetDistributionListPermissionsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListPermissionsCompleted(this, new GetDistributionListPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDisclaimer", 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 int SetDisclaimer(string name, string text) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDisclaimer", 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 int SetDisclaimer(string name, string text) + { object[] results = this.Invoke("SetDisclaimer", new object[] { name, text}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginSetDisclaimer(string name, string text, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetDisclaimer(string name, string text, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetDisclaimer", new object[] { name, text}, callback, asyncState); } - + /// - public int EndSetDisclaimer(System.IAsyncResult asyncResult) { + public int EndSetDisclaimer(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void SetDisclaimerAsync(string name, string text) { + public void SetDisclaimerAsync(string name, string text) + { this.SetDisclaimerAsync(name, text, null); } - + /// - public void SetDisclaimerAsync(string name, string text, object userState) { - if ((this.SetDisclaimerOperationCompleted == null)) { + public void SetDisclaimerAsync(string name, string text, object userState) + { + if ((this.SetDisclaimerOperationCompleted == null)) + { this.SetDisclaimerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDisclaimerOperationCompleted); } this.InvokeAsync("SetDisclaimer", new object[] { name, text}, this.SetDisclaimerOperationCompleted, userState); } - - private void OnSetDisclaimerOperationCompleted(object arg) { - if ((this.SetDisclaimerCompleted != null)) { + + private void OnSetDisclaimerOperationCompleted(object arg) + { + if ((this.SetDisclaimerCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDisclaimerCompleted(this, new SetDisclaimerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclaimer", 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 int RemoveDisclaimer(string name) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclaimer", 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 int RemoveDisclaimer(string name) + { object[] results = this.Invoke("RemoveDisclaimer", new object[] { name}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveDisclaimer(string name, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginRemoveDisclaimer(string name, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("RemoveDisclaimer", new object[] { name}, callback, asyncState); } - + /// - public int EndRemoveDisclaimer(System.IAsyncResult asyncResult) { + public int EndRemoveDisclaimer(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void RemoveDisclaimerAsync(string name) { + public void RemoveDisclaimerAsync(string name) + { this.RemoveDisclaimerAsync(name, null); } - + /// - public void RemoveDisclaimerAsync(string name, object userState) { - if ((this.RemoveDisclaimerOperationCompleted == null)) { + public void RemoveDisclaimerAsync(string name, object userState) + { + if ((this.RemoveDisclaimerOperationCompleted == null)) + { this.RemoveDisclaimerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveDisclaimerOperationCompleted); } this.InvokeAsync("RemoveDisclaimer", new object[] { name}, this.RemoveDisclaimerOperationCompleted, userState); } - - private void OnRemoveDisclaimerOperationCompleted(object arg) { - if ((this.RemoveDisclaimerCompleted != null)) { + + private void OnRemoveDisclaimerOperationCompleted(object arg) + { + if ((this.RemoveDisclaimerCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveDisclaimerCompleted(this, new RemoveDisclaimerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddDisclamerMember", 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 int AddDisclamerMember(string name, string member) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddDisclamerMember", 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 int AddDisclamerMember(string name, string member) + { object[] results = this.Invoke("AddDisclamerMember", new object[] { name, member}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginAddDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAddDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AddDisclamerMember", new object[] { name, member}, callback, asyncState); } - + /// - public int EndAddDisclamerMember(System.IAsyncResult asyncResult) { + public int EndAddDisclamerMember(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddDisclamerMemberAsync(string name, string member) { + public void AddDisclamerMemberAsync(string name, string member) + { this.AddDisclamerMemberAsync(name, member, null); } - + /// - public void AddDisclamerMemberAsync(string name, string member, object userState) { - if ((this.AddDisclamerMemberOperationCompleted == null)) { + public void AddDisclamerMemberAsync(string name, string member, object userState) + { + if ((this.AddDisclamerMemberOperationCompleted == null)) + { this.AddDisclamerMemberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDisclamerMemberOperationCompleted); } this.InvokeAsync("AddDisclamerMember", new object[] { name, member}, this.AddDisclamerMemberOperationCompleted, userState); } - - private void OnAddDisclamerMemberOperationCompleted(object arg) { - if ((this.AddDisclamerMemberCompleted != null)) { + + private void OnAddDisclamerMemberOperationCompleted(object arg) + { + if ((this.AddDisclamerMemberCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddDisclamerMemberCompleted(this, new AddDisclamerMemberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclamerMember", 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 int RemoveDisclamerMember(string name, string member) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclamerMember", 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 int RemoveDisclamerMember(string name, string member) + { object[] results = this.Invoke("RemoveDisclamerMember", new object[] { name, member}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginRemoveDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("RemoveDisclamerMember", new object[] { name, member}, callback, asyncState); } - + /// - public int EndRemoveDisclamerMember(System.IAsyncResult asyncResult) { + public int EndRemoveDisclamerMember(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void RemoveDisclamerMemberAsync(string name, string member) { + public void RemoveDisclamerMemberAsync(string name, string member) + { this.RemoveDisclamerMemberAsync(name, member, null); } - + /// - public void RemoveDisclamerMemberAsync(string name, string member, object userState) { - if ((this.RemoveDisclamerMemberOperationCompleted == null)) { + public void RemoveDisclamerMemberAsync(string name, string member, object userState) + { + if ((this.RemoveDisclamerMemberOperationCompleted == null)) + { this.RemoveDisclamerMemberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveDisclamerMemberOperationCompleted); } this.InvokeAsync("RemoveDisclamerMember", new object[] { name, member}, this.RemoveDisclamerMemberOperationCompleted, userState); } - - private void OnRemoveDisclamerMemberOperationCompleted(object arg) { - if ((this.RemoveDisclamerMemberCompleted != null)) { + + private void OnRemoveDisclamerMemberOperationCompleted(object arg) + { + if ((this.RemoveDisclamerMemberCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveDisclamerMemberCompleted(this, new RemoveDisclamerMemberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreatePublicFolder", 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 CreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreatePublicFolder", 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 CreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) + { this.Invoke("CreatePublicFolder", new object[] { organizationDistinguishedName, organizationId, @@ -3860,9 +4375,10 @@ namespace WebsitePanel.Providers.Exchange { name, domain}); } - + /// - public System.IAsyncResult BeginCreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreatePublicFolder", new object[] { organizationDistinguishedName, organizationId, @@ -3874,20 +4390,24 @@ namespace WebsitePanel.Providers.Exchange { name, domain}, callback, asyncState); } - + /// - public void EndCreatePublicFolder(System.IAsyncResult asyncResult) { + public void EndCreatePublicFolder(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) { + public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) + { this.CreatePublicFolderAsync(organizationDistinguishedName, organizationId, securityGroup, parentFolder, folderName, mailEnabled, accountName, name, domain, null); } - + /// - public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, object userState) { - if ((this.CreatePublicFolderOperationCompleted == null)) { + public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, object userState) + { + if ((this.CreatePublicFolderOperationCompleted == null)) + { this.CreatePublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreatePublicFolderOperationCompleted); } this.InvokeAsync("CreatePublicFolder", new object[] { @@ -3901,61 +4421,72 @@ namespace WebsitePanel.Providers.Exchange { name, domain}, this.CreatePublicFolderOperationCompleted, userState); } - - private void OnCreatePublicFolderOperationCompleted(object arg) { - if ((this.CreatePublicFolderCompleted != null)) { + + private void OnCreatePublicFolderOperationCompleted(object arg) + { + if ((this.CreatePublicFolderCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreatePublicFolderCompleted(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/DeletePublicFolder", 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 DeletePublicFolder(string organizationId, string folder) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeletePublicFolder", 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 DeletePublicFolder(string organizationId, string folder) + { this.Invoke("DeletePublicFolder", new object[] { organizationId, folder}); } - + /// - public System.IAsyncResult BeginDeletePublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeletePublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeletePublicFolder", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public void EndDeletePublicFolder(System.IAsyncResult asyncResult) { + public void EndDeletePublicFolder(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeletePublicFolderAsync(string organizationId, string folder) { + public void DeletePublicFolderAsync(string organizationId, string folder) + { this.DeletePublicFolderAsync(organizationId, folder, null); } - + /// - public void DeletePublicFolderAsync(string organizationId, string folder, object userState) { - if ((this.DeletePublicFolderOperationCompleted == null)) { + public void DeletePublicFolderAsync(string organizationId, string folder, object userState) + { + if ((this.DeletePublicFolderOperationCompleted == null)) + { this.DeletePublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeletePublicFolderOperationCompleted); } this.InvokeAsync("DeletePublicFolder", new object[] { organizationId, folder}, this.DeletePublicFolderOperationCompleted, userState); } - - private void OnDeletePublicFolderOperationCompleted(object arg) { - if ((this.DeletePublicFolderCompleted != null)) { + + private void OnDeletePublicFolderOperationCompleted(object arg) + { + if ((this.DeletePublicFolderCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeletePublicFolderCompleted(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/EnableMailPublicFolder", 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 EnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/EnableMailPublicFolder", 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 EnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain) + { this.Invoke("EnableMailPublicFolder", new object[] { organizationId, folder, @@ -3963,9 +4494,10 @@ namespace WebsitePanel.Providers.Exchange { name, domain}); } - + /// - public System.IAsyncResult BeginEnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginEnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("EnableMailPublicFolder", new object[] { organizationId, folder, @@ -3973,20 +4505,24 @@ namespace WebsitePanel.Providers.Exchange { name, domain}, callback, asyncState); } - + /// - public void EndEnableMailPublicFolder(System.IAsyncResult asyncResult) { + public void EndEnableMailPublicFolder(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain) { + public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain) + { this.EnableMailPublicFolderAsync(organizationId, folder, accountName, name, domain, null); } - + /// - public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain, object userState) { - if ((this.EnableMailPublicFolderOperationCompleted == null)) { + public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain, object userState) + { + if ((this.EnableMailPublicFolderOperationCompleted == null)) + { this.EnableMailPublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnableMailPublicFolderOperationCompleted); } this.InvokeAsync("EnableMailPublicFolder", new object[] { @@ -3996,106 +4532,125 @@ namespace WebsitePanel.Providers.Exchange { name, domain}, this.EnableMailPublicFolderOperationCompleted, userState); } - - private void OnEnableMailPublicFolderOperationCompleted(object arg) { - if ((this.EnableMailPublicFolderCompleted != null)) { + + private void OnEnableMailPublicFolderOperationCompleted(object arg) + { + if ((this.EnableMailPublicFolderCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.EnableMailPublicFolderCompleted(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/DisableMailPublicFolder", 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 DisableMailPublicFolder(string organizationId, string folder) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DisableMailPublicFolder", 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 DisableMailPublicFolder(string organizationId, string folder) + { this.Invoke("DisableMailPublicFolder", new object[] { organizationId, folder}); } - + /// - public System.IAsyncResult BeginDisableMailPublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDisableMailPublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DisableMailPublicFolder", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public void EndDisableMailPublicFolder(System.IAsyncResult asyncResult) { + public void EndDisableMailPublicFolder(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DisableMailPublicFolderAsync(string organizationId, string folder) { + public void DisableMailPublicFolderAsync(string organizationId, string folder) + { this.DisableMailPublicFolderAsync(organizationId, folder, null); } - + /// - public void DisableMailPublicFolderAsync(string organizationId, string folder, object userState) { - if ((this.DisableMailPublicFolderOperationCompleted == null)) { + public void DisableMailPublicFolderAsync(string organizationId, string folder, object userState) + { + if ((this.DisableMailPublicFolderOperationCompleted == null)) + { this.DisableMailPublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableMailPublicFolderOperationCompleted); } this.InvokeAsync("DisableMailPublicFolder", new object[] { organizationId, folder}, this.DisableMailPublicFolderOperationCompleted, userState); } - - private void OnDisableMailPublicFolderOperationCompleted(object arg) { - if ((this.DisableMailPublicFolderCompleted != null)) { + + private void OnDisableMailPublicFolderOperationCompleted(object arg) + { + if ((this.DisableMailPublicFolderCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DisableMailPublicFolderCompleted(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/GetPublicFolderGeneralSettings", 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 ExchangePublicFolder GetPublicFolderGeneralSettings(string organizationId, string folder) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderGeneralSettings", 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 ExchangePublicFolder GetPublicFolderGeneralSettings(string organizationId, string folder) + { object[] results = this.Invoke("GetPublicFolderGeneralSettings", new object[] { organizationId, folder}); return ((ExchangePublicFolder)(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFolderGeneralSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetPublicFolderGeneralSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetPublicFolderGeneralSettings", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public ExchangePublicFolder EndGetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) { + public ExchangePublicFolder EndGetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangePublicFolder)(results[0])); } - + /// - public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder) { + public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder) + { this.GetPublicFolderGeneralSettingsAsync(organizationId, folder, null); } - + /// - public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder, object userState) { - if ((this.GetPublicFolderGeneralSettingsOperationCompleted == null)) { + public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder, object userState) + { + if ((this.GetPublicFolderGeneralSettingsOperationCompleted == null)) + { this.GetPublicFolderGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderGeneralSettingsOperationCompleted); } this.InvokeAsync("GetPublicFolderGeneralSettings", new object[] { organizationId, folder}, this.GetPublicFolderGeneralSettingsOperationCompleted, userState); } - - private void OnGetPublicFolderGeneralSettingsOperationCompleted(object arg) { - if ((this.GetPublicFolderGeneralSettingsCompleted != null)) { + + private void OnGetPublicFolderGeneralSettingsOperationCompleted(object arg) + { + if ((this.GetPublicFolderGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFolderGeneralSettingsCompleted(this, new GetPublicFolderGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderGeneralSettings", 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 SetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderGeneralSettings", 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 SetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) + { this.Invoke("SetPublicFolderGeneralSettings", new object[] { organizationId, folder, @@ -4103,9 +4658,10 @@ namespace WebsitePanel.Providers.Exchange { hideFromAddressBook, accounts}); } - + /// - public System.IAsyncResult BeginSetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetPublicFolderGeneralSettings", new object[] { organizationId, folder, @@ -4113,20 +4669,24 @@ namespace WebsitePanel.Providers.Exchange { hideFromAddressBook, accounts}, callback, asyncState); } - + /// - public void EndSetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) { + public void EndSetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) { + public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) + { this.SetPublicFolderGeneralSettingsAsync(organizationId, folder, newFolderName, hideFromAddressBook, accounts, null); } - + /// - public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, object userState) { - if ((this.SetPublicFolderGeneralSettingsOperationCompleted == null)) { + public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, object userState) + { + if ((this.SetPublicFolderGeneralSettingsOperationCompleted == null)) + { this.SetPublicFolderGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderGeneralSettingsOperationCompleted); } this.InvokeAsync("SetPublicFolderGeneralSettings", new object[] { @@ -4136,63 +4696,74 @@ namespace WebsitePanel.Providers.Exchange { hideFromAddressBook, accounts}, this.SetPublicFolderGeneralSettingsOperationCompleted, userState); } - - private void OnSetPublicFolderGeneralSettingsOperationCompleted(object arg) { - if ((this.SetPublicFolderGeneralSettingsCompleted != null)) { + + private void OnSetPublicFolderGeneralSettingsOperationCompleted(object arg) + { + if ((this.SetPublicFolderGeneralSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderGeneralSettingsCompleted(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/GetPublicFolderMailFlowSettings", 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 ExchangePublicFolder GetPublicFolderMailFlowSettings(string organizationId, string folder) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderMailFlowSettings", 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 ExchangePublicFolder GetPublicFolderMailFlowSettings(string organizationId, string folder) + { object[] results = this.Invoke("GetPublicFolderMailFlowSettings", new object[] { organizationId, folder}); return ((ExchangePublicFolder)(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFolderMailFlowSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetPublicFolderMailFlowSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetPublicFolderMailFlowSettings", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public ExchangePublicFolder EndGetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) { + public ExchangePublicFolder EndGetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangePublicFolder)(results[0])); } - + /// - public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder) { + public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder) + { this.GetPublicFolderMailFlowSettingsAsync(organizationId, folder, null); } - + /// - public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, object userState) { - if ((this.GetPublicFolderMailFlowSettingsOperationCompleted == null)) { + public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, object userState) + { + if ((this.GetPublicFolderMailFlowSettingsOperationCompleted == null)) + { this.GetPublicFolderMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetPublicFolderMailFlowSettings", new object[] { organizationId, folder}, this.GetPublicFolderMailFlowSettingsOperationCompleted, userState); } - - private void OnGetPublicFolderMailFlowSettingsOperationCompleted(object arg) { - if ((this.GetPublicFolderMailFlowSettingsCompleted != null)) { + + private void OnGetPublicFolderMailFlowSettingsOperationCompleted(object arg) + { + if ((this.GetPublicFolderMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFolderMailFlowSettingsCompleted(this, new GetPublicFolderMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderMailFlowSettings", 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 SetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderMailFlowSettings", 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 SetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) + { this.Invoke("SetPublicFolderMailFlowSettings", new object[] { organizationId, folder, @@ -4200,9 +4771,10 @@ namespace WebsitePanel.Providers.Exchange { rejectAccounts, requireSenderAuthentication}); } - + /// - public System.IAsyncResult BeginSetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetPublicFolderMailFlowSettings", new object[] { organizationId, folder, @@ -4210,20 +4782,24 @@ namespace WebsitePanel.Providers.Exchange { rejectAccounts, requireSenderAuthentication}, callback, asyncState); } - + /// - public void EndSetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) { + public void EndSetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { + public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) + { this.SetPublicFolderMailFlowSettingsAsync(organizationId, folder, acceptAccounts, rejectAccounts, requireSenderAuthentication, null); } - + /// - public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) { - if ((this.SetPublicFolderMailFlowSettingsOperationCompleted == null)) { + public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) + { + if ((this.SetPublicFolderMailFlowSettingsOperationCompleted == null)) + { this.SetPublicFolderMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetPublicFolderMailFlowSettings", new object[] { @@ -4233,90 +4809,106 @@ namespace WebsitePanel.Providers.Exchange { rejectAccounts, requireSenderAuthentication}, this.SetPublicFolderMailFlowSettingsOperationCompleted, userState); } - - private void OnSetPublicFolderMailFlowSettingsOperationCompleted(object arg) { - if ((this.SetPublicFolderMailFlowSettingsCompleted != null)) { + + private void OnSetPublicFolderMailFlowSettingsOperationCompleted(object arg) + { + if ((this.SetPublicFolderMailFlowSettingsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderMailFlowSettingsCompleted(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/GetPublicFolderEmailAddresses", 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 ExchangeEmailAddress[] GetPublicFolderEmailAddresses(string organizationId, string folder) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderEmailAddresses", 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 ExchangeEmailAddress[] GetPublicFolderEmailAddresses(string organizationId, string folder) + { object[] results = this.Invoke("GetPublicFolderEmailAddresses", new object[] { organizationId, folder}); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFolderEmailAddresses(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetPublicFolderEmailAddresses(string organizationId, string folder, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetPublicFolderEmailAddresses", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public ExchangeEmailAddress[] EndGetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) { + public ExchangeEmailAddress[] EndGetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder) { + public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder) + { this.GetPublicFolderEmailAddressesAsync(organizationId, folder, null); } - + /// - public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder, object userState) { - if ((this.GetPublicFolderEmailAddressesOperationCompleted == null)) { + public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder, object userState) + { + if ((this.GetPublicFolderEmailAddressesOperationCompleted == null)) + { this.GetPublicFolderEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderEmailAddressesOperationCompleted); } this.InvokeAsync("GetPublicFolderEmailAddresses", new object[] { organizationId, folder}, this.GetPublicFolderEmailAddressesOperationCompleted, userState); } - - private void OnGetPublicFolderEmailAddressesOperationCompleted(object arg) { - if ((this.GetPublicFolderEmailAddressesCompleted != null)) { + + private void OnGetPublicFolderEmailAddressesOperationCompleted(object arg) + { + if ((this.GetPublicFolderEmailAddressesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFolderEmailAddressesCompleted(this, new GetPublicFolderEmailAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderEmailAddresses", 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 SetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderEmailAddresses", 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 SetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses) + { this.Invoke("SetPublicFolderEmailAddresses", new object[] { organizationId, folder, emailAddresses}); } - + /// - public System.IAsyncResult BeginSetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetPublicFolderEmailAddresses", new object[] { organizationId, folder, emailAddresses}, callback, asyncState); } - + /// - public void EndSetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) { + public void EndSetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses) { + public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses) + { this.SetPublicFolderEmailAddressesAsync(organizationId, folder, emailAddresses, null); } - + /// - public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses, object userState) { - if ((this.SetPublicFolderEmailAddressesOperationCompleted == null)) { + public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses, object userState) + { + if ((this.SetPublicFolderEmailAddressesOperationCompleted == null)) + { this.SetPublicFolderEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderEmailAddressesOperationCompleted); } this.InvokeAsync("SetPublicFolderEmailAddresses", new object[] { @@ -4324,45 +4916,53 @@ namespace WebsitePanel.Providers.Exchange { folder, emailAddresses}, this.SetPublicFolderEmailAddressesOperationCompleted, userState); } - - private void OnSetPublicFolderEmailAddressesOperationCompleted(object arg) { - if ((this.SetPublicFolderEmailAddressesCompleted != null)) { + + private void OnSetPublicFolderEmailAddressesOperationCompleted(object arg) + { + if ((this.SetPublicFolderEmailAddressesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderEmailAddressesCompleted(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/SetPublicFolderPrimaryEmailAddress", 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 SetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderPrimaryEmailAddress", 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 SetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress) + { this.Invoke("SetPublicFolderPrimaryEmailAddress", new object[] { organizationId, folder, emailAddress}); } - + /// - public System.IAsyncResult BeginSetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginSetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("SetPublicFolderPrimaryEmailAddress", new object[] { organizationId, folder, emailAddress}, callback, asyncState); } - + /// - public void EndSetPublicFolderPrimaryEmailAddress(System.IAsyncResult asyncResult) { + public void EndSetPublicFolderPrimaryEmailAddress(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress) { + public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress) + { this.SetPublicFolderPrimaryEmailAddressAsync(organizationId, folder, emailAddress, null); } - + /// - public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress, object userState) { - if ((this.SetPublicFolderPrimaryEmailAddressOperationCompleted == null)) { + public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress, object userState) + { + if ((this.SetPublicFolderPrimaryEmailAddressOperationCompleted == null)) + { this.SetPublicFolderPrimaryEmailAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderPrimaryEmailAddressOperationCompleted); } this.InvokeAsync("SetPublicFolderPrimaryEmailAddress", new object[] { @@ -4370,1311 +4970,1494 @@ namespace WebsitePanel.Providers.Exchange { folder, emailAddress}, this.SetPublicFolderPrimaryEmailAddressOperationCompleted, userState); } - - private void OnSetPublicFolderPrimaryEmailAddressOperationCompleted(object arg) { - if ((this.SetPublicFolderPrimaryEmailAddressCompleted != null)) { + + private void OnSetPublicFolderPrimaryEmailAddressOperationCompleted(object arg) + { + if ((this.SetPublicFolderPrimaryEmailAddressCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderPrimaryEmailAddressCompleted(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/GetPublicFoldersStatistics", 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 ExchangeItemStatistics[] GetPublicFoldersStatistics(string organizationId, string[] folders) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFoldersStatistics", 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 ExchangeItemStatistics[] GetPublicFoldersStatistics(string organizationId, string[] folders) + { object[] results = this.Invoke("GetPublicFoldersStatistics", new object[] { organizationId, folders}); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFoldersStatistics(string organizationId, string[] folders, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetPublicFoldersStatistics(string organizationId, string[] folders, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetPublicFoldersStatistics", new object[] { organizationId, folders}, callback, asyncState); } - + /// - public ExchangeItemStatistics[] EndGetPublicFoldersStatistics(System.IAsyncResult asyncResult) { + public ExchangeItemStatistics[] EndGetPublicFoldersStatistics(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders) { + public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders) + { this.GetPublicFoldersStatisticsAsync(organizationId, folders, null); } - + /// - public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders, object userState) { - if ((this.GetPublicFoldersStatisticsOperationCompleted == null)) { + public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders, object userState) + { + if ((this.GetPublicFoldersStatisticsOperationCompleted == null)) + { this.GetPublicFoldersStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFoldersStatisticsOperationCompleted); } this.InvokeAsync("GetPublicFoldersStatistics", new object[] { organizationId, folders}, this.GetPublicFoldersStatisticsOperationCompleted, userState); } - - private void OnGetPublicFoldersStatisticsOperationCompleted(object arg) { - if ((this.GetPublicFoldersStatisticsCompleted != null)) { + + private void OnGetPublicFoldersStatisticsOperationCompleted(object arg) + { + if ((this.GetPublicFoldersStatisticsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFoldersStatisticsCompleted(this, new GetPublicFoldersStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFoldersRecursive", 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[] GetPublicFoldersRecursive(string organizationId, string parent) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFoldersRecursive", 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[] GetPublicFoldersRecursive(string organizationId, string parent) + { object[] results = this.Invoke("GetPublicFoldersRecursive", new object[] { organizationId, parent}); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFoldersRecursive(string organizationId, string parent, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetPublicFoldersRecursive(string organizationId, string parent, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetPublicFoldersRecursive", new object[] { organizationId, parent}, callback, asyncState); } - + /// - public string[] EndGetPublicFoldersRecursive(System.IAsyncResult asyncResult) { + public string[] EndGetPublicFoldersRecursive(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetPublicFoldersRecursiveAsync(string organizationId, string parent) { + public void GetPublicFoldersRecursiveAsync(string organizationId, string parent) + { this.GetPublicFoldersRecursiveAsync(organizationId, parent, null); } - + /// - public void GetPublicFoldersRecursiveAsync(string organizationId, string parent, object userState) { - if ((this.GetPublicFoldersRecursiveOperationCompleted == null)) { + public void GetPublicFoldersRecursiveAsync(string organizationId, string parent, object userState) + { + if ((this.GetPublicFoldersRecursiveOperationCompleted == null)) + { this.GetPublicFoldersRecursiveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFoldersRecursiveOperationCompleted); } this.InvokeAsync("GetPublicFoldersRecursive", new object[] { organizationId, parent}, this.GetPublicFoldersRecursiveOperationCompleted, userState); } - - private void OnGetPublicFoldersRecursiveOperationCompleted(object arg) { - if ((this.GetPublicFoldersRecursiveCompleted != null)) { + + private void OnGetPublicFoldersRecursiveOperationCompleted(object arg) + { + if ((this.GetPublicFoldersRecursiveCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFoldersRecursiveCompleted(this, new GetPublicFoldersRecursiveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderSize", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public long GetPublicFolderSize(string organizationId, string folder) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderSize", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public long GetPublicFolderSize(string organizationId, string folder) + { object[] results = this.Invoke("GetPublicFolderSize", new object[] { organizationId, folder}); return ((long)(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFolderSize(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetPublicFolderSize(string organizationId, string folder, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetPublicFolderSize", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public long EndGetPublicFolderSize(System.IAsyncResult asyncResult) { + public long EndGetPublicFolderSize(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((long)(results[0])); } - + /// - public void GetPublicFolderSizeAsync(string organizationId, string folder) { + public void GetPublicFolderSizeAsync(string organizationId, string folder) + { this.GetPublicFolderSizeAsync(organizationId, folder, null); } - + /// - public void GetPublicFolderSizeAsync(string organizationId, string folder, object userState) { - if ((this.GetPublicFolderSizeOperationCompleted == null)) { + public void GetPublicFolderSizeAsync(string organizationId, string folder, object userState) + { + if ((this.GetPublicFolderSizeOperationCompleted == null)) + { this.GetPublicFolderSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderSizeOperationCompleted); } this.InvokeAsync("GetPublicFolderSize", new object[] { organizationId, folder}, this.GetPublicFolderSizeOperationCompleted, userState); } - - private void OnGetPublicFolderSizeOperationCompleted(object arg) { - if ((this.GetPublicFolderSizeCompleted != null)) { + + private void OnGetPublicFolderSizeOperationCompleted(object arg) + { + if ((this.GetPublicFolderSizeCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFolderSizeCompleted(this, new GetPublicFolderSizeCompletedEventArgs(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 CreateOrganizationActiveSyncPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetActiveSyncPolicyCompletedEventHandler(object sender, GetActiveSyncPolicyCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetActiveSyncPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetActiveSyncPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetActiveSyncPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetActiveSyncPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeActiveSyncPolicy Result { - get { + public ExchangeActiveSyncPolicy Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeActiveSyncPolicy)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetActiveSyncPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMobileDevicesCompletedEventHandler(object sender, GetMobileDevicesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMobileDevicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMobileDevicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMobileDevicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMobileDevicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeMobileDevice[] Result { - get { + public ExchangeMobileDevice[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeMobileDevice[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMobileDeviceCompletedEventHandler(object sender, GetMobileDeviceCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMobileDeviceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMobileDeviceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMobileDeviceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMobileDeviceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeMobileDevice Result { - get { + public ExchangeMobileDevice Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeMobileDevice)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void WipeDataFromDeviceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CancelRemoteWipeRequestCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void RemoveDeviceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetMailBoxArchivingCompletedEventHandler(object sender, SetMailBoxArchivingCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetMailBoxArchivingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class SetMailBoxArchivingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal SetMailBoxArchivingCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal SetMailBoxArchivingCompletedEventArgs(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 SetRetentionPolicyTagCompletedEventHandler(object sender, SetRetentionPolicyTagCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class SetRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal SetRetentionPolicyTagCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal SetRetentionPolicyTagCompletedEventArgs(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 RemoveRetentionPolicyTagCompletedEventHandler(object sender, RemoveRetentionPolicyTagCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class RemoveRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal RemoveRetentionPolicyTagCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal RemoveRetentionPolicyTagCompletedEventArgs(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 SetRetentionPolicyCompletedEventHandler(object sender, SetRetentionPolicyCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class SetRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal SetRetentionPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal SetRetentionPolicyCompletedEventArgs(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 RemoveRetentionPolicyCompletedEventHandler(object sender, RemoveRetentionPolicyCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class RemoveRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal RemoveRetentionPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal RemoveRetentionPolicyCompletedEventArgs(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 CheckAccountCredentialsCompletedEventHandler(object sender, CheckAccountCredentialsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CheckAccountCredentialsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class CheckAccountCredentialsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal CheckAccountCredentialsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal CheckAccountCredentialsCompletedEventArgs(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 ExtendToExchangeOrganizationCompletedEventHandler(object sender, ExtendToExchangeOrganizationCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class ExtendToExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class ExtendToExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal ExtendToExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal ExtendToExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public Organization Result { - get { + public Organization Result + { + get + { this.RaiseExceptionIfNecessary(); return ((Organization)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreateMailEnableUserCompletedEventHandler(object sender, CreateMailEnableUserCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateMailEnableUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class CreateMailEnableUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal CreateMailEnableUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal CreateMailEnableUserCompletedEventArgs(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 CreateOrganizationOfflineAddressBookCompletedEventHandler(object sender, CreateOrganizationOfflineAddressBookCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateOrganizationOfflineAddressBookCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class CreateOrganizationOfflineAddressBookCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal CreateOrganizationOfflineAddressBookCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal CreateOrganizationOfflineAddressBookCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public Organization Result { - get { + public Organization Result + { + get + { this.RaiseExceptionIfNecessary(); return ((Organization)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void UpdateOrganizationOfflineAddressBookCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetOABVirtualDirectoryCompletedEventHandler(object sender, GetOABVirtualDirectoryCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOABVirtualDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetOABVirtualDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetOABVirtualDirectoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetOABVirtualDirectoryCompletedEventArgs(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 CreateOrganizationAddressBookPolicyCompletedEventHandler(object sender, CreateOrganizationAddressBookPolicyCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateOrganizationAddressBookPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class CreateOrganizationAddressBookPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal CreateOrganizationAddressBookPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal CreateOrganizationAddressBookPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public Organization Result { - get { + public Organization Result + { + get + { this.RaiseExceptionIfNecessary(); return ((Organization)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteOrganizationCompletedEventHandler(object sender, DeleteOrganizationCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class DeleteOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal DeleteOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal DeleteOrganizationCompletedEventArgs(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 SetOrganizationStorageLimitsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMailboxesStatisticsCompletedEventHandler(object sender, GetMailboxesStatisticsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxesStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMailboxesStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMailboxesStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMailboxesStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeItemStatistics[] Result { - get { + public ExchangeItemStatistics[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeItemStatistics[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddAuthoritativeDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void ChangeAcceptedDomainTypeCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetAuthoritativeDomainsCompletedEventHandler(object sender, GetAuthoritativeDomainsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetAuthoritativeDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetAuthoritativeDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetAuthoritativeDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetAuthoritativeDomainsCompletedEventArgs(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 DeleteAuthoritativeDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteMailboxCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DisableMailboxCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMailboxGeneralSettingsCompletedEventHandler(object sender, GetMailboxGeneralSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMailboxGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMailboxGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMailboxGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeMailbox Result { - get { + public ExchangeMailbox Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetMailboxGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMailboxMailFlowSettingsCompletedEventHandler(object sender, GetMailboxMailFlowSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMailboxMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMailboxMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMailboxMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeMailbox Result { - get { + public ExchangeMailbox Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetMailboxMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMailboxAdvancedSettingsCompletedEventHandler(object sender, GetMailboxAdvancedSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxAdvancedSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMailboxAdvancedSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMailboxAdvancedSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMailboxAdvancedSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeMailbox Result { - get { + public ExchangeMailbox Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetMailboxAdvancedSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMailboxEmailAddressesCompletedEventHandler(object sender, GetMailboxEmailAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMailboxEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMailboxEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMailboxEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeEmailAddress[] Result { - get { + public ExchangeEmailAddress[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeEmailAddress[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetMailboxEmailAddressesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetMailboxPrimaryEmailAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetMailboxPermissionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMailboxPermissionsCompletedEventHandler(object sender, GetMailboxPermissionsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMailboxPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMailboxPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMailboxPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeMailbox Result { - get { + public ExchangeMailbox Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetMailboxStatisticsCompletedEventHandler(object sender, GetMailboxStatisticsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetMailboxStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetMailboxStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetMailboxStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeMailboxStatistics Result { - get { + public ExchangeMailboxStatistics Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeMailboxStatistics)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreateContactCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteContactCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetContactGeneralSettingsCompletedEventHandler(object sender, GetContactGeneralSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetContactGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetContactGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetContactGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetContactGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeContact Result { - get { + public ExchangeContact Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeContact)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetContactGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetContactMailFlowSettingsCompletedEventHandler(object sender, GetContactMailFlowSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetContactMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetContactMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetContactMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetContactMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeContact Result { - get { + public ExchangeContact Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeContact)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetContactMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreateDistributionListCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteDistributionListCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetDistributionListGeneralSettingsCompletedEventHandler(object sender, GetDistributionListGeneralSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetDistributionListGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetDistributionListGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetDistributionListGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeDistributionList Result { - get { + public ExchangeDistributionList Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeDistributionList)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetDistributionListGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetDistributionListMailFlowSettingsCompletedEventHandler(object sender, GetDistributionListMailFlowSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetDistributionListMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetDistributionListMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetDistributionListMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeDistributionList Result { - get { + public ExchangeDistributionList Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeDistributionList)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetDistributionListMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetDistributionListEmailAddressesCompletedEventHandler(object sender, GetDistributionListEmailAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetDistributionListEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetDistributionListEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetDistributionListEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeEmailAddress[] Result { - get { + public ExchangeEmailAddress[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeEmailAddress[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetDistributionListEmailAddressesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetDistributionListPrimaryEmailAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetDistributionListPermissionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetDistributionListPermissionsCompletedEventHandler(object sender, GetDistributionListPermissionsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetDistributionListPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetDistributionListPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetDistributionListPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeDistributionList Result { - get { + public ExchangeDistributionList Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeDistributionList)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetDisclaimerCompletedEventHandler(object sender, SetDisclaimerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class SetDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal SetDisclaimerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal SetDisclaimerCompletedEventArgs(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 RemoveDisclaimerCompletedEventHandler(object sender, RemoveDisclaimerCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class RemoveDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal RemoveDisclaimerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal RemoveDisclaimerCompletedEventArgs(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 AddDisclamerMemberCompletedEventHandler(object sender, AddDisclamerMemberCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class AddDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal AddDisclamerMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal AddDisclamerMemberCompletedEventArgs(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 RemoveDisclamerMemberCompletedEventHandler(object sender, RemoveDisclamerMemberCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class RemoveDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal RemoveDisclamerMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal RemoveDisclamerMemberCompletedEventArgs(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 CreatePublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeletePublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void EnableMailPublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DisableMailPublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPublicFolderGeneralSettingsCompletedEventHandler(object sender, GetPublicFolderGeneralSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPublicFolderGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPublicFolderGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPublicFolderGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangePublicFolder Result { - get { + public ExchangePublicFolder Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangePublicFolder)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetPublicFolderGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPublicFolderMailFlowSettingsCompletedEventHandler(object sender, GetPublicFolderMailFlowSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPublicFolderMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPublicFolderMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPublicFolderMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangePublicFolder Result { - get { + public ExchangePublicFolder Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangePublicFolder)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetPublicFolderMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPublicFolderEmailAddressesCompletedEventHandler(object sender, GetPublicFolderEmailAddressesCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPublicFolderEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPublicFolderEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPublicFolderEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeEmailAddress[] Result { - get { + public ExchangeEmailAddress[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeEmailAddress[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetPublicFolderEmailAddressesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetPublicFolderPrimaryEmailAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPublicFoldersStatisticsCompletedEventHandler(object sender, GetPublicFoldersStatisticsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFoldersStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPublicFoldersStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPublicFoldersStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPublicFoldersStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public ExchangeItemStatistics[] Result { - get { + public ExchangeItemStatistics[] Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ExchangeItemStatistics[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetPublicFoldersRecursiveCompletedEventHandler(object sender, GetPublicFoldersRecursiveCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFoldersRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPublicFoldersRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPublicFoldersRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPublicFoldersRecursiveCompletedEventArgs(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 GetPublicFolderSizeCompletedEventHandler(object sender, GetPublicFolderSizeCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - + public partial class GetPublicFolderSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + private object[] results; - - internal GetPublicFolderSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal GetPublicFolderSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// - public long Result { - get { + public long Result + { + get + { this.RaiseExceptionIfNecessary(); return ((long)(this.results[0])); } diff --git a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs index aed0ac01..b832d06d 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs @@ -90,7 +90,9 @@ namespace WebsitePanel.Server } [WebMethod, SoapHeader("settings")] - public string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, ExchangeAccountType accountType, + public string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, + string securityGroup, string organizationDomain, + ExchangeAccountType accountType, string mailboxDatabase, string offlineAddressBook, string addressBookPolicy, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, @@ -100,7 +102,9 @@ namespace WebsitePanel.Server try { LogStart("CreateMailEnableUser"); - string ret = ES.CreateMailEnableUser(upn, organizationId, organizationDistinguishedName, accountType, + string ret = ES.CreateMailEnableUser(upn, organizationId, organizationDistinguishedName, + securityGroup, organizationDomain, + accountType, mailboxDatabase, offlineAddressBook, addressBookPolicy, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync,