Exchange2013 Creating org public folders when creating organization and interface for set DefaultPublicFolderMailbox

This commit is contained in:
dev_amdtel 2014-10-24 06:48:51 +04:00
parent b3dc88fe86
commit 2f3c726b69
7 changed files with 245 additions and 3 deletions

View file

@ -29,7 +29,6 @@
using WebsitePanel.Providers.HostedSolution;
using WebsitePanel.Providers.Common;
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -65,6 +64,8 @@ namespace WebsitePanel.Providers.Exchange
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
private System.Threading.SendOrPostCallback CreateOrganizationRootPublicFolderOperationCompleted;
private System.Threading.SendOrPostCallback CreateOrganizationActiveSyncPolicyOperationCompleted;
private System.Threading.SendOrPostCallback GetActiveSyncPolicyOperationCompleted;
@ -223,6 +224,9 @@ namespace WebsitePanel.Providers.Exchange
this.Url = "http://localhost:9004/ExchangeServer.asmx";
}
/// <remarks/>
public event CreateOrganizationRootPublicFolderCompletedEventHandler CreateOrganizationRootPublicFolderCompleted;
/// <remarks/>
public event CreateOrganizationActiveSyncPolicyCompletedEventHandler CreateOrganizationActiveSyncPolicyCompleted;
@ -451,6 +455,65 @@ namespace WebsitePanel.Providers.Exchange
/// <remarks/>
public event GetPublicFolderSizeCompletedEventHandler GetPublicFolderSizeCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationRootPublicFolder", 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 CreateOrganizationRootPublicFolder(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain)
{
object[] results = this.Invoke("CreateOrganizationRootPublicFolder", new object[] {
organizationId,
organizationDistinguishedName,
securityGroup,
organizationDomain});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginCreateOrganizationRootPublicFolder(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("CreateOrganizationRootPublicFolder", new object[] {
organizationId,
organizationDistinguishedName,
securityGroup,
organizationDomain}, callback, asyncState);
}
/// <remarks/>
public string EndCreateOrganizationRootPublicFolder(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void CreateOrganizationRootPublicFolderAsync(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain)
{
this.CreateOrganizationRootPublicFolderAsync(organizationId, organizationDistinguishedName, securityGroup, organizationDomain, null);
}
/// <remarks/>
public void CreateOrganizationRootPublicFolderAsync(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain, object userState)
{
if ((this.CreateOrganizationRootPublicFolderOperationCompleted == null))
{
this.CreateOrganizationRootPublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationRootPublicFolderOperationCompleted);
}
this.InvokeAsync("CreateOrganizationRootPublicFolder", new object[] {
organizationId,
organizationDistinguishedName,
securityGroup,
organizationDomain}, this.CreateOrganizationRootPublicFolderOperationCompleted, userState);
}
private void OnCreateOrganizationRootPublicFolderOperationCompleted(object arg)
{
if ((this.CreateOrganizationRootPublicFolderCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateOrganizationRootPublicFolderCompleted(this, new CreateOrganizationRootPublicFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[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)]
@ -5146,6 +5209,36 @@ namespace WebsitePanel.Providers.Exchange
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void CreateOrganizationRootPublicFolderCompletedEventHandler(object sender, CreateOrganizationRootPublicFolderCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateOrganizationRootPublicFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{
private object[] results;
internal CreateOrganizationRootPublicFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState)
{
this.results = results;
}
/// <remarks/>
public string Result
{
get
{
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void CreateOrganizationActiveSyncPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);