Initial project's source code check-in.
This commit is contained in:
commit
b03b0b373f
4573 changed files with 981205 additions and 0 deletions
|
@ -0,0 +1,415 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name = "esApplicationsInstallerSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")]
|
||||
public partial class esApplicationsInstaller : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
private System.Threading.SendOrPostCallback InstallApplicationOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetApplicationsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetCategoriesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetApplicationOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esApplicationsInstaller()
|
||||
{
|
||||
this.Url = "http://localhost/WebsitePanelEnterpriseServer11/esApplicationsInstaller.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event InstallApplicationCompletedEventHandler InstallApplicationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetApplicationsCompletedEventHandler GetApplicationsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetCategoriesCompletedEventHandler GetCategoriesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetApplicationCompletedEventHandler GetApplicationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/InstallApplication", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int InstallApplication(InstallationInfo inst)
|
||||
{
|
||||
object[] results = this.Invoke("InstallApplication", new object[] {
|
||||
inst});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginInstallApplication(InstallationInfo inst, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("InstallApplication", new object[] {
|
||||
inst}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndInstallApplication(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void InstallApplicationAsync(InstallationInfo inst)
|
||||
{
|
||||
this.InstallApplicationAsync(inst, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void InstallApplicationAsync(InstallationInfo inst, object userState)
|
||||
{
|
||||
if ((this.InstallApplicationOperationCompleted == null))
|
||||
{
|
||||
this.InstallApplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInstallApplicationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("InstallApplication", new object[] {
|
||||
inst}, this.InstallApplicationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnInstallApplicationOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.InstallApplicationCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.InstallApplicationCompleted(this, new InstallApplicationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetApplications", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ApplicationInfo[] GetApplications(int packageId, string categoryId)
|
||||
{
|
||||
object[] results = this.Invoke("GetApplications", new object[] {
|
||||
packageId,
|
||||
categoryId});
|
||||
return ((ApplicationInfo[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetApplications(int packageId, string categoryId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetApplications", new object[] {
|
||||
packageId,
|
||||
categoryId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ApplicationInfo[] EndGetApplications(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ApplicationInfo[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetApplicationsAsync(int packageId, string categoryId)
|
||||
{
|
||||
this.GetApplicationsAsync(packageId, categoryId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetApplicationsAsync(int packageId, string categoryId, object userState)
|
||||
{
|
||||
if ((this.GetApplicationsOperationCompleted == null))
|
||||
{
|
||||
this.GetApplicationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetApplicationsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetApplications", new object[] {
|
||||
packageId,
|
||||
categoryId}, this.GetApplicationsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetApplicationsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetApplicationsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetApplicationsCompleted(this, new GetApplicationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetCategories", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ApplicationCategory[] GetCategories()
|
||||
{
|
||||
object[] results = this.Invoke("GetCategories", new object[0]);
|
||||
return ((ApplicationCategory[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetCategories(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetCategories", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ApplicationCategory[] EndGetCategories(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ApplicationCategory[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetCategoriesAsync()
|
||||
{
|
||||
this.GetCategoriesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetCategoriesAsync(object userState)
|
||||
{
|
||||
if ((this.GetCategoriesOperationCompleted == null))
|
||||
{
|
||||
this.GetCategoriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCategoriesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetCategories", new object[0], this.GetCategoriesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetCategoriesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetCategoriesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetCategoriesCompleted(this, new GetCategoriesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetApplication", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ApplicationInfo GetApplication(int packageId, string applicationId)
|
||||
{
|
||||
object[] results = this.Invoke("GetApplication", new object[] {
|
||||
packageId,
|
||||
applicationId});
|
||||
return ((ApplicationInfo)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetApplication(int packageId, string applicationId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetApplication", new object[] {
|
||||
packageId,
|
||||
applicationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ApplicationInfo EndGetApplication(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ApplicationInfo)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetApplicationAsync(int packageId, string applicationId)
|
||||
{
|
||||
this.GetApplicationAsync(packageId, applicationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetApplicationAsync(int packageId, string applicationId, object userState)
|
||||
{
|
||||
if ((this.GetApplicationOperationCompleted == null))
|
||||
{
|
||||
this.GetApplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetApplicationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetApplication", new object[] {
|
||||
packageId,
|
||||
applicationId}, this.GetApplicationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetApplicationOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetApplicationCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetApplicationCompleted(this, new GetApplicationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState)
|
||||
{
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void InstallApplicationCompletedEventHandler(object sender, InstallApplicationCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class InstallApplicationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal InstallApplicationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetApplicationsCompletedEventHandler(object sender, GetApplicationsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetApplicationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetApplicationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ApplicationInfo[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ApplicationInfo[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetCategoriesCompletedEventHandler(object sender, GetCategoriesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetCategoriesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetCategoriesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ApplicationCategory[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ApplicationCategory[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetApplicationCompletedEventHandler(object sender, GetApplicationCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetApplicationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetApplicationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ApplicationInfo Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ApplicationInfo)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,550 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Xml.Serialization;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Data;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esAuditLogSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
||||
public partial class esAuditLog : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetAuditLogRecordsPagedOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetAuditLogSourcesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetAuditLogTasksOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetAuditLogRecordOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteAuditLogRecordsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteAuditLogRecordsCompleteOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esAuditLog() {
|
||||
this.Url = "http://127.0.0.1:9002/esAuditLog.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetAuditLogRecordsPagedCompletedEventHandler GetAuditLogRecordsPagedCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetAuditLogSourcesCompletedEventHandler GetAuditLogSourcesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetAuditLogTasksCompletedEventHandler GetAuditLogTasksCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetAuditLogRecordCompletedEventHandler GetAuditLogRecordCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteAuditLogRecordsCompletedEventHandler DeleteAuditLogRecordsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteAuditLogRecordsCompleteCompletedEventHandler DeleteAuditLogRecordsCompleteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAuditLogRecordsPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public System.Data.DataSet GetAuditLogRecordsPaged(int userId, int packageId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName, string sortColumn, int startRow, int maximumRows) {
|
||||
object[] results = this.Invoke("GetAuditLogRecordsPaged", new object[] {
|
||||
userId,
|
||||
packageId,
|
||||
itemId,
|
||||
itemName,
|
||||
startDate,
|
||||
endDate,
|
||||
severityId,
|
||||
sourceName,
|
||||
taskName,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetAuditLogRecordsPaged(int userId, int packageId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetAuditLogRecordsPaged", new object[] {
|
||||
userId,
|
||||
packageId,
|
||||
itemId,
|
||||
itemName,
|
||||
startDate,
|
||||
endDate,
|
||||
severityId,
|
||||
sourceName,
|
||||
taskName,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet EndGetAuditLogRecordsPaged(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogRecordsPagedAsync(int userId, int packageId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName, string sortColumn, int startRow, int maximumRows) {
|
||||
this.GetAuditLogRecordsPagedAsync(userId, packageId, itemId, itemName, startDate, endDate, severityId, sourceName, taskName, sortColumn, startRow, maximumRows, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogRecordsPagedAsync(int userId, int packageId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName, string sortColumn, int startRow, int maximumRows, object userState) {
|
||||
if ((this.GetAuditLogRecordsPagedOperationCompleted == null)) {
|
||||
this.GetAuditLogRecordsPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuditLogRecordsPagedOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetAuditLogRecordsPaged", new object[] {
|
||||
userId,
|
||||
packageId,
|
||||
itemId,
|
||||
itemName,
|
||||
startDate,
|
||||
endDate,
|
||||
severityId,
|
||||
sourceName,
|
||||
taskName,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, this.GetAuditLogRecordsPagedOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetAuditLogRecordsPagedOperationCompleted(object arg) {
|
||||
if ((this.GetAuditLogRecordsPagedCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetAuditLogRecordsPagedCompleted(this, new GetAuditLogRecordsPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAuditLogSources", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public System.Data.DataSet GetAuditLogSources() {
|
||||
object[] results = this.Invoke("GetAuditLogSources", new object[0]);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetAuditLogSources(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetAuditLogSources", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet EndGetAuditLogSources(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogSourcesAsync() {
|
||||
this.GetAuditLogSourcesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogSourcesAsync(object userState) {
|
||||
if ((this.GetAuditLogSourcesOperationCompleted == null)) {
|
||||
this.GetAuditLogSourcesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuditLogSourcesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetAuditLogSources", new object[0], this.GetAuditLogSourcesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetAuditLogSourcesOperationCompleted(object arg) {
|
||||
if ((this.GetAuditLogSourcesCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetAuditLogSourcesCompleted(this, new GetAuditLogSourcesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAuditLogTasks", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public System.Data.DataSet GetAuditLogTasks(string sourceName) {
|
||||
object[] results = this.Invoke("GetAuditLogTasks", new object[] {
|
||||
sourceName});
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetAuditLogTasks(string sourceName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetAuditLogTasks", new object[] {
|
||||
sourceName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet EndGetAuditLogTasks(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogTasksAsync(string sourceName) {
|
||||
this.GetAuditLogTasksAsync(sourceName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogTasksAsync(string sourceName, object userState) {
|
||||
if ((this.GetAuditLogTasksOperationCompleted == null)) {
|
||||
this.GetAuditLogTasksOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuditLogTasksOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetAuditLogTasks", new object[] {
|
||||
sourceName}, this.GetAuditLogTasksOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetAuditLogTasksOperationCompleted(object arg) {
|
||||
if ((this.GetAuditLogTasksCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetAuditLogTasksCompleted(this, new GetAuditLogTasksCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetAuditLogRecord", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public LogRecord GetAuditLogRecord(string recordId) {
|
||||
object[] results = this.Invoke("GetAuditLogRecord", new object[] {
|
||||
recordId});
|
||||
return ((LogRecord)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetAuditLogRecord(string recordId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetAuditLogRecord", new object[] {
|
||||
recordId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public LogRecord EndGetAuditLogRecord(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((LogRecord)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogRecordAsync(string recordId) {
|
||||
this.GetAuditLogRecordAsync(recordId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAuditLogRecordAsync(string recordId, object userState) {
|
||||
if ((this.GetAuditLogRecordOperationCompleted == null)) {
|
||||
this.GetAuditLogRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuditLogRecordOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetAuditLogRecord", new object[] {
|
||||
recordId}, this.GetAuditLogRecordOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetAuditLogRecordOperationCompleted(object arg) {
|
||||
if ((this.GetAuditLogRecordCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetAuditLogRecordCompleted(this, new GetAuditLogRecordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteAuditLogRecords", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int DeleteAuditLogRecords(int userId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName) {
|
||||
object[] results = this.Invoke("DeleteAuditLogRecords", new object[] {
|
||||
userId,
|
||||
itemId,
|
||||
itemName,
|
||||
startDate,
|
||||
endDate,
|
||||
severityId,
|
||||
sourceName,
|
||||
taskName});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteAuditLogRecords(int userId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteAuditLogRecords", new object[] {
|
||||
userId,
|
||||
itemId,
|
||||
itemName,
|
||||
startDate,
|
||||
endDate,
|
||||
severityId,
|
||||
sourceName,
|
||||
taskName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndDeleteAuditLogRecords(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteAuditLogRecordsAsync(int userId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName) {
|
||||
this.DeleteAuditLogRecordsAsync(userId, itemId, itemName, startDate, endDate, severityId, sourceName, taskName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteAuditLogRecordsAsync(int userId, int itemId, string itemName, System.DateTime startDate, System.DateTime endDate, int severityId, string sourceName, string taskName, object userState) {
|
||||
if ((this.DeleteAuditLogRecordsOperationCompleted == null)) {
|
||||
this.DeleteAuditLogRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteAuditLogRecordsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteAuditLogRecords", new object[] {
|
||||
userId,
|
||||
itemId,
|
||||
itemName,
|
||||
startDate,
|
||||
endDate,
|
||||
severityId,
|
||||
sourceName,
|
||||
taskName}, this.DeleteAuditLogRecordsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteAuditLogRecordsOperationCompleted(object arg) {
|
||||
if ((this.DeleteAuditLogRecordsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteAuditLogRecordsCompleted(this, new DeleteAuditLogRecordsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteAuditLogRecordsComplete", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int DeleteAuditLogRecordsComplete() {
|
||||
object[] results = this.Invoke("DeleteAuditLogRecordsComplete", new object[0]);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteAuditLogRecordsComplete(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteAuditLogRecordsComplete", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndDeleteAuditLogRecordsComplete(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteAuditLogRecordsCompleteAsync() {
|
||||
this.DeleteAuditLogRecordsCompleteAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteAuditLogRecordsCompleteAsync(object userState) {
|
||||
if ((this.DeleteAuditLogRecordsCompleteOperationCompleted == null)) {
|
||||
this.DeleteAuditLogRecordsCompleteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteAuditLogRecordsCompleteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteAuditLogRecordsComplete", new object[0], this.DeleteAuditLogRecordsCompleteOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteAuditLogRecordsCompleteOperationCompleted(object arg) {
|
||||
if ((this.DeleteAuditLogRecordsCompleteCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteAuditLogRecordsCompleteCompleted(this, new DeleteAuditLogRecordsCompleteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetAuditLogRecordsPagedCompletedEventHandler(object sender, GetAuditLogRecordsPagedCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetAuditLogRecordsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetAuditLogRecordsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((System.Data.DataSet)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetAuditLogSourcesCompletedEventHandler(object sender, GetAuditLogSourcesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetAuditLogSourcesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetAuditLogSourcesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((System.Data.DataSet)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetAuditLogTasksCompletedEventHandler(object sender, GetAuditLogTasksCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetAuditLogTasksCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetAuditLogTasksCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((System.Data.DataSet)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetAuditLogRecordCompletedEventHandler(object sender, GetAuditLogRecordCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetAuditLogRecordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetAuditLogRecordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public LogRecord Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((LogRecord)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteAuditLogRecordsCompletedEventHandler(object sender, DeleteAuditLogRecordsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteAuditLogRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteAuditLogRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteAuditLogRecordsCompleteCompletedEventHandler(object sender, DeleteAuditLogRecordsCompleteCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteAuditLogRecordsCompleteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteAuditLogRecordsCompleteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,603 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4952
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
using System.Xml.Serialization;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name = "esAuthenticationSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")]
|
||||
public partial class esAuthentication : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
private System.Threading.SendOrPostCallback AuthenticateUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetUserByUsernamePasswordOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback ChangeUserPasswordByUsernameOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SendPasswordReminderOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSystemSetupModeOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetupControlPanelAccountsOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esAuthentication()
|
||||
{
|
||||
this.Url = "http://localhost:9002/esAuthentication.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event AuthenticateUserCompletedEventHandler AuthenticateUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetUserByUsernamePasswordCompletedEventHandler GetUserByUsernamePasswordCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event ChangeUserPasswordByUsernameCompletedEventHandler ChangeUserPasswordByUsernameCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SendPasswordReminderCompletedEventHandler SendPasswordReminderCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSystemSetupModeCompletedEventHandler GetSystemSetupModeCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetupControlPanelAccountsCompletedEventHandler SetupControlPanelAccountsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AuthenticateUser", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int AuthenticateUser(string username, string password, string ip)
|
||||
{
|
||||
object[] results = this.Invoke("AuthenticateUser", new object[] {
|
||||
username,
|
||||
password,
|
||||
ip});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAuthenticateUser(string username, string password, string ip, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("AuthenticateUser", new object[] {
|
||||
username,
|
||||
password,
|
||||
ip}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndAuthenticateUser(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AuthenticateUserAsync(string username, string password, string ip)
|
||||
{
|
||||
this.AuthenticateUserAsync(username, password, ip, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AuthenticateUserAsync(string username, string password, string ip, object userState)
|
||||
{
|
||||
if ((this.AuthenticateUserOperationCompleted == null))
|
||||
{
|
||||
this.AuthenticateUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAuthenticateUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AuthenticateUser", new object[] {
|
||||
username,
|
||||
password,
|
||||
ip}, this.AuthenticateUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAuthenticateUserOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.AuthenticateUserCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AuthenticateUserCompleted(this, new AuthenticateUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetUserByUsernamePassword", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public UserInfo GetUserByUsernamePassword(string username, string password, string ip)
|
||||
{
|
||||
object[] results = this.Invoke("GetUserByUsernamePassword", new object[] {
|
||||
username,
|
||||
password,
|
||||
ip});
|
||||
return ((UserInfo)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetUserByUsernamePassword(string username, string password, string ip, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetUserByUsernamePassword", new object[] {
|
||||
username,
|
||||
password,
|
||||
ip}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public UserInfo EndGetUserByUsernamePassword(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((UserInfo)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserByUsernamePasswordAsync(string username, string password, string ip)
|
||||
{
|
||||
this.GetUserByUsernamePasswordAsync(username, password, ip, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserByUsernamePasswordAsync(string username, string password, string ip, object userState)
|
||||
{
|
||||
if ((this.GetUserByUsernamePasswordOperationCompleted == null))
|
||||
{
|
||||
this.GetUserByUsernamePasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserByUsernamePasswordOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetUserByUsernamePassword", new object[] {
|
||||
username,
|
||||
password,
|
||||
ip}, this.GetUserByUsernamePasswordOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetUserByUsernamePasswordOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetUserByUsernamePasswordCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetUserByUsernamePasswordCompleted(this, new GetUserByUsernamePasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ChangeUserPasswordByUsername", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int ChangeUserPasswordByUsername(string username, string oldPassword, string newPassword, string ip)
|
||||
{
|
||||
object[] results = this.Invoke("ChangeUserPasswordByUsername", new object[] {
|
||||
username,
|
||||
oldPassword,
|
||||
newPassword,
|
||||
ip});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginChangeUserPasswordByUsername(string username, string oldPassword, string newPassword, string ip, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("ChangeUserPasswordByUsername", new object[] {
|
||||
username,
|
||||
oldPassword,
|
||||
newPassword,
|
||||
ip}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndChangeUserPasswordByUsername(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeUserPasswordByUsernameAsync(string username, string oldPassword, string newPassword, string ip)
|
||||
{
|
||||
this.ChangeUserPasswordByUsernameAsync(username, oldPassword, newPassword, ip, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeUserPasswordByUsernameAsync(string username, string oldPassword, string newPassword, string ip, object userState)
|
||||
{
|
||||
if ((this.ChangeUserPasswordByUsernameOperationCompleted == null))
|
||||
{
|
||||
this.ChangeUserPasswordByUsernameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeUserPasswordByUsernameOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ChangeUserPasswordByUsername", new object[] {
|
||||
username,
|
||||
oldPassword,
|
||||
newPassword,
|
||||
ip}, this.ChangeUserPasswordByUsernameOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnChangeUserPasswordByUsernameOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.ChangeUserPasswordByUsernameCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ChangeUserPasswordByUsernameCompleted(this, new ChangeUserPasswordByUsernameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SendPasswordReminder", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int SendPasswordReminder(string username, string ip)
|
||||
{
|
||||
object[] results = this.Invoke("SendPasswordReminder", new object[] {
|
||||
username,
|
||||
ip});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSendPasswordReminder(string username, string ip, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("SendPasswordReminder", new object[] {
|
||||
username,
|
||||
ip}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndSendPasswordReminder(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SendPasswordReminderAsync(string username, string ip)
|
||||
{
|
||||
this.SendPasswordReminderAsync(username, ip, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SendPasswordReminderAsync(string username, string ip, object userState)
|
||||
{
|
||||
if ((this.SendPasswordReminderOperationCompleted == null))
|
||||
{
|
||||
this.SendPasswordReminderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendPasswordReminderOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SendPasswordReminder", new object[] {
|
||||
username,
|
||||
ip}, this.SendPasswordReminderOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSendPasswordReminderOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.SendPasswordReminderCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SendPasswordReminderCompleted(this, new SendPasswordReminderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetSystemSetupMode", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool GetSystemSetupMode()
|
||||
{
|
||||
object[] results = this.Invoke("GetSystemSetupMode", new object[0]);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSystemSetupMode(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetSystemSetupMode", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool EndGetSystemSetupMode(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSystemSetupModeAsync()
|
||||
{
|
||||
this.GetSystemSetupModeAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSystemSetupModeAsync(object userState)
|
||||
{
|
||||
if ((this.GetSystemSetupModeOperationCompleted == null))
|
||||
{
|
||||
this.GetSystemSetupModeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSystemSetupModeOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSystemSetupMode", new object[0], this.GetSystemSetupModeOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSystemSetupModeOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetSystemSetupModeCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSystemSetupModeCompleted(this, new GetSystemSetupModeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetupControlPanelAccounts", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int SetupControlPanelAccounts(string passwordA, string passwordB, string ip)
|
||||
{
|
||||
object[] results = this.Invoke("SetupControlPanelAccounts", new object[] {
|
||||
passwordA,
|
||||
passwordB,
|
||||
ip});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetupControlPanelAccounts(string passwordA, string passwordB, string ip, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("SetupControlPanelAccounts", new object[] {
|
||||
passwordA,
|
||||
passwordB,
|
||||
ip}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndSetupControlPanelAccounts(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetupControlPanelAccountsAsync(string passwordA, string passwordB, string ip)
|
||||
{
|
||||
this.SetupControlPanelAccountsAsync(passwordA, passwordB, ip, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetupControlPanelAccountsAsync(string passwordA, string passwordB, string ip, object userState)
|
||||
{
|
||||
if ((this.SetupControlPanelAccountsOperationCompleted == null))
|
||||
{
|
||||
this.SetupControlPanelAccountsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetupControlPanelAccountsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetupControlPanelAccounts", new object[] {
|
||||
passwordA,
|
||||
passwordB,
|
||||
ip}, this.SetupControlPanelAccountsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSetupControlPanelAccountsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.SetupControlPanelAccountsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SetupControlPanelAccountsCompleted(this, new SetupControlPanelAccountsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState)
|
||||
{
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AuthenticateUserCompletedEventHandler(object sender, AuthenticateUserCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AuthenticateUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AuthenticateUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetUserByUsernamePasswordCompletedEventHandler(object sender, GetUserByUsernamePasswordCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetUserByUsernamePasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetUserByUsernamePasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public UserInfo Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((UserInfo)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void ChangeUserPasswordByUsernameCompletedEventHandler(object sender, ChangeUserPasswordByUsernameCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class ChangeUserPasswordByUsernameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal ChangeUserPasswordByUsernameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SendPasswordReminderCompletedEventHandler(object sender, SendPasswordReminderCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class SendPasswordReminderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal SendPasswordReminderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetSystemSetupModeCompletedEventHandler(object sender, GetSystemSetupModeCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSystemSetupModeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSystemSetupModeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((bool)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetupControlPanelAccountsCompletedEventHandler(object sender, SetupControlPanelAccountsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class SetupControlPanelAccountsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal SetupControlPanelAccountsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,349 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.3038.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using WebsitePanel.Ecommerce.EnterpriseServer;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esBackupSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
||||
public partial class esBackup : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetBackupContentSummaryOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback BackupOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback RestoreOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esBackup() {
|
||||
this.Url = "http://localhost:1625/esBackup.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetBackupContentSummaryCompletedEventHandler GetBackupContentSummaryCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event BackupCompletedEventHandler BackupCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event RestoreCompletedEventHandler RestoreCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetBackupContentSummary", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public KeyValueBunch GetBackupContentSummary(int userId, int packageId, int serviceId, int serverId) {
|
||||
object[] results = this.Invoke("GetBackupContentSummary", new object[] {
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId});
|
||||
return ((KeyValueBunch)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetBackupContentSummary(int userId, int packageId, int serviceId, int serverId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetBackupContentSummary", new object[] {
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public KeyValueBunch EndGetBackupContentSummary(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((KeyValueBunch)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBackupContentSummaryAsync(int userId, int packageId, int serviceId, int serverId) {
|
||||
this.GetBackupContentSummaryAsync(userId, packageId, serviceId, serverId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBackupContentSummaryAsync(int userId, int packageId, int serviceId, int serverId, object userState) {
|
||||
if ((this.GetBackupContentSummaryOperationCompleted == null)) {
|
||||
this.GetBackupContentSummaryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBackupContentSummaryOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetBackupContentSummary", new object[] {
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId}, this.GetBackupContentSummaryOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetBackupContentSummaryOperationCompleted(object arg) {
|
||||
if ((this.GetBackupContentSummaryCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetBackupContentSummaryCompleted(this, new GetBackupContentSummaryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Backup", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int Backup(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, string backupFileName, int storePackageId, string storePackageFolder, string storeServerFolder, bool deleteTempBackup) {
|
||||
object[] results = this.Invoke("Backup", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId,
|
||||
backupFileName,
|
||||
storePackageId,
|
||||
storePackageFolder,
|
||||
storeServerFolder,
|
||||
deleteTempBackup});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginBackup(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, string backupFileName, int storePackageId, string storePackageFolder, string storeServerFolder, bool deleteTempBackup, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("Backup", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId,
|
||||
backupFileName,
|
||||
storePackageId,
|
||||
storePackageFolder,
|
||||
storeServerFolder,
|
||||
deleteTempBackup}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndBackup(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void BackupAsync(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, string backupFileName, int storePackageId, string storePackageFolder, string storeServerFolder, bool deleteTempBackup) {
|
||||
this.BackupAsync(async, taskId, userId, packageId, serviceId, serverId, backupFileName, storePackageId, storePackageFolder, storeServerFolder, deleteTempBackup, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void BackupAsync(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, string backupFileName, int storePackageId, string storePackageFolder, string storeServerFolder, bool deleteTempBackup, object userState) {
|
||||
if ((this.BackupOperationCompleted == null)) {
|
||||
this.BackupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBackupOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("Backup", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId,
|
||||
backupFileName,
|
||||
storePackageId,
|
||||
storePackageFolder,
|
||||
storeServerFolder,
|
||||
deleteTempBackup}, this.BackupOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnBackupOperationCompleted(object arg) {
|
||||
if ((this.BackupCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.BackupCompleted(this, new BackupCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Restore", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int Restore(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, int storePackageId, string storePackageBackupPath, string storeServerBackupPath) {
|
||||
object[] results = this.Invoke("Restore", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId,
|
||||
storePackageId,
|
||||
storePackageBackupPath,
|
||||
storeServerBackupPath});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginRestore(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, int storePackageId, string storePackageBackupPath, string storeServerBackupPath, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("Restore", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId,
|
||||
storePackageId,
|
||||
storePackageBackupPath,
|
||||
storeServerBackupPath}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndRestore(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RestoreAsync(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, int storePackageId, string storePackageBackupPath, string storeServerBackupPath) {
|
||||
this.RestoreAsync(async, taskId, userId, packageId, serviceId, serverId, storePackageId, storePackageBackupPath, storeServerBackupPath, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RestoreAsync(bool async, string taskId, int userId, int packageId, int serviceId, int serverId, int storePackageId, string storePackageBackupPath, string storeServerBackupPath, object userState) {
|
||||
if ((this.RestoreOperationCompleted == null)) {
|
||||
this.RestoreOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRestoreOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("Restore", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
userId,
|
||||
packageId,
|
||||
serviceId,
|
||||
serverId,
|
||||
storePackageId,
|
||||
storePackageBackupPath,
|
||||
storeServerBackupPath}, this.RestoreOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnRestoreOperationCompleted(object arg) {
|
||||
if ((this.RestoreCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.RestoreCompleted(this, new RestoreCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||
public delegate void GetBackupContentSummaryCompletedEventHandler(object sender, GetBackupContentSummaryCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetBackupContentSummaryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetBackupContentSummaryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public KeyValueBunch Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((KeyValueBunch)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||
public delegate void BackupCompletedEventHandler(object sender, BackupCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class BackupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal BackupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||
public delegate void RestoreCompletedEventHandler(object sender, RestoreCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class RestoreCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal RestoreCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,707 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.1433
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
using WebsitePanel.Providers.Common;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer.HostedSolution {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esBlackBerrySoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
||||
public partial class esBlackBerry : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateBlackBerryUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteBlackBerryUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetBlackBerryUsersPagedOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetBlackBerryUserCountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetBlackBerryUserStatsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteDataFromBlackBerryDeviceOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetEmailActivationPasswordOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetActivationPasswordWithExpirationTimeOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esBlackBerry() {
|
||||
this.Url = "http://localhost/WebsitePanelEnterpriseServer/esBlackBerry.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateBlackBerryUserCompletedEventHandler CreateBlackBerryUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteBlackBerryUserCompletedEventHandler DeleteBlackBerryUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetBlackBerryUsersPagedCompletedEventHandler GetBlackBerryUsersPagedCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetBlackBerryUserCountCompletedEventHandler GetBlackBerryUserCountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetBlackBerryUserStatsCompletedEventHandler GetBlackBerryUserStatsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteDataFromBlackBerryDeviceCompletedEventHandler DeleteDataFromBlackBerryDeviceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetEmailActivationPasswordCompletedEventHandler SetEmailActivationPasswordCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetActivationPasswordWithExpirationTimeCompletedEventHandler SetActivationPasswordWithExpirationTimeCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateBlackBerryUser", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject CreateBlackBerryUser(int itemId, int accountId) {
|
||||
object[] results = this.Invoke("CreateBlackBerryUser", new object[] {
|
||||
itemId,
|
||||
accountId});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateBlackBerryUser(int itemId, int accountId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateBlackBerryUser", new object[] {
|
||||
itemId,
|
||||
accountId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndCreateBlackBerryUser(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateBlackBerryUserAsync(int itemId, int accountId) {
|
||||
this.CreateBlackBerryUserAsync(itemId, accountId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateBlackBerryUserAsync(int itemId, int accountId, object userState) {
|
||||
if ((this.CreateBlackBerryUserOperationCompleted == null)) {
|
||||
this.CreateBlackBerryUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateBlackBerryUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateBlackBerryUser", new object[] {
|
||||
itemId,
|
||||
accountId}, this.CreateBlackBerryUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateBlackBerryUserOperationCompleted(object arg) {
|
||||
if ((this.CreateBlackBerryUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateBlackBerryUserCompleted(this, new CreateBlackBerryUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteBlackBerryUser", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject DeleteBlackBerryUser(int itemId, int accountId) {
|
||||
object[] results = this.Invoke("DeleteBlackBerryUser", new object[] {
|
||||
itemId,
|
||||
accountId});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteBlackBerryUser(int itemId, int accountId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteBlackBerryUser", new object[] {
|
||||
itemId,
|
||||
accountId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndDeleteBlackBerryUser(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteBlackBerryUserAsync(int itemId, int accountId) {
|
||||
this.DeleteBlackBerryUserAsync(itemId, accountId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteBlackBerryUserAsync(int itemId, int accountId, object userState) {
|
||||
if ((this.DeleteBlackBerryUserOperationCompleted == null)) {
|
||||
this.DeleteBlackBerryUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteBlackBerryUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteBlackBerryUser", new object[] {
|
||||
itemId,
|
||||
accountId}, this.DeleteBlackBerryUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteBlackBerryUserOperationCompleted(object arg) {
|
||||
if ((this.DeleteBlackBerryUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteBlackBerryUserCompleted(this, new DeleteBlackBerryUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetBlackBerryUsersPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public OrganizationUsersPagedResult GetBlackBerryUsersPaged(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows) {
|
||||
object[] results = this.Invoke("GetBlackBerryUsersPaged", new object[] {
|
||||
itemId,
|
||||
sortColumn,
|
||||
sortDirection,
|
||||
name,
|
||||
email,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((OrganizationUsersPagedResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetBlackBerryUsersPaged(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetBlackBerryUsersPaged", new object[] {
|
||||
itemId,
|
||||
sortColumn,
|
||||
sortDirection,
|
||||
name,
|
||||
email,
|
||||
startRow,
|
||||
maximumRows}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OrganizationUsersPagedResult EndGetBlackBerryUsersPaged(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((OrganizationUsersPagedResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUsersPagedAsync(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows) {
|
||||
this.GetBlackBerryUsersPagedAsync(itemId, sortColumn, sortDirection, name, email, startRow, maximumRows, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUsersPagedAsync(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows, object userState) {
|
||||
if ((this.GetBlackBerryUsersPagedOperationCompleted == null)) {
|
||||
this.GetBlackBerryUsersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBlackBerryUsersPagedOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetBlackBerryUsersPaged", new object[] {
|
||||
itemId,
|
||||
sortColumn,
|
||||
sortDirection,
|
||||
name,
|
||||
email,
|
||||
startRow,
|
||||
maximumRows}, this.GetBlackBerryUsersPagedOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetBlackBerryUsersPagedOperationCompleted(object arg) {
|
||||
if ((this.GetBlackBerryUsersPagedCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetBlackBerryUsersPagedCompleted(this, new GetBlackBerryUsersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetBlackBerryUserCount", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public IntResult GetBlackBerryUserCount(int itemId, string name, string email) {
|
||||
object[] results = this.Invoke("GetBlackBerryUserCount", new object[] {
|
||||
itemId,
|
||||
name,
|
||||
email});
|
||||
return ((IntResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetBlackBerryUserCount(int itemId, string name, string email, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetBlackBerryUserCount", new object[] {
|
||||
itemId,
|
||||
name,
|
||||
email}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public IntResult EndGetBlackBerryUserCount(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((IntResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUserCountAsync(int itemId, string name, string email) {
|
||||
this.GetBlackBerryUserCountAsync(itemId, name, email, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUserCountAsync(int itemId, string name, string email, object userState) {
|
||||
if ((this.GetBlackBerryUserCountOperationCompleted == null)) {
|
||||
this.GetBlackBerryUserCountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBlackBerryUserCountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetBlackBerryUserCount", new object[] {
|
||||
itemId,
|
||||
name,
|
||||
email}, this.GetBlackBerryUserCountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetBlackBerryUserCountOperationCompleted(object arg) {
|
||||
if ((this.GetBlackBerryUserCountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetBlackBerryUserCountCompleted(this, new GetBlackBerryUserCountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetBlackBerryUserStats", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public BlackBerryUserStatsResult GetBlackBerryUserStats(int itemId, int accountId) {
|
||||
object[] results = this.Invoke("GetBlackBerryUserStats", new object[] {
|
||||
itemId,
|
||||
accountId});
|
||||
return ((BlackBerryUserStatsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetBlackBerryUserStats(int itemId, int accountId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetBlackBerryUserStats", new object[] {
|
||||
itemId,
|
||||
accountId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BlackBerryUserStatsResult EndGetBlackBerryUserStats(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((BlackBerryUserStatsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUserStatsAsync(int itemId, int accountId) {
|
||||
this.GetBlackBerryUserStatsAsync(itemId, accountId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUserStatsAsync(int itemId, int accountId, object userState) {
|
||||
if ((this.GetBlackBerryUserStatsOperationCompleted == null)) {
|
||||
this.GetBlackBerryUserStatsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBlackBerryUserStatsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetBlackBerryUserStats", new object[] {
|
||||
itemId,
|
||||
accountId}, this.GetBlackBerryUserStatsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetBlackBerryUserStatsOperationCompleted(object arg) {
|
||||
if ((this.GetBlackBerryUserStatsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetBlackBerryUserStatsCompleted(this, new GetBlackBerryUserStatsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDataFromBlackBerryDevice", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject DeleteDataFromBlackBerryDevice(int itemId, int accountId) {
|
||||
object[] results = this.Invoke("DeleteDataFromBlackBerryDevice", new object[] {
|
||||
itemId,
|
||||
accountId});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteDataFromBlackBerryDevice(int itemId, int accountId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteDataFromBlackBerryDevice", new object[] {
|
||||
itemId,
|
||||
accountId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndDeleteDataFromBlackBerryDevice(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteDataFromBlackBerryDeviceAsync(int itemId, int accountId) {
|
||||
this.DeleteDataFromBlackBerryDeviceAsync(itemId, accountId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteDataFromBlackBerryDeviceAsync(int itemId, int accountId, object userState) {
|
||||
if ((this.DeleteDataFromBlackBerryDeviceOperationCompleted == null)) {
|
||||
this.DeleteDataFromBlackBerryDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDataFromBlackBerryDeviceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteDataFromBlackBerryDevice", new object[] {
|
||||
itemId,
|
||||
accountId}, this.DeleteDataFromBlackBerryDeviceOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteDataFromBlackBerryDeviceOperationCompleted(object arg) {
|
||||
if ((this.DeleteDataFromBlackBerryDeviceCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteDataFromBlackBerryDeviceCompleted(this, new DeleteDataFromBlackBerryDeviceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetEmailActivationPassword", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject SetEmailActivationPassword(int itemId, int accountId) {
|
||||
object[] results = this.Invoke("SetEmailActivationPassword", new object[] {
|
||||
itemId,
|
||||
accountId});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetEmailActivationPassword(int itemId, int accountId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetEmailActivationPassword", new object[] {
|
||||
itemId,
|
||||
accountId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndSetEmailActivationPassword(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetEmailActivationPasswordAsync(int itemId, int accountId) {
|
||||
this.SetEmailActivationPasswordAsync(itemId, accountId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetEmailActivationPasswordAsync(int itemId, int accountId, object userState) {
|
||||
if ((this.SetEmailActivationPasswordOperationCompleted == null)) {
|
||||
this.SetEmailActivationPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEmailActivationPasswordOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetEmailActivationPassword", new object[] {
|
||||
itemId,
|
||||
accountId}, this.SetEmailActivationPasswordOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSetEmailActivationPasswordOperationCompleted(object arg) {
|
||||
if ((this.SetEmailActivationPasswordCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SetEmailActivationPasswordCompleted(this, new SetEmailActivationPasswordCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetActivationPasswordWithExpiratio" +
|
||||
"nTime", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject SetActivationPasswordWithExpirationTime(int itemId, int accountId, string password, int time) {
|
||||
object[] results = this.Invoke("SetActivationPasswordWithExpirationTime", new object[] {
|
||||
itemId,
|
||||
accountId,
|
||||
password,
|
||||
time});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetActivationPasswordWithExpirationTime(int itemId, int accountId, string password, int time, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetActivationPasswordWithExpirationTime", new object[] {
|
||||
itemId,
|
||||
accountId,
|
||||
password,
|
||||
time}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndSetActivationPasswordWithExpirationTime(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetActivationPasswordWithExpirationTimeAsync(int itemId, int accountId, string password, int time) {
|
||||
this.SetActivationPasswordWithExpirationTimeAsync(itemId, accountId, password, time, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetActivationPasswordWithExpirationTimeAsync(int itemId, int accountId, string password, int time, object userState) {
|
||||
if ((this.SetActivationPasswordWithExpirationTimeOperationCompleted == null)) {
|
||||
this.SetActivationPasswordWithExpirationTimeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetActivationPasswordWithExpirationTimeOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetActivationPasswordWithExpirationTime", new object[] {
|
||||
itemId,
|
||||
accountId,
|
||||
password,
|
||||
time}, this.SetActivationPasswordWithExpirationTimeOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSetActivationPasswordWithExpirationTimeOperationCompleted(object arg) {
|
||||
if ((this.SetActivationPasswordWithExpirationTimeCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SetActivationPasswordWithExpirationTimeCompleted(this, new SetActivationPasswordWithExpirationTimeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CreateBlackBerryUserCompletedEventHandler(object sender, CreateBlackBerryUserCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CreateBlackBerryUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CreateBlackBerryUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteBlackBerryUserCompletedEventHandler(object sender, DeleteBlackBerryUserCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteBlackBerryUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteBlackBerryUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetBlackBerryUsersPagedCompletedEventHandler(object sender, GetBlackBerryUsersPagedCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetBlackBerryUsersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetBlackBerryUsersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OrganizationUsersPagedResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((OrganizationUsersPagedResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetBlackBerryUserCountCompletedEventHandler(object sender, GetBlackBerryUserCountCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetBlackBerryUserCountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetBlackBerryUserCountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public IntResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((IntResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetBlackBerryUserStatsCompletedEventHandler(object sender, GetBlackBerryUserStatsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetBlackBerryUserStatsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetBlackBerryUserStatsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BlackBerryUserStatsResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((BlackBerryUserStatsResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteDataFromBlackBerryDeviceCompletedEventHandler(object sender, DeleteDataFromBlackBerryDeviceCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteDataFromBlackBerryDeviceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteDataFromBlackBerryDeviceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetEmailActivationPasswordCompletedEventHandler(object sender, SetEmailActivationPasswordCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class SetEmailActivationPasswordCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal SetEmailActivationPasswordCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetActivationPasswordWithExpirationTimeCompletedEventHandler(object sender, SetActivationPasswordWithExpirationTimeCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class SetActivationPasswordWithExpirationTimeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal SetActivationPasswordWithExpirationTimeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,300 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using System.Data;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esCommentsSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
||||
public partial class esComments : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetCommentsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddCommentOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteCommentOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esComments() {
|
||||
this.Url = "http://localhost/WebsitePanelEnterpriseServer11/esComments.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetCommentsCompletedEventHandler GetCommentsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddCommentCompletedEventHandler AddCommentCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteCommentCompletedEventHandler DeleteCommentCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetComments", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public System.Data.DataSet GetComments(int userId, string itemTypeId, int itemId) {
|
||||
object[] results = this.Invoke("GetComments", new object[] {
|
||||
userId,
|
||||
itemTypeId,
|
||||
itemId});
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetComments(int userId, string itemTypeId, int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetComments", new object[] {
|
||||
userId,
|
||||
itemTypeId,
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet EndGetComments(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetCommentsAsync(int userId, string itemTypeId, int itemId) {
|
||||
this.GetCommentsAsync(userId, itemTypeId, itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetCommentsAsync(int userId, string itemTypeId, int itemId, object userState) {
|
||||
if ((this.GetCommentsOperationCompleted == null)) {
|
||||
this.GetCommentsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCommentsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetComments", new object[] {
|
||||
userId,
|
||||
itemTypeId,
|
||||
itemId}, this.GetCommentsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetCommentsOperationCompleted(object arg) {
|
||||
if ((this.GetCommentsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetCommentsCompleted(this, new GetCommentsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddComment", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int AddComment(string itemTypeId, int itemId, string commentText, int severityId) {
|
||||
object[] results = this.Invoke("AddComment", new object[] {
|
||||
itemTypeId,
|
||||
itemId,
|
||||
commentText,
|
||||
severityId});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddComment(string itemTypeId, int itemId, string commentText, int severityId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddComment", new object[] {
|
||||
itemTypeId,
|
||||
itemId,
|
||||
commentText,
|
||||
severityId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndAddComment(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddCommentAsync(string itemTypeId, int itemId, string commentText, int severityId) {
|
||||
this.AddCommentAsync(itemTypeId, itemId, commentText, severityId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddCommentAsync(string itemTypeId, int itemId, string commentText, int severityId, object userState) {
|
||||
if ((this.AddCommentOperationCompleted == null)) {
|
||||
this.AddCommentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddCommentOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddComment", new object[] {
|
||||
itemTypeId,
|
||||
itemId,
|
||||
commentText,
|
||||
severityId}, this.AddCommentOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddCommentOperationCompleted(object arg) {
|
||||
if ((this.AddCommentCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddCommentCompleted(this, new AddCommentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteComment", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int DeleteComment(int commentId) {
|
||||
object[] results = this.Invoke("DeleteComment", new object[] {
|
||||
commentId});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteComment(int commentId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteComment", new object[] {
|
||||
commentId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndDeleteComment(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteCommentAsync(int commentId) {
|
||||
this.DeleteCommentAsync(commentId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteCommentAsync(int commentId, object userState) {
|
||||
if ((this.DeleteCommentOperationCompleted == null)) {
|
||||
this.DeleteCommentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteCommentOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteComment", new object[] {
|
||||
commentId}, this.DeleteCommentOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteCommentOperationCompleted(object arg) {
|
||||
if ((this.DeleteCommentCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteCommentCompleted(this, new DeleteCommentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetCommentsCompletedEventHandler(object sender, GetCommentsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetCommentsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetCommentsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((System.Data.DataSet)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddCommentCompletedEventHandler(object sender, AddCommentCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AddCommentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AddCommentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteCommentCompletedEventHandler(object sender, DeleteCommentCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteCommentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteCommentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,93 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using Microsoft.Web.Services3;
|
||||
using Microsoft.Web.Services3.Design;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public class EnterpriseServerProxyConfigurator
|
||||
{
|
||||
private string enterpriseServerUrl;
|
||||
private string username;
|
||||
private string password;
|
||||
|
||||
public string EnterpriseServerUrl
|
||||
{
|
||||
get { return this.enterpriseServerUrl; }
|
||||
set { this.enterpriseServerUrl = value; }
|
||||
}
|
||||
|
||||
public string Username
|
||||
{
|
||||
get { return this.username; }
|
||||
set { this.username = value; }
|
||||
}
|
||||
|
||||
public string Password
|
||||
{
|
||||
get { return this.password; }
|
||||
set { this.password = value; }
|
||||
}
|
||||
|
||||
public void Configure(WebServicesClientProtocol proxy)
|
||||
{
|
||||
// set proxy URL
|
||||
string serverUrl = enterpriseServerUrl.Trim();
|
||||
if (serverUrl.Length == 0)
|
||||
throw new Exception("Enterprise Server URL could not be empty");
|
||||
|
||||
int idx = proxy.Url.LastIndexOf("/");
|
||||
|
||||
// strip the last slash if any
|
||||
if (serverUrl[serverUrl.Length - 1] == '/')
|
||||
serverUrl = serverUrl.Substring(0, serverUrl.Length - 1);
|
||||
|
||||
proxy.Url = serverUrl + proxy.Url.Substring(idx);
|
||||
|
||||
// set timeout
|
||||
proxy.Timeout = 900000; //15 minutes // System.Threading.Timeout.Infinite;
|
||||
|
||||
if (!String.IsNullOrEmpty(username))
|
||||
{
|
||||
// create assertion
|
||||
UsernameAssertion assert = new UsernameAssertion(username, password);
|
||||
|
||||
// apply policy
|
||||
Policy policy = new Policy();
|
||||
policy.Assertions.Add(assert);
|
||||
|
||||
proxy.SetPolicy(policy);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,128 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Xml;
|
||||
using System.Diagnostics;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using WSE = Microsoft.Web.Services3.Security;
|
||||
using Microsoft.Web.Services3;
|
||||
using Microsoft.Web.Services3.Design;
|
||||
using Microsoft.Web.Services3.Security;
|
||||
using Microsoft.Web.Services3.Security.Tokens;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public class UsernameAssertion : SecurityPolicyAssertion
|
||||
{
|
||||
#region Public properties
|
||||
|
||||
private string username;
|
||||
public string Username
|
||||
{
|
||||
get { return username; }
|
||||
set { username = value; }
|
||||
}
|
||||
|
||||
|
||||
private string password;
|
||||
public string Password
|
||||
{
|
||||
get { return password; }
|
||||
set { password = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
public UsernameAssertion()
|
||||
{
|
||||
}
|
||||
|
||||
public UsernameAssertion(string username, string password)
|
||||
{
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public override SoapFilter CreateServiceInputFilter(FilterCreationContext context)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public override SoapFilter CreateServiceOutputFilter(FilterCreationContext context)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public override SoapFilter CreateClientInputFilter(FilterCreationContext context)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public override SoapFilter CreateClientOutputFilter(FilterCreationContext context)
|
||||
{
|
||||
return new ClientOutputFilter(this, context);
|
||||
}
|
||||
|
||||
#region ClientOutputFilter
|
||||
public class ClientOutputFilter : SendSecurityFilter
|
||||
{
|
||||
UsernameAssertion parentAssertion;
|
||||
FilterCreationContext filterContext;
|
||||
|
||||
public ClientOutputFilter(UsernameAssertion parentAssertion, FilterCreationContext filterContext)
|
||||
: base(parentAssertion.ServiceActor, false, parentAssertion.ClientActor)
|
||||
{
|
||||
this.parentAssertion = parentAssertion;
|
||||
this.filterContext = filterContext;
|
||||
}
|
||||
|
||||
public override void SecureMessage(SoapEnvelope envelope, WSE.Security security)
|
||||
{
|
||||
// create username token
|
||||
UsernameToken userToken = new UsernameToken(parentAssertion.Username, parentAssertion.Password,
|
||||
PasswordOption.SendNone);
|
||||
|
||||
// Add the token to the SOAP header.
|
||||
security.Tokens.Add(userToken);
|
||||
|
||||
// Sign the SOAP message by using the UsernameToken.
|
||||
MessageSignature sig = new MessageSignature(userToken);
|
||||
security.Elements.Add(sig);
|
||||
|
||||
// Encrypt SOAP message
|
||||
EncryptedData data = new EncryptedData(userToken);
|
||||
security.Elements.Add(data);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,950 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4952
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Xml.Serialization;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
using WebsitePanel.Providers;
|
||||
using WebsitePanel.Providers.Common;
|
||||
using WebsitePanel.Providers.ExchangeHostedEdition;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esExchangeHostedEditionSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class esExchangeHostedEdition : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetOrganizationsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateExchangeOrganizationOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetExchangeOrganizationDetailsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetExchangeOrganizationDomainsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetExchangeOrganizationSummaryOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SendExchangeOrganizationSummaryOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddExchangeOrganizationDomainOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteExchangeOrganizationDomainOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateExchangeOrganizationQuotasOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateExchangeOrganizationCatchAllAddressOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateExchangeOrganizationServicePlanOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteExchangeOrganizationOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esExchangeHostedEdition() {
|
||||
this.Url = "http://localhost:9002/esExchangeHostedEdition.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetOrganizationsCompletedEventHandler GetOrganizationsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateExchangeOrganizationCompletedEventHandler CreateExchangeOrganizationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetExchangeOrganizationDetailsCompletedEventHandler GetExchangeOrganizationDetailsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetExchangeOrganizationDomainsCompletedEventHandler GetExchangeOrganizationDomainsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetExchangeOrganizationSummaryCompletedEventHandler GetExchangeOrganizationSummaryCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SendExchangeOrganizationSummaryCompletedEventHandler SendExchangeOrganizationSummaryCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddExchangeOrganizationDomainCompletedEventHandler AddExchangeOrganizationDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteExchangeOrganizationDomainCompletedEventHandler DeleteExchangeOrganizationDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateExchangeOrganizationQuotasCompletedEventHandler UpdateExchangeOrganizationQuotasCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateExchangeOrganizationCatchAllAddressCompletedEventHandler UpdateExchangeOrganizationCatchAllAddressCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateExchangeOrganizationServicePlanCompletedEventHandler UpdateExchangeOrganizationServicePlanCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteExchangeOrganizationCompletedEventHandler DeleteExchangeOrganizationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizations", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ExchangeOrganization[] GetOrganizations(int packageId) {
|
||||
object[] results = this.Invoke("GetOrganizations", new object[] {
|
||||
packageId});
|
||||
return ((ExchangeOrganization[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetOrganizations(int packageId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetOrganizations", new object[] {
|
||||
packageId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganization[] EndGetOrganizations(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ExchangeOrganization[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOrganizationsAsync(int packageId) {
|
||||
this.GetOrganizationsAsync(packageId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOrganizationsAsync(int packageId, object userState) {
|
||||
if ((this.GetOrganizationsOperationCompleted == null)) {
|
||||
this.GetOrganizationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetOrganizations", new object[] {
|
||||
packageId}, this.GetOrganizationsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetOrganizationsOperationCompleted(object arg) {
|
||||
if ((this.GetOrganizationsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetOrganizationsCompleted(this, new GetOrganizationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateExchangeOrganization", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public IntResult CreateExchangeOrganization(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword) {
|
||||
object[] results = this.Invoke("CreateExchangeOrganization", new object[] {
|
||||
packageId,
|
||||
organizationId,
|
||||
domain,
|
||||
adminName,
|
||||
adminEmail,
|
||||
adminPassword});
|
||||
return ((IntResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateExchangeOrganization(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateExchangeOrganization", new object[] {
|
||||
packageId,
|
||||
organizationId,
|
||||
domain,
|
||||
adminName,
|
||||
adminEmail,
|
||||
adminPassword}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public IntResult EndCreateExchangeOrganization(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((IntResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateExchangeOrganizationAsync(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword) {
|
||||
this.CreateExchangeOrganizationAsync(packageId, organizationId, domain, adminName, adminEmail, adminPassword, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateExchangeOrganizationAsync(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword, object userState) {
|
||||
if ((this.CreateExchangeOrganizationOperationCompleted == null)) {
|
||||
this.CreateExchangeOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateExchangeOrganizationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateExchangeOrganization", new object[] {
|
||||
packageId,
|
||||
organizationId,
|
||||
domain,
|
||||
adminName,
|
||||
adminEmail,
|
||||
adminPassword}, this.CreateExchangeOrganizationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateExchangeOrganizationOperationCompleted(object arg) {
|
||||
if ((this.CreateExchangeOrganizationCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateExchangeOrganizationCompleted(this, new CreateExchangeOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetExchangeOrganizationDetails", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ExchangeOrganization GetExchangeOrganizationDetails(int itemId) {
|
||||
object[] results = this.Invoke("GetExchangeOrganizationDetails", new object[] {
|
||||
itemId});
|
||||
return ((ExchangeOrganization)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetExchangeOrganizationDetails(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetExchangeOrganizationDetails", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganization EndGetExchangeOrganizationDetails(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ExchangeOrganization)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetExchangeOrganizationDetailsAsync(int itemId) {
|
||||
this.GetExchangeOrganizationDetailsAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetExchangeOrganizationDetailsAsync(int itemId, object userState) {
|
||||
if ((this.GetExchangeOrganizationDetailsOperationCompleted == null)) {
|
||||
this.GetExchangeOrganizationDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExchangeOrganizationDetailsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetExchangeOrganizationDetails", new object[] {
|
||||
itemId}, this.GetExchangeOrganizationDetailsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetExchangeOrganizationDetailsOperationCompleted(object arg) {
|
||||
if ((this.GetExchangeOrganizationDetailsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetExchangeOrganizationDetailsCompleted(this, new GetExchangeOrganizationDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetExchangeOrganizationDomains", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ExchangeOrganizationDomain[] GetExchangeOrganizationDomains(int itemId) {
|
||||
object[] results = this.Invoke("GetExchangeOrganizationDomains", new object[] {
|
||||
itemId});
|
||||
return ((ExchangeOrganizationDomain[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetExchangeOrganizationDomains(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetExchangeOrganizationDomains", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganizationDomain[] EndGetExchangeOrganizationDomains(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ExchangeOrganizationDomain[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetExchangeOrganizationDomainsAsync(int itemId) {
|
||||
this.GetExchangeOrganizationDomainsAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetExchangeOrganizationDomainsAsync(int itemId, object userState) {
|
||||
if ((this.GetExchangeOrganizationDomainsOperationCompleted == null)) {
|
||||
this.GetExchangeOrganizationDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExchangeOrganizationDomainsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetExchangeOrganizationDomains", new object[] {
|
||||
itemId}, this.GetExchangeOrganizationDomainsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetExchangeOrganizationDomainsOperationCompleted(object arg) {
|
||||
if ((this.GetExchangeOrganizationDomainsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetExchangeOrganizationDomainsCompleted(this, new GetExchangeOrganizationDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetExchangeOrganizationSummary", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string GetExchangeOrganizationSummary(int itemId) {
|
||||
object[] results = this.Invoke("GetExchangeOrganizationSummary", new object[] {
|
||||
itemId});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetExchangeOrganizationSummary(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetExchangeOrganizationSummary", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndGetExchangeOrganizationSummary(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetExchangeOrganizationSummaryAsync(int itemId) {
|
||||
this.GetExchangeOrganizationSummaryAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetExchangeOrganizationSummaryAsync(int itemId, object userState) {
|
||||
if ((this.GetExchangeOrganizationSummaryOperationCompleted == null)) {
|
||||
this.GetExchangeOrganizationSummaryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExchangeOrganizationSummaryOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetExchangeOrganizationSummary", new object[] {
|
||||
itemId}, this.GetExchangeOrganizationSummaryOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetExchangeOrganizationSummaryOperationCompleted(object arg) {
|
||||
if ((this.GetExchangeOrganizationSummaryCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetExchangeOrganizationSummaryCompleted(this, new GetExchangeOrganizationSummaryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SendExchangeOrganizationSummary", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject SendExchangeOrganizationSummary(int itemId, string toEmail) {
|
||||
object[] results = this.Invoke("SendExchangeOrganizationSummary", new object[] {
|
||||
itemId,
|
||||
toEmail});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSendExchangeOrganizationSummary(int itemId, string toEmail, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SendExchangeOrganizationSummary", new object[] {
|
||||
itemId,
|
||||
toEmail}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndSendExchangeOrganizationSummary(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SendExchangeOrganizationSummaryAsync(int itemId, string toEmail) {
|
||||
this.SendExchangeOrganizationSummaryAsync(itemId, toEmail, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SendExchangeOrganizationSummaryAsync(int itemId, string toEmail, object userState) {
|
||||
if ((this.SendExchangeOrganizationSummaryOperationCompleted == null)) {
|
||||
this.SendExchangeOrganizationSummaryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendExchangeOrganizationSummaryOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SendExchangeOrganizationSummary", new object[] {
|
||||
itemId,
|
||||
toEmail}, this.SendExchangeOrganizationSummaryOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSendExchangeOrganizationSummaryOperationCompleted(object arg) {
|
||||
if ((this.SendExchangeOrganizationSummaryCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SendExchangeOrganizationSummaryCompleted(this, new SendExchangeOrganizationSummaryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddExchangeOrganizationDomain", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject AddExchangeOrganizationDomain(int itemId, string domain) {
|
||||
object[] results = this.Invoke("AddExchangeOrganizationDomain", new object[] {
|
||||
itemId,
|
||||
domain});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddExchangeOrganizationDomain(int itemId, string domain, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddExchangeOrganizationDomain", new object[] {
|
||||
itemId,
|
||||
domain}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndAddExchangeOrganizationDomain(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddExchangeOrganizationDomainAsync(int itemId, string domain) {
|
||||
this.AddExchangeOrganizationDomainAsync(itemId, domain, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddExchangeOrganizationDomainAsync(int itemId, string domain, object userState) {
|
||||
if ((this.AddExchangeOrganizationDomainOperationCompleted == null)) {
|
||||
this.AddExchangeOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddExchangeOrganizationDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddExchangeOrganizationDomain", new object[] {
|
||||
itemId,
|
||||
domain}, this.AddExchangeOrganizationDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddExchangeOrganizationDomainOperationCompleted(object arg) {
|
||||
if ((this.AddExchangeOrganizationDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddExchangeOrganizationDomainCompleted(this, new AddExchangeOrganizationDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteExchangeOrganizationDomain", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject DeleteExchangeOrganizationDomain(int itemId, string domain) {
|
||||
object[] results = this.Invoke("DeleteExchangeOrganizationDomain", new object[] {
|
||||
itemId,
|
||||
domain});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteExchangeOrganizationDomain(int itemId, string domain, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteExchangeOrganizationDomain", new object[] {
|
||||
itemId,
|
||||
domain}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndDeleteExchangeOrganizationDomain(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteExchangeOrganizationDomainAsync(int itemId, string domain) {
|
||||
this.DeleteExchangeOrganizationDomainAsync(itemId, domain, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteExchangeOrganizationDomainAsync(int itemId, string domain, object userState) {
|
||||
if ((this.DeleteExchangeOrganizationDomainOperationCompleted == null)) {
|
||||
this.DeleteExchangeOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteExchangeOrganizationDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteExchangeOrganizationDomain", new object[] {
|
||||
itemId,
|
||||
domain}, this.DeleteExchangeOrganizationDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteExchangeOrganizationDomainOperationCompleted(object arg) {
|
||||
if ((this.DeleteExchangeOrganizationDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteExchangeOrganizationDomainCompleted(this, new DeleteExchangeOrganizationDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateExchangeOrganizationQuotas", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject UpdateExchangeOrganizationQuotas(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) {
|
||||
object[] results = this.Invoke("UpdateExchangeOrganizationQuotas", new object[] {
|
||||
itemId,
|
||||
mailboxesNumber,
|
||||
contactsNumber,
|
||||
distributionListsNumber});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateExchangeOrganizationQuotas(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateExchangeOrganizationQuotas", new object[] {
|
||||
itemId,
|
||||
mailboxesNumber,
|
||||
contactsNumber,
|
||||
distributionListsNumber}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndUpdateExchangeOrganizationQuotas(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateExchangeOrganizationQuotasAsync(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) {
|
||||
this.UpdateExchangeOrganizationQuotasAsync(itemId, mailboxesNumber, contactsNumber, distributionListsNumber, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateExchangeOrganizationQuotasAsync(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, object userState) {
|
||||
if ((this.UpdateExchangeOrganizationQuotasOperationCompleted == null)) {
|
||||
this.UpdateExchangeOrganizationQuotasOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateExchangeOrganizationQuotasOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateExchangeOrganizationQuotas", new object[] {
|
||||
itemId,
|
||||
mailboxesNumber,
|
||||
contactsNumber,
|
||||
distributionListsNumber}, this.UpdateExchangeOrganizationQuotasOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateExchangeOrganizationQuotasOperationCompleted(object arg) {
|
||||
if ((this.UpdateExchangeOrganizationQuotasCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateExchangeOrganizationQuotasCompleted(this, new UpdateExchangeOrganizationQuotasCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateExchangeOrganizationCatchAllAd" +
|
||||
"dress", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject UpdateExchangeOrganizationCatchAllAddress(int itemId, string catchAllEmail) {
|
||||
object[] results = this.Invoke("UpdateExchangeOrganizationCatchAllAddress", new object[] {
|
||||
itemId,
|
||||
catchAllEmail});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateExchangeOrganizationCatchAllAddress(int itemId, string catchAllEmail, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateExchangeOrganizationCatchAllAddress", new object[] {
|
||||
itemId,
|
||||
catchAllEmail}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndUpdateExchangeOrganizationCatchAllAddress(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateExchangeOrganizationCatchAllAddressAsync(int itemId, string catchAllEmail) {
|
||||
this.UpdateExchangeOrganizationCatchAllAddressAsync(itemId, catchAllEmail, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateExchangeOrganizationCatchAllAddressAsync(int itemId, string catchAllEmail, object userState) {
|
||||
if ((this.UpdateExchangeOrganizationCatchAllAddressOperationCompleted == null)) {
|
||||
this.UpdateExchangeOrganizationCatchAllAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateExchangeOrganizationCatchAllAddressOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateExchangeOrganizationCatchAllAddress", new object[] {
|
||||
itemId,
|
||||
catchAllEmail}, this.UpdateExchangeOrganizationCatchAllAddressOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateExchangeOrganizationCatchAllAddressOperationCompleted(object arg) {
|
||||
if ((this.UpdateExchangeOrganizationCatchAllAddressCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateExchangeOrganizationCatchAllAddressCompleted(this, new UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateExchangeOrganizationServicePla" +
|
||||
"n", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject UpdateExchangeOrganizationServicePlan(int itemId, int newServiceId) {
|
||||
object[] results = this.Invoke("UpdateExchangeOrganizationServicePlan", new object[] {
|
||||
itemId,
|
||||
newServiceId});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateExchangeOrganizationServicePlan(int itemId, int newServiceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateExchangeOrganizationServicePlan", new object[] {
|
||||
itemId,
|
||||
newServiceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndUpdateExchangeOrganizationServicePlan(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateExchangeOrganizationServicePlanAsync(int itemId, int newServiceId) {
|
||||
this.UpdateExchangeOrganizationServicePlanAsync(itemId, newServiceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateExchangeOrganizationServicePlanAsync(int itemId, int newServiceId, object userState) {
|
||||
if ((this.UpdateExchangeOrganizationServicePlanOperationCompleted == null)) {
|
||||
this.UpdateExchangeOrganizationServicePlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateExchangeOrganizationServicePlanOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateExchangeOrganizationServicePlan", new object[] {
|
||||
itemId,
|
||||
newServiceId}, this.UpdateExchangeOrganizationServicePlanOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateExchangeOrganizationServicePlanOperationCompleted(object arg) {
|
||||
if ((this.UpdateExchangeOrganizationServicePlanCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateExchangeOrganizationServicePlanCompleted(this, new UpdateExchangeOrganizationServicePlanCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteExchangeOrganization", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject DeleteExchangeOrganization(int itemId) {
|
||||
object[] results = this.Invoke("DeleteExchangeOrganization", new object[] {
|
||||
itemId});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteExchangeOrganization(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteExchangeOrganization", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndDeleteExchangeOrganization(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteExchangeOrganizationAsync(int itemId) {
|
||||
this.DeleteExchangeOrganizationAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteExchangeOrganizationAsync(int itemId, object userState) {
|
||||
if ((this.DeleteExchangeOrganizationOperationCompleted == null)) {
|
||||
this.DeleteExchangeOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteExchangeOrganizationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteExchangeOrganization", new object[] {
|
||||
itemId}, this.DeleteExchangeOrganizationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteExchangeOrganizationOperationCompleted(object arg) {
|
||||
if ((this.DeleteExchangeOrganizationCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteExchangeOrganizationCompleted(this, new DeleteExchangeOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetOrganizationsCompletedEventHandler(object sender, GetOrganizationsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetOrganizationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetOrganizationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganization[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ExchangeOrganization[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CreateExchangeOrganizationCompletedEventHandler(object sender, CreateExchangeOrganizationCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CreateExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CreateExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public IntResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((IntResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetExchangeOrganizationDetailsCompletedEventHandler(object sender, GetExchangeOrganizationDetailsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetExchangeOrganizationDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetExchangeOrganizationDetailsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganization Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ExchangeOrganization)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetExchangeOrganizationDomainsCompletedEventHandler(object sender, GetExchangeOrganizationDomainsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetExchangeOrganizationDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetExchangeOrganizationDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganizationDomain[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ExchangeOrganizationDomain[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetExchangeOrganizationSummaryCompletedEventHandler(object sender, GetExchangeOrganizationSummaryCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetExchangeOrganizationSummaryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetExchangeOrganizationSummaryCompletedEventArgs(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 SendExchangeOrganizationSummaryCompletedEventHandler(object sender, SendExchangeOrganizationSummaryCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class SendExchangeOrganizationSummaryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal SendExchangeOrganizationSummaryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddExchangeOrganizationDomainCompletedEventHandler(object sender, AddExchangeOrganizationDomainCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AddExchangeOrganizationDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AddExchangeOrganizationDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteExchangeOrganizationDomainCompletedEventHandler(object sender, DeleteExchangeOrganizationDomainCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteExchangeOrganizationDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteExchangeOrganizationDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateExchangeOrganizationQuotasCompletedEventHandler(object sender, UpdateExchangeOrganizationQuotasCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UpdateExchangeOrganizationQuotasCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UpdateExchangeOrganizationQuotasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateExchangeOrganizationCatchAllAddressCompletedEventHandler(object sender, UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateExchangeOrganizationServicePlanCompletedEventHandler(object sender, UpdateExchangeOrganizationServicePlanCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UpdateExchangeOrganizationServicePlanCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UpdateExchangeOrganizationServicePlanCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteExchangeOrganizationCompletedEventHandler(object sender, DeleteExchangeOrganizationCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,594 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using System.Data;
|
||||
using WebsitePanel.Providers;
|
||||
using WebsitePanel.Providers.FTP;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esFtpServersSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class esFtpServers : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetFtpSitesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetRawFtpAccountsPagedOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetFtpAccountsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetFtpAccountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddFtpAccountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateFtpAccountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteFtpAccountOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esFtpServers() {
|
||||
this.Url = "http://localhost/WebsitePanelEnterpriseServer11/esFtpServers.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetFtpSitesCompletedEventHandler GetFtpSitesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetRawFtpAccountsPagedCompletedEventHandler GetRawFtpAccountsPagedCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetFtpAccountsCompletedEventHandler GetFtpAccountsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetFtpAccountCompletedEventHandler GetFtpAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddFtpAccountCompletedEventHandler AddFtpAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateFtpAccountCompletedEventHandler UpdateFtpAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteFtpAccountCompletedEventHandler DeleteFtpAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetFtpSites", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public FtpSite[] GetFtpSites(int serviceId) {
|
||||
object[] results = this.Invoke("GetFtpSites", new object[] {
|
||||
serviceId});
|
||||
return ((FtpSite[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetFtpSites(int serviceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetFtpSites", new object[] {
|
||||
serviceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpSite[] EndGetFtpSites(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((FtpSite[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetFtpSitesAsync(int serviceId) {
|
||||
this.GetFtpSitesAsync(serviceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetFtpSitesAsync(int serviceId, object userState) {
|
||||
if ((this.GetFtpSitesOperationCompleted == null)) {
|
||||
this.GetFtpSitesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFtpSitesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetFtpSites", new object[] {
|
||||
serviceId}, this.GetFtpSitesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetFtpSitesOperationCompleted(object arg) {
|
||||
if ((this.GetFtpSitesCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetFtpSitesCompleted(this, new GetFtpSitesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawFtpAccountsPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public System.Data.DataSet GetRawFtpAccountsPaged(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) {
|
||||
object[] results = this.Invoke("GetRawFtpAccountsPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetRawFtpAccountsPaged(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetRawFtpAccountsPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet EndGetRawFtpAccountsPaged(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetRawFtpAccountsPagedAsync(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) {
|
||||
this.GetRawFtpAccountsPagedAsync(packageId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetRawFtpAccountsPagedAsync(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) {
|
||||
if ((this.GetRawFtpAccountsPagedOperationCompleted == null)) {
|
||||
this.GetRawFtpAccountsPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawFtpAccountsPagedOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetRawFtpAccountsPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, this.GetRawFtpAccountsPagedOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetRawFtpAccountsPagedOperationCompleted(object arg) {
|
||||
if ((this.GetRawFtpAccountsPagedCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetRawFtpAccountsPagedCompleted(this, new GetRawFtpAccountsPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetFtpAccounts", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public FtpAccount[] GetFtpAccounts(int packageId, bool recursive) {
|
||||
object[] results = this.Invoke("GetFtpAccounts", new object[] {
|
||||
packageId,
|
||||
recursive});
|
||||
return ((FtpAccount[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetFtpAccounts(int packageId, bool recursive, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetFtpAccounts", new object[] {
|
||||
packageId,
|
||||
recursive}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpAccount[] EndGetFtpAccounts(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((FtpAccount[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetFtpAccountsAsync(int packageId, bool recursive) {
|
||||
this.GetFtpAccountsAsync(packageId, recursive, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetFtpAccountsAsync(int packageId, bool recursive, object userState) {
|
||||
if ((this.GetFtpAccountsOperationCompleted == null)) {
|
||||
this.GetFtpAccountsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFtpAccountsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetFtpAccounts", new object[] {
|
||||
packageId,
|
||||
recursive}, this.GetFtpAccountsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetFtpAccountsOperationCompleted(object arg) {
|
||||
if ((this.GetFtpAccountsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetFtpAccountsCompleted(this, new GetFtpAccountsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetFtpAccount", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public FtpAccount GetFtpAccount(int itemId) {
|
||||
object[] results = this.Invoke("GetFtpAccount", new object[] {
|
||||
itemId});
|
||||
return ((FtpAccount)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetFtpAccount(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetFtpAccount", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpAccount EndGetFtpAccount(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((FtpAccount)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetFtpAccountAsync(int itemId) {
|
||||
this.GetFtpAccountAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetFtpAccountAsync(int itemId, object userState) {
|
||||
if ((this.GetFtpAccountOperationCompleted == null)) {
|
||||
this.GetFtpAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFtpAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetFtpAccount", new object[] {
|
||||
itemId}, this.GetFtpAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetFtpAccountOperationCompleted(object arg) {
|
||||
if ((this.GetFtpAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetFtpAccountCompleted(this, new GetFtpAccountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddFtpAccount", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int AddFtpAccount(FtpAccount item) {
|
||||
object[] results = this.Invoke("AddFtpAccount", new object[] {
|
||||
item});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddFtpAccount(FtpAccount item, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddFtpAccount", new object[] {
|
||||
item}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndAddFtpAccount(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddFtpAccountAsync(FtpAccount item) {
|
||||
this.AddFtpAccountAsync(item, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddFtpAccountAsync(FtpAccount item, object userState) {
|
||||
if ((this.AddFtpAccountOperationCompleted == null)) {
|
||||
this.AddFtpAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddFtpAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddFtpAccount", new object[] {
|
||||
item}, this.AddFtpAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddFtpAccountOperationCompleted(object arg) {
|
||||
if ((this.AddFtpAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddFtpAccountCompleted(this, new AddFtpAccountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateFtpAccount", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int UpdateFtpAccount(FtpAccount item) {
|
||||
object[] results = this.Invoke("UpdateFtpAccount", new object[] {
|
||||
item});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateFtpAccount(FtpAccount item, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateFtpAccount", new object[] {
|
||||
item}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndUpdateFtpAccount(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateFtpAccountAsync(FtpAccount item) {
|
||||
this.UpdateFtpAccountAsync(item, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateFtpAccountAsync(FtpAccount item, object userState) {
|
||||
if ((this.UpdateFtpAccountOperationCompleted == null)) {
|
||||
this.UpdateFtpAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateFtpAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateFtpAccount", new object[] {
|
||||
item}, this.UpdateFtpAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateFtpAccountOperationCompleted(object arg) {
|
||||
if ((this.UpdateFtpAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateFtpAccountCompleted(this, new UpdateFtpAccountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteFtpAccount", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int DeleteFtpAccount(int itemId) {
|
||||
object[] results = this.Invoke("DeleteFtpAccount", new object[] {
|
||||
itemId});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteFtpAccount(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteFtpAccount", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndDeleteFtpAccount(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteFtpAccountAsync(int itemId) {
|
||||
this.DeleteFtpAccountAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteFtpAccountAsync(int itemId, object userState) {
|
||||
if ((this.DeleteFtpAccountOperationCompleted == null)) {
|
||||
this.DeleteFtpAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteFtpAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteFtpAccount", new object[] {
|
||||
itemId}, this.DeleteFtpAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteFtpAccountOperationCompleted(object arg) {
|
||||
if ((this.DeleteFtpAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteFtpAccountCompleted(this, new DeleteFtpAccountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetFtpSitesCompletedEventHandler(object sender, GetFtpSitesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetFtpSitesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetFtpSitesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpSite[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((FtpSite[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetRawFtpAccountsPagedCompletedEventHandler(object sender, GetRawFtpAccountsPagedCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetRawFtpAccountsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetRawFtpAccountsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((System.Data.DataSet)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetFtpAccountsCompletedEventHandler(object sender, GetFtpAccountsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetFtpAccountsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetFtpAccountsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpAccount[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((FtpAccount[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetFtpAccountCompletedEventHandler(object sender, GetFtpAccountCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetFtpAccountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetFtpAccountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpAccount Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((FtpAccount)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddFtpAccountCompletedEventHandler(object sender, AddFtpAccountCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AddFtpAccountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AddFtpAccountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateFtpAccountCompletedEventHandler(object sender, UpdateFtpAccountCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UpdateFtpAccountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UpdateFtpAccountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteFtpAccountCompletedEventHandler(object sender, DeleteFtpAccountCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteFtpAccountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteFtpAccountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,339 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using WebsitePanel.Providers;
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name = "esImportSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")]
|
||||
public partial class esImport : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
private System.Threading.SendOrPostCallback GetImportableItemTypesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetImportableItemsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback ImportItemsOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esImport()
|
||||
{
|
||||
this.Url = "http://localhost/EnterpriseServer/esImport.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetImportableItemTypesCompletedEventHandler GetImportableItemTypesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetImportableItemsCompletedEventHandler GetImportableItemsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event ImportItemsCompletedEventHandler ImportItemsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetImportableItemTypes", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ServiceProviderItemType[] GetImportableItemTypes(int packageId)
|
||||
{
|
||||
object[] results = this.Invoke("GetImportableItemTypes", new object[] {
|
||||
packageId});
|
||||
return ((ServiceProviderItemType[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetImportableItemTypes(int packageId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetImportableItemTypes", new object[] {
|
||||
packageId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServiceProviderItemType[] EndGetImportableItemTypes(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ServiceProviderItemType[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetImportableItemTypesAsync(int packageId)
|
||||
{
|
||||
this.GetImportableItemTypesAsync(packageId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetImportableItemTypesAsync(int packageId, object userState)
|
||||
{
|
||||
if ((this.GetImportableItemTypesOperationCompleted == null))
|
||||
{
|
||||
this.GetImportableItemTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetImportableItemTypesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetImportableItemTypes", new object[] {
|
||||
packageId}, this.GetImportableItemTypesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetImportableItemTypesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetImportableItemTypesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetImportableItemTypesCompleted(this, new GetImportableItemTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetImportableItems", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string[] GetImportableItems(int packageId, int itemTypeId)
|
||||
{
|
||||
object[] results = this.Invoke("GetImportableItems", new object[] {
|
||||
packageId,
|
||||
itemTypeId});
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetImportableItems(int packageId, int itemTypeId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetImportableItems", new object[] {
|
||||
packageId,
|
||||
itemTypeId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string[] EndGetImportableItems(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetImportableItemsAsync(int packageId, int itemTypeId)
|
||||
{
|
||||
this.GetImportableItemsAsync(packageId, itemTypeId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetImportableItemsAsync(int packageId, int itemTypeId, object userState)
|
||||
{
|
||||
if ((this.GetImportableItemsOperationCompleted == null))
|
||||
{
|
||||
this.GetImportableItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetImportableItemsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetImportableItems", new object[] {
|
||||
packageId,
|
||||
itemTypeId}, this.GetImportableItemsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetImportableItemsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetImportableItemsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetImportableItemsCompleted(this, new GetImportableItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ImportItems", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int ImportItems(bool async, string taskId, int packageId, string[] items)
|
||||
{
|
||||
object[] results = this.Invoke("ImportItems", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
packageId,
|
||||
items});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginImportItems(bool async, string taskId, int packageId, string[] items, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("ImportItems", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
packageId,
|
||||
items}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndImportItems(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ImportItemsAsync(bool async, string taskId, int packageId, string[] items)
|
||||
{
|
||||
this.ImportItemsAsync(async, taskId, packageId, items, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ImportItemsAsync(bool async, string taskId, int packageId, string[] items, object userState)
|
||||
{
|
||||
if ((this.ImportItemsOperationCompleted == null))
|
||||
{
|
||||
this.ImportItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnImportItemsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ImportItems", new object[] {
|
||||
async,
|
||||
taskId,
|
||||
packageId,
|
||||
items}, this.ImportItemsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnImportItemsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.ImportItemsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ImportItemsCompleted(this, new ImportItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState)
|
||||
{
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetImportableItemTypesCompletedEventHandler(object sender, GetImportableItemTypesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetImportableItemTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetImportableItemTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServiceProviderItemType[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ServiceProviderItemType[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetImportableItemsCompletedEventHandler(object sender, GetImportableItemsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetImportableItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetImportableItemsCompletedEventArgs(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 ImportItemsCompletedEventHandler(object sender, ImportItemsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class ImportItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal ImportItemsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,540 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
using WebsitePanel.Providers.Common;
|
||||
using WebsitePanel.Providers.HostedSolution;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esOCSSoap", Namespace="http://tempuri.org/")]
|
||||
public partial class esOCS : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateOCSUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteOCSUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetOCSUsersPagedOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetOCSUserCountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetUserGeneralSettingsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetUserGeneralSettingsOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esOCS() {
|
||||
this.Url = "http://localhost/WebsitePanelEnterpriseServer/esOCS.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateOCSUserCompletedEventHandler CreateOCSUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteOCSUserCompletedEventHandler DeleteOCSUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetOCSUsersPagedCompletedEventHandler GetOCSUsersPagedCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetOCSUserCountCompletedEventHandler GetOCSUserCountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetUserGeneralSettingsCompletedEventHandler GetUserGeneralSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetUserGeneralSettingsCompletedEventHandler SetUserGeneralSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOCSUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public OCSUserResult CreateOCSUser(int itemId, int accountId) {
|
||||
object[] results = this.Invoke("CreateOCSUser", new object[] {
|
||||
itemId,
|
||||
accountId});
|
||||
return ((OCSUserResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateOCSUser(int itemId, int accountId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateOCSUser", new object[] {
|
||||
itemId,
|
||||
accountId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OCSUserResult EndCreateOCSUser(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((OCSUserResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOCSUserAsync(int itemId, int accountId) {
|
||||
this.CreateOCSUserAsync(itemId, accountId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOCSUserAsync(int itemId, int accountId, object userState) {
|
||||
if ((this.CreateOCSUserOperationCompleted == null)) {
|
||||
this.CreateOCSUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOCSUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateOCSUser", new object[] {
|
||||
itemId,
|
||||
accountId}, this.CreateOCSUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateOCSUserOperationCompleted(object arg) {
|
||||
if ((this.CreateOCSUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateOCSUserCompleted(this, new CreateOCSUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteOCSUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject DeleteOCSUser(int itemId, string instanceId) {
|
||||
object[] results = this.Invoke("DeleteOCSUser", new object[] {
|
||||
itemId,
|
||||
instanceId});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteOCSUser(int itemId, string instanceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteOCSUser", new object[] {
|
||||
itemId,
|
||||
instanceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndDeleteOCSUser(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOCSUserAsync(int itemId, string instanceId) {
|
||||
this.DeleteOCSUserAsync(itemId, instanceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOCSUserAsync(int itemId, string instanceId, object userState) {
|
||||
if ((this.DeleteOCSUserOperationCompleted == null)) {
|
||||
this.DeleteOCSUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOCSUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteOCSUser", new object[] {
|
||||
itemId,
|
||||
instanceId}, this.DeleteOCSUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteOCSUserOperationCompleted(object arg) {
|
||||
if ((this.DeleteOCSUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteOCSUserCompleted(this, new DeleteOCSUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetOCSUsersPaged", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public OCSUsersPagedResult GetOCSUsersPaged(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows) {
|
||||
object[] results = this.Invoke("GetOCSUsersPaged", new object[] {
|
||||
itemId,
|
||||
sortColumn,
|
||||
sortDirection,
|
||||
name,
|
||||
email,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((OCSUsersPagedResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetOCSUsersPaged(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetOCSUsersPaged", new object[] {
|
||||
itemId,
|
||||
sortColumn,
|
||||
sortDirection,
|
||||
name,
|
||||
email,
|
||||
startRow,
|
||||
maximumRows}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OCSUsersPagedResult EndGetOCSUsersPaged(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((OCSUsersPagedResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOCSUsersPagedAsync(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows) {
|
||||
this.GetOCSUsersPagedAsync(itemId, sortColumn, sortDirection, name, email, startRow, maximumRows, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOCSUsersPagedAsync(int itemId, string sortColumn, string sortDirection, string name, string email, int startRow, int maximumRows, object userState) {
|
||||
if ((this.GetOCSUsersPagedOperationCompleted == null)) {
|
||||
this.GetOCSUsersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOCSUsersPagedOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetOCSUsersPaged", new object[] {
|
||||
itemId,
|
||||
sortColumn,
|
||||
sortDirection,
|
||||
name,
|
||||
email,
|
||||
startRow,
|
||||
maximumRows}, this.GetOCSUsersPagedOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetOCSUsersPagedOperationCompleted(object arg) {
|
||||
if ((this.GetOCSUsersPagedCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetOCSUsersPagedCompleted(this, new GetOCSUsersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetOCSUserCount", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public IntResult GetOCSUserCount(int itemId, string name, string email) {
|
||||
object[] results = this.Invoke("GetOCSUserCount", new object[] {
|
||||
itemId,
|
||||
name,
|
||||
email});
|
||||
return ((IntResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetOCSUserCount(int itemId, string name, string email, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetOCSUserCount", new object[] {
|
||||
itemId,
|
||||
name,
|
||||
email}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public IntResult EndGetOCSUserCount(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((IntResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOCSUserCountAsync(int itemId, string name, string email) {
|
||||
this.GetOCSUserCountAsync(itemId, name, email, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOCSUserCountAsync(int itemId, string name, string email, object userState) {
|
||||
if ((this.GetOCSUserCountOperationCompleted == null)) {
|
||||
this.GetOCSUserCountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOCSUserCountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetOCSUserCount", new object[] {
|
||||
itemId,
|
||||
name,
|
||||
email}, this.GetOCSUserCountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetOCSUserCountOperationCompleted(object arg) {
|
||||
if ((this.GetOCSUserCountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetOCSUserCountCompleted(this, new GetOCSUserCountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetUserGeneralSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public OCSUser GetUserGeneralSettings(int itemId, string instanceId) {
|
||||
object[] results = this.Invoke("GetUserGeneralSettings", new object[] {
|
||||
itemId,
|
||||
instanceId});
|
||||
return ((OCSUser)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetUserGeneralSettings(int itemId, string instanceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetUserGeneralSettings", new object[] {
|
||||
itemId,
|
||||
instanceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OCSUser EndGetUserGeneralSettings(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((OCSUser)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserGeneralSettingsAsync(int itemId, string instanceId) {
|
||||
this.GetUserGeneralSettingsAsync(itemId, instanceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserGeneralSettingsAsync(int itemId, string instanceId, object userState) {
|
||||
if ((this.GetUserGeneralSettingsOperationCompleted == null)) {
|
||||
this.GetUserGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserGeneralSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetUserGeneralSettings", new object[] {
|
||||
itemId,
|
||||
instanceId}, this.GetUserGeneralSettingsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetUserGeneralSettingsOperationCompleted(object arg) {
|
||||
if ((this.GetUserGeneralSettingsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetUserGeneralSettingsCompleted(this, new GetUserGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetUserGeneralSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void SetUserGeneralSettings(int itemId, string instanceId, bool enabledForFederation, bool enabledForPublicIMConnectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence) {
|
||||
this.Invoke("SetUserGeneralSettings", new object[] {
|
||||
itemId,
|
||||
instanceId,
|
||||
enabledForFederation,
|
||||
enabledForPublicIMConnectivity,
|
||||
archiveInternalCommunications,
|
||||
archiveFederatedCommunications,
|
||||
enabledForEnhancedPresence});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetUserGeneralSettings(int itemId, string instanceId, bool enabledForFederation, bool enabledForPublicIMConnectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetUserGeneralSettings", new object[] {
|
||||
itemId,
|
||||
instanceId,
|
||||
enabledForFederation,
|
||||
enabledForPublicIMConnectivity,
|
||||
archiveInternalCommunications,
|
||||
archiveFederatedCommunications,
|
||||
enabledForEnhancedPresence}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndSetUserGeneralSettings(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserGeneralSettingsAsync(int itemId, string instanceId, bool enabledForFederation, bool enabledForPublicIMConnectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence) {
|
||||
this.SetUserGeneralSettingsAsync(itemId, instanceId, enabledForFederation, enabledForPublicIMConnectivity, archiveInternalCommunications, archiveFederatedCommunications, enabledForEnhancedPresence, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserGeneralSettingsAsync(int itemId, string instanceId, bool enabledForFederation, bool enabledForPublicIMConnectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence, object userState) {
|
||||
if ((this.SetUserGeneralSettingsOperationCompleted == null)) {
|
||||
this.SetUserGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserGeneralSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetUserGeneralSettings", new object[] {
|
||||
itemId,
|
||||
instanceId,
|
||||
enabledForFederation,
|
||||
enabledForPublicIMConnectivity,
|
||||
archiveInternalCommunications,
|
||||
archiveFederatedCommunications,
|
||||
enabledForEnhancedPresence}, this.SetUserGeneralSettingsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSetUserGeneralSettingsOperationCompleted(object arg) {
|
||||
if ((this.SetUserGeneralSettingsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SetUserGeneralSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CreateOCSUserCompletedEventHandler(object sender, CreateOCSUserCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CreateOCSUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CreateOCSUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OCSUserResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((OCSUserResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteOCSUserCompletedEventHandler(object sender, DeleteOCSUserCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteOCSUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteOCSUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetOCSUsersPagedCompletedEventHandler(object sender, GetOCSUsersPagedCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetOCSUsersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetOCSUsersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OCSUsersPagedResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((OCSUsersPagedResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetOCSUserCountCompletedEventHandler(object sender, GetOCSUserCountCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetOCSUserCountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetOCSUserCountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public IntResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((IntResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetUserGeneralSettingsCompletedEventHandler(object sender, GetUserGeneralSettingsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetUserGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetUserGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OCSUser Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((OCSUser)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetUserGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
|
@ -0,0 +1,689 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using System.Data;
|
||||
|
||||
using WebsitePanel.Providers;
|
||||
using WebsitePanel.Providers.OS;
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name = "esOperatingSystemsSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class esOperatingSystems : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
private System.Threading.SendOrPostCallback GetRawOdbcSourcesPagedOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetInstalledOdbcDriversOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetOdbcSourcesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetOdbcSourceOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddOdbcSourceOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateOdbcSourceOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteOdbcSourceOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esOperatingSystems()
|
||||
{
|
||||
this.Url = "http://localhost/WebsitePanelEnterpriseServer11/esOperatingSystems.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetRawOdbcSourcesPagedCompletedEventHandler GetRawOdbcSourcesPagedCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetInstalledOdbcDriversCompletedEventHandler GetInstalledOdbcDriversCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetOdbcSourcesCompletedEventHandler GetOdbcSourcesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetOdbcSourceCompletedEventHandler GetOdbcSourceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddOdbcSourceCompletedEventHandler AddOdbcSourceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateOdbcSourceCompletedEventHandler UpdateOdbcSourceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteOdbcSourceCompletedEventHandler DeleteOdbcSourceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawOdbcSourcesPaged", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public System.Data.DataSet GetRawOdbcSourcesPaged(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
|
||||
{
|
||||
object[] results = this.Invoke("GetRawOdbcSourcesPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetRawOdbcSourcesPaged(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetRawOdbcSourcesPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet EndGetRawOdbcSourcesPaged(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetRawOdbcSourcesPagedAsync(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
|
||||
{
|
||||
this.GetRawOdbcSourcesPagedAsync(packageId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetRawOdbcSourcesPagedAsync(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState)
|
||||
{
|
||||
if ((this.GetRawOdbcSourcesPagedOperationCompleted == null))
|
||||
{
|
||||
this.GetRawOdbcSourcesPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawOdbcSourcesPagedOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetRawOdbcSourcesPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, this.GetRawOdbcSourcesPagedOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetRawOdbcSourcesPagedOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetRawOdbcSourcesPagedCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetRawOdbcSourcesPagedCompleted(this, new GetRawOdbcSourcesPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetInstalledOdbcDrivers", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string[] GetInstalledOdbcDrivers(int packageId)
|
||||
{
|
||||
object[] results = this.Invoke("GetInstalledOdbcDrivers", new object[] {
|
||||
packageId});
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetInstalledOdbcDrivers(int packageId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetInstalledOdbcDrivers", new object[] {
|
||||
packageId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string[] EndGetInstalledOdbcDrivers(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetInstalledOdbcDriversAsync(int packageId)
|
||||
{
|
||||
this.GetInstalledOdbcDriversAsync(packageId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetInstalledOdbcDriversAsync(int packageId, object userState)
|
||||
{
|
||||
if ((this.GetInstalledOdbcDriversOperationCompleted == null))
|
||||
{
|
||||
this.GetInstalledOdbcDriversOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetInstalledOdbcDriversOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetInstalledOdbcDrivers", new object[] {
|
||||
packageId}, this.GetInstalledOdbcDriversOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetInstalledOdbcDriversOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetInstalledOdbcDriversCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetInstalledOdbcDriversCompleted(this, new GetInstalledOdbcDriversCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOdbcSources", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SystemDSN[] GetOdbcSources(int packageId, bool recursive)
|
||||
{
|
||||
object[] results = this.Invoke("GetOdbcSources", new object[] {
|
||||
packageId,
|
||||
recursive});
|
||||
return ((SystemDSN[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetOdbcSources(int packageId, bool recursive, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetOdbcSources", new object[] {
|
||||
packageId,
|
||||
recursive}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemDSN[] EndGetOdbcSources(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SystemDSN[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOdbcSourcesAsync(int packageId, bool recursive)
|
||||
{
|
||||
this.GetOdbcSourcesAsync(packageId, recursive, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOdbcSourcesAsync(int packageId, bool recursive, object userState)
|
||||
{
|
||||
if ((this.GetOdbcSourcesOperationCompleted == null))
|
||||
{
|
||||
this.GetOdbcSourcesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOdbcSourcesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetOdbcSources", new object[] {
|
||||
packageId,
|
||||
recursive}, this.GetOdbcSourcesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetOdbcSourcesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetOdbcSourcesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetOdbcSourcesCompleted(this, new GetOdbcSourcesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOdbcSource", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SystemDSN GetOdbcSource(int itemId)
|
||||
{
|
||||
object[] results = this.Invoke("GetOdbcSource", new object[] {
|
||||
itemId});
|
||||
return ((SystemDSN)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetOdbcSource(int itemId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetOdbcSource", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemDSN EndGetOdbcSource(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SystemDSN)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOdbcSourceAsync(int itemId)
|
||||
{
|
||||
this.GetOdbcSourceAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOdbcSourceAsync(int itemId, object userState)
|
||||
{
|
||||
if ((this.GetOdbcSourceOperationCompleted == null))
|
||||
{
|
||||
this.GetOdbcSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOdbcSourceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetOdbcSource", new object[] {
|
||||
itemId}, this.GetOdbcSourceOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetOdbcSourceOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetOdbcSourceCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetOdbcSourceCompleted(this, new GetOdbcSourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddOdbcSource", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int AddOdbcSource(SystemDSN item)
|
||||
{
|
||||
object[] results = this.Invoke("AddOdbcSource", new object[] {
|
||||
item});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddOdbcSource(SystemDSN item, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("AddOdbcSource", new object[] {
|
||||
item}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndAddOdbcSource(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddOdbcSourceAsync(SystemDSN item)
|
||||
{
|
||||
this.AddOdbcSourceAsync(item, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddOdbcSourceAsync(SystemDSN item, object userState)
|
||||
{
|
||||
if ((this.AddOdbcSourceOperationCompleted == null))
|
||||
{
|
||||
this.AddOdbcSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddOdbcSourceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddOdbcSource", new object[] {
|
||||
item}, this.AddOdbcSourceOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddOdbcSourceOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.AddOdbcSourceCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddOdbcSourceCompleted(this, new AddOdbcSourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateOdbcSource", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int UpdateOdbcSource(SystemDSN item)
|
||||
{
|
||||
object[] results = this.Invoke("UpdateOdbcSource", new object[] {
|
||||
item});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateOdbcSource(SystemDSN item, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("UpdateOdbcSource", new object[] {
|
||||
item}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndUpdateOdbcSource(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOdbcSourceAsync(SystemDSN item)
|
||||
{
|
||||
this.UpdateOdbcSourceAsync(item, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOdbcSourceAsync(SystemDSN item, object userState)
|
||||
{
|
||||
if ((this.UpdateOdbcSourceOperationCompleted == null))
|
||||
{
|
||||
this.UpdateOdbcSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOdbcSourceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateOdbcSource", new object[] {
|
||||
item}, this.UpdateOdbcSourceOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateOdbcSourceOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.UpdateOdbcSourceCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateOdbcSourceCompleted(this, new UpdateOdbcSourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteOdbcSource", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int DeleteOdbcSource(int itemId)
|
||||
{
|
||||
object[] results = this.Invoke("DeleteOdbcSource", new object[] {
|
||||
itemId});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteOdbcSource(int itemId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("DeleteOdbcSource", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndDeleteOdbcSource(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOdbcSourceAsync(int itemId)
|
||||
{
|
||||
this.DeleteOdbcSourceAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOdbcSourceAsync(int itemId, object userState)
|
||||
{
|
||||
if ((this.DeleteOdbcSourceOperationCompleted == null))
|
||||
{
|
||||
this.DeleteOdbcSourceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOdbcSourceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteOdbcSource", new object[] {
|
||||
itemId}, this.DeleteOdbcSourceOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteOdbcSourceOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.DeleteOdbcSourceCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteOdbcSourceCompleted(this, new DeleteOdbcSourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState)
|
||||
{
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetRawOdbcSourcesPagedCompletedEventHandler(object sender, GetRawOdbcSourcesPagedCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetRawOdbcSourcesPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetRawOdbcSourcesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((System.Data.DataSet)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetInstalledOdbcDriversCompletedEventHandler(object sender, GetInstalledOdbcDriversCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetInstalledOdbcDriversCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetInstalledOdbcDriversCompletedEventArgs(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 GetOdbcSourcesCompletedEventHandler(object sender, GetOdbcSourcesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetOdbcSourcesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetOdbcSourcesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemDSN[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SystemDSN[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetOdbcSourceCompletedEventHandler(object sender, GetOdbcSourceCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetOdbcSourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetOdbcSourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemDSN Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SystemDSN)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddOdbcSourceCompletedEventHandler(object sender, AddOdbcSourceCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AddOdbcSourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AddOdbcSourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateOdbcSourceCompletedEventHandler(object sender, UpdateOdbcSourceCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UpdateOdbcSourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UpdateOdbcSourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteOdbcSourceCompletedEventHandler(object sender, DeleteOdbcSourceCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteOdbcSourceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteOdbcSourceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,21 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("WebsitePanel.EnterpriseServer.Client")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyProduct("WebsitePanel.EnterpriseServer.Client")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(true)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("1c4a795d-21b6-4d52-b911-bec8f4702b4b")]
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,569 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using System.Data;
|
||||
using WebsitePanel.Providers;
|
||||
using WebsitePanel.Providers.Statistics;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esStatisticsServersSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class esStatisticsServers : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetRawStatisticsSitesPagedOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetStatisticsSitesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetServersOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteSiteOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esStatisticsServers() {
|
||||
this.Url = "http://localhost/WebsitePanelEnterpriseServer11/esStatisticsServers.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetRawStatisticsSitesPagedCompletedEventHandler GetRawStatisticsSitesPagedCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetStatisticsSitesCompletedEventHandler GetStatisticsSitesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetServersCompletedEventHandler GetServersCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSiteCompletedEventHandler GetSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddSiteCompletedEventHandler AddSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateSiteCompletedEventHandler UpdateSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteSiteCompletedEventHandler DeleteSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetRawStatisticsSitesPaged", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public System.Data.DataSet GetRawStatisticsSitesPaged(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) {
|
||||
object[] results = this.Invoke("GetRawStatisticsSitesPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetRawStatisticsSitesPaged(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetRawStatisticsSitesPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet EndGetRawStatisticsSitesPaged(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((System.Data.DataSet)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetRawStatisticsSitesPagedAsync(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) {
|
||||
this.GetRawStatisticsSitesPagedAsync(packageId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetRawStatisticsSitesPagedAsync(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) {
|
||||
if ((this.GetRawStatisticsSitesPagedOperationCompleted == null)) {
|
||||
this.GetRawStatisticsSitesPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRawStatisticsSitesPagedOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetRawStatisticsSitesPaged", new object[] {
|
||||
packageId,
|
||||
filterColumn,
|
||||
filterValue,
|
||||
sortColumn,
|
||||
startRow,
|
||||
maximumRows}, this.GetRawStatisticsSitesPagedOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetRawStatisticsSitesPagedOperationCompleted(object arg) {
|
||||
if ((this.GetRawStatisticsSitesPagedCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetRawStatisticsSitesPagedCompleted(this, new GetRawStatisticsSitesPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetStatisticsSites", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public StatsSite[] GetStatisticsSites(int packageId, bool recursive) {
|
||||
object[] results = this.Invoke("GetStatisticsSites", new object[] {
|
||||
packageId,
|
||||
recursive});
|
||||
return ((StatsSite[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetStatisticsSites(int packageId, bool recursive, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetStatisticsSites", new object[] {
|
||||
packageId,
|
||||
recursive}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsSite[] EndGetStatisticsSites(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((StatsSite[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetStatisticsSitesAsync(int packageId, bool recursive) {
|
||||
this.GetStatisticsSitesAsync(packageId, recursive, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetStatisticsSitesAsync(int packageId, bool recursive, object userState) {
|
||||
if ((this.GetStatisticsSitesOperationCompleted == null)) {
|
||||
this.GetStatisticsSitesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStatisticsSitesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetStatisticsSites", new object[] {
|
||||
packageId,
|
||||
recursive}, this.GetStatisticsSitesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetStatisticsSitesOperationCompleted(object arg) {
|
||||
if ((this.GetStatisticsSitesCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetStatisticsSitesCompleted(this, new GetStatisticsSitesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetServers", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public StatsServer[] GetServers(int serviceId) {
|
||||
object[] results = this.Invoke("GetServers", new object[] {
|
||||
serviceId});
|
||||
return ((StatsServer[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetServers(int serviceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetServers", new object[] {
|
||||
serviceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsServer[] EndGetServers(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((StatsServer[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServersAsync(int serviceId) {
|
||||
this.GetServersAsync(serviceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServersAsync(int serviceId, object userState) {
|
||||
if ((this.GetServersOperationCompleted == null)) {
|
||||
this.GetServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServersOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetServers", new object[] {
|
||||
serviceId}, this.GetServersOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetServersOperationCompleted(object arg) {
|
||||
if ((this.GetServersCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetServersCompleted(this, new GetServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetSite", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public StatsSite GetSite(int itemId) {
|
||||
object[] results = this.Invoke("GetSite", new object[] {
|
||||
itemId});
|
||||
return ((StatsSite)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSite(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSite", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsSite EndGetSite(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((StatsSite)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteAsync(int itemId) {
|
||||
this.GetSiteAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteAsync(int itemId, object userState) {
|
||||
if ((this.GetSiteOperationCompleted == null)) {
|
||||
this.GetSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSite", new object[] {
|
||||
itemId}, this.GetSiteOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSiteOperationCompleted(object arg) {
|
||||
if ((this.GetSiteCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSiteCompleted(this, new GetSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddSite", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int AddSite(StatsSite item) {
|
||||
object[] results = this.Invoke("AddSite", new object[] {
|
||||
item});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddSite(StatsSite item, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddSite", new object[] {
|
||||
item}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndAddSite(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddSiteAsync(StatsSite item) {
|
||||
this.AddSiteAsync(item, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddSiteAsync(StatsSite item, object userState) {
|
||||
if ((this.AddSiteOperationCompleted == null)) {
|
||||
this.AddSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddSite", new object[] {
|
||||
item}, this.AddSiteOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddSiteOperationCompleted(object arg) {
|
||||
if ((this.AddSiteCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddSiteCompleted(this, new AddSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateSite", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int UpdateSite(StatsSite item) {
|
||||
object[] results = this.Invoke("UpdateSite", new object[] {
|
||||
item});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateSite(StatsSite item, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateSite", new object[] {
|
||||
item}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndUpdateSite(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSiteAsync(StatsSite item) {
|
||||
this.UpdateSiteAsync(item, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSiteAsync(StatsSite item, object userState) {
|
||||
if ((this.UpdateSiteOperationCompleted == null)) {
|
||||
this.UpdateSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateSite", new object[] {
|
||||
item}, this.UpdateSiteOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateSiteOperationCompleted(object arg) {
|
||||
if ((this.UpdateSiteCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateSiteCompleted(this, new UpdateSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteSite", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int DeleteSite(int itemId) {
|
||||
object[] results = this.Invoke("DeleteSite", new object[] {
|
||||
itemId});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteSite(int itemId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteSite", new object[] {
|
||||
itemId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndDeleteSite(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteAsync(int itemId) {
|
||||
this.DeleteSiteAsync(itemId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteAsync(int itemId, object userState) {
|
||||
if ((this.DeleteSiteOperationCompleted == null)) {
|
||||
this.DeleteSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteSite", new object[] {
|
||||
itemId}, this.DeleteSiteOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteSiteOperationCompleted(object arg) {
|
||||
if ((this.DeleteSiteCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteSiteCompleted(this, new DeleteSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetRawStatisticsSitesPagedCompletedEventHandler(object sender, GetRawStatisticsSitesPagedCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetRawStatisticsSitesPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetRawStatisticsSitesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.Data.DataSet Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((System.Data.DataSet)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetStatisticsSitesCompletedEventHandler(object sender, GetStatisticsSitesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetStatisticsSitesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetStatisticsSitesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsSite[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((StatsSite[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetSiteCompletedEventHandler(object sender, GetSiteCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSiteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsSite Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((StatsSite)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddSiteCompletedEventHandler(object sender, AddSiteCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AddSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AddSiteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateSiteCompletedEventHandler(object sender, UpdateSiteCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UpdateSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UpdateSiteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteSiteCompletedEventHandler(object sender, DeleteSiteCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class DeleteSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal DeleteSiteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,215 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esSystemSoap", Namespace="http://tempuri.org/")]
|
||||
public partial class esSystem : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSystemSettingsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetSystemSettingsOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esSystem() {
|
||||
this.Url = "http://localhost/EnterpriseServer/esSystem.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSystemSettingsCompletedEventHandler GetSystemSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetSystemSettingsCompletedEventHandler SetSystemSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSystemSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SystemSettings GetSystemSettings(string settingsName) {
|
||||
object[] results = this.Invoke("GetSystemSettings", new object[] {
|
||||
settingsName});
|
||||
return ((SystemSettings)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSystemSettings(string settingsName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSystemSettings", new object[] {
|
||||
settingsName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemSettings EndGetSystemSettings(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SystemSettings)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSystemSettingsAsync(string settingsName) {
|
||||
this.GetSystemSettingsAsync(settingsName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSystemSettingsAsync(string settingsName, object userState) {
|
||||
if ((this.GetSystemSettingsOperationCompleted == null)) {
|
||||
this.GetSystemSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSystemSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSystemSettings", new object[] {
|
||||
settingsName}, this.GetSystemSettingsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSystemSettingsOperationCompleted(object arg) {
|
||||
if ((this.GetSystemSettingsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSystemSettingsCompleted(this, new GetSystemSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetSystemSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int SetSystemSettings(string settingsName, SystemSettings settings) {
|
||||
object[] results = this.Invoke("SetSystemSettings", new object[] {
|
||||
settingsName,
|
||||
settings});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetSystemSettings(string settingsName, SystemSettings settings, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetSystemSettings", new object[] {
|
||||
settingsName,
|
||||
settings}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndSetSystemSettings(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetSystemSettingsAsync(string settingsName, SystemSettings settings) {
|
||||
this.SetSystemSettingsAsync(settingsName, settings, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetSystemSettingsAsync(string settingsName, SystemSettings settings, object userState) {
|
||||
if ((this.SetSystemSettingsOperationCompleted == null)) {
|
||||
this.SetSystemSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetSystemSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetSystemSettings", new object[] {
|
||||
settingsName,
|
||||
settings}, this.SetSystemSettingsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSetSystemSettingsOperationCompleted(object arg) {
|
||||
if ((this.SetSystemSettingsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SetSystemSettingsCompleted(this, new SetSystemSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetSystemSettingsCompletedEventHandler(object sender, GetSystemSettingsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSystemSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSystemSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemSettings Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SystemSettings)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetSystemSettingsCompletedEventHandler(object sender, SetSystemSettingsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class SetSystemSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal SetSystemSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,611 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name = "esTasksSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(BackgroundTaskLogRecord[]))]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(object[]))]
|
||||
public partial class esTasks : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
private System.Threading.SendOrPostCallback GetTaskOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetTaskWithLogRecordsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetTasksNumberOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetUserTasksOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetUserCompletedTasksOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetTaskNotifyOnCompleteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback StopTaskOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esTasks()
|
||||
{
|
||||
this.Url = "http://localhost/EnterpriseServer/esTasks.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetTaskCompletedEventHandler GetTaskCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetTaskWithLogRecordsCompletedEventHandler GetTaskWithLogRecordsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetTasksNumberCompletedEventHandler GetTasksNumberCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetUserTasksCompletedEventHandler GetUserTasksCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetUserCompletedTasksCompletedEventHandler GetUserCompletedTasksCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetTaskNotifyOnCompleteCompletedEventHandler SetTaskNotifyOnCompleteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event StopTaskCompletedEventHandler StopTaskCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetTask", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public BackgroundTask GetTask(string taskId)
|
||||
{
|
||||
object[] results = this.Invoke("GetTask", new object[] {
|
||||
taskId});
|
||||
return ((BackgroundTask)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetTask(string taskId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetTask", new object[] {
|
||||
taskId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask EndGetTask(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((BackgroundTask)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTaskAsync(string taskId)
|
||||
{
|
||||
this.GetTaskAsync(taskId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTaskAsync(string taskId, object userState)
|
||||
{
|
||||
if ((this.GetTaskOperationCompleted == null))
|
||||
{
|
||||
this.GetTaskOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTaskOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetTask", new object[] {
|
||||
taskId}, this.GetTaskOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetTaskOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetTaskCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetTaskCompleted(this, new GetTaskCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetTaskWithLogRecords", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public BackgroundTask GetTaskWithLogRecords(string taskId, System.DateTime startLogTime)
|
||||
{
|
||||
object[] results = this.Invoke("GetTaskWithLogRecords", new object[] {
|
||||
taskId,
|
||||
startLogTime});
|
||||
return ((BackgroundTask)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetTaskWithLogRecords(string taskId, System.DateTime startLogTime, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetTaskWithLogRecords", new object[] {
|
||||
taskId,
|
||||
startLogTime}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask EndGetTaskWithLogRecords(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((BackgroundTask)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTaskWithLogRecordsAsync(string taskId, System.DateTime startLogTime)
|
||||
{
|
||||
this.GetTaskWithLogRecordsAsync(taskId, startLogTime, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTaskWithLogRecordsAsync(string taskId, System.DateTime startLogTime, object userState)
|
||||
{
|
||||
if ((this.GetTaskWithLogRecordsOperationCompleted == null))
|
||||
{
|
||||
this.GetTaskWithLogRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTaskWithLogRecordsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetTaskWithLogRecords", new object[] {
|
||||
taskId,
|
||||
startLogTime}, this.GetTaskWithLogRecordsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetTaskWithLogRecordsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetTaskWithLogRecordsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetTaskWithLogRecordsCompleted(this, new GetTaskWithLogRecordsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetTasksNumber", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int GetTasksNumber()
|
||||
{
|
||||
object[] results = this.Invoke("GetTasksNumber", new object[0]);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetTasksNumber(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetTasksNumber", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int EndGetTasksNumber(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTasksNumberAsync()
|
||||
{
|
||||
this.GetTasksNumberAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTasksNumberAsync(object userState)
|
||||
{
|
||||
if ((this.GetTasksNumberOperationCompleted == null))
|
||||
{
|
||||
this.GetTasksNumberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTasksNumberOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetTasksNumber", new object[0], this.GetTasksNumberOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetTasksNumberOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetTasksNumberCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetTasksNumberCompleted(this, new GetTasksNumberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetUserTasks", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public BackgroundTask[] GetUserTasks(int userId)
|
||||
{
|
||||
object[] results = this.Invoke("GetUserTasks", new object[] {
|
||||
userId});
|
||||
return ((BackgroundTask[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetUserTasks(int userId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetUserTasks", new object[] {
|
||||
userId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask[] EndGetUserTasks(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((BackgroundTask[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserTasksAsync(int userId)
|
||||
{
|
||||
this.GetUserTasksAsync(userId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserTasksAsync(int userId, object userState)
|
||||
{
|
||||
if ((this.GetUserTasksOperationCompleted == null))
|
||||
{
|
||||
this.GetUserTasksOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserTasksOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetUserTasks", new object[] {
|
||||
userId}, this.GetUserTasksOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetUserTasksOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetUserTasksCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetUserTasksCompleted(this, new GetUserTasksCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetUserCompletedTasks", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public BackgroundTask[] GetUserCompletedTasks(int userId)
|
||||
{
|
||||
object[] results = this.Invoke("GetUserCompletedTasks", new object[] {
|
||||
userId});
|
||||
return ((BackgroundTask[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetUserCompletedTasks(int userId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetUserCompletedTasks", new object[] {
|
||||
userId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask[] EndGetUserCompletedTasks(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((BackgroundTask[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserCompletedTasksAsync(int userId)
|
||||
{
|
||||
this.GetUserCompletedTasksAsync(userId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserCompletedTasksAsync(int userId, object userState)
|
||||
{
|
||||
if ((this.GetUserCompletedTasksOperationCompleted == null))
|
||||
{
|
||||
this.GetUserCompletedTasksOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserCompletedTasksOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetUserCompletedTasks", new object[] {
|
||||
userId}, this.GetUserCompletedTasksOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetUserCompletedTasksOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetUserCompletedTasksCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetUserCompletedTasksCompleted(this, new GetUserCompletedTasksCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetTaskNotifyOnComplete", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void SetTaskNotifyOnComplete(string taskId)
|
||||
{
|
||||
this.Invoke("SetTaskNotifyOnComplete", new object[] {
|
||||
taskId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetTaskNotifyOnComplete(string taskId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("SetTaskNotifyOnComplete", new object[] {
|
||||
taskId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndSetTaskNotifyOnComplete(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetTaskNotifyOnCompleteAsync(string taskId)
|
||||
{
|
||||
this.SetTaskNotifyOnCompleteAsync(taskId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetTaskNotifyOnCompleteAsync(string taskId, object userState)
|
||||
{
|
||||
if ((this.SetTaskNotifyOnCompleteOperationCompleted == null))
|
||||
{
|
||||
this.SetTaskNotifyOnCompleteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetTaskNotifyOnCompleteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetTaskNotifyOnComplete", new object[] {
|
||||
taskId}, this.SetTaskNotifyOnCompleteOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSetTaskNotifyOnCompleteOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.SetTaskNotifyOnCompleteCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SetTaskNotifyOnCompleteCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/StopTask", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void StopTask(string taskId)
|
||||
{
|
||||
this.Invoke("StopTask", new object[] {
|
||||
taskId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginStopTask(string taskId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("StopTask", new object[] {
|
||||
taskId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndStopTask(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void StopTaskAsync(string taskId)
|
||||
{
|
||||
this.StopTaskAsync(taskId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void StopTaskAsync(string taskId, object userState)
|
||||
{
|
||||
if ((this.StopTaskOperationCompleted == null))
|
||||
{
|
||||
this.StopTaskOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStopTaskOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("StopTask", new object[] {
|
||||
taskId}, this.StopTaskOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnStopTaskOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.StopTaskCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.StopTaskCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState)
|
||||
{
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetTaskCompletedEventHandler(object sender, GetTaskCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetTaskCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetTaskCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((BackgroundTask)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetTaskWithLogRecordsCompletedEventHandler(object sender, GetTaskWithLogRecordsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetTaskWithLogRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetTaskWithLogRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((BackgroundTask)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetTasksNumberCompletedEventHandler(object sender, GetTasksNumberCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetTasksNumberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetTasksNumberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((int)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetUserTasksCompletedEventHandler(object sender, GetUserTasksCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetUserTasksCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetUserTasksCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((BackgroundTask[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetUserCompletedTasksCompletedEventHandler(object sender, GetUserCompletedTasksCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetUserCompletedTasksCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetUserCompletedTasksCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BackgroundTask[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((BackgroundTask[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetTaskNotifyOnCompleteCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void StopTaskCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,621 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.1873
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.1432.
|
||||
//
|
||||
namespace WebsitePanel.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
using WebsitePanel.Providers.WebAppGallery;
|
||||
using WebsitePanel.Providers.Common;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="esWebApplicationGallerySoap", Namespace="http://tempuri.org/")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ResultObject))]
|
||||
public partial class esWebApplicationGallery : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback GetGalleryApplicationsByServiceIdOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetGalleryApplicationsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetGalleryCategoriesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetGalleryApplicationDetailsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetGalleryApplicationParamsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback InstallOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetGalleryApplicationStatusOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public esWebApplicationGallery() {
|
||||
this.Url = "http://localhost:1625/esWebApplicationGallery.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetGalleryApplicationsByServiceIdCompletedEventHandler GetGalleryApplicationsByServiceIdCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetGalleryApplicationsCompletedEventHandler GetGalleryApplicationsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetGalleryCategoriesCompletedEventHandler GetGalleryCategoriesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetGalleryApplicationDetailsCompletedEventHandler GetGalleryApplicationDetailsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetGalleryApplicationParamsCompletedEventHandler GetGalleryApplicationParamsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event InstallCompletedEventHandler InstallCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetGalleryApplicationStatusCompletedEventHandler GetGalleryApplicationStatusCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetGalleryApplicationsByServiceId", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public GalleryApplicationsResult GetGalleryApplicationsByServiceId(int serviceId) {
|
||||
object[] results = this.Invoke("GetGalleryApplicationsByServiceId", new object[] {
|
||||
serviceId});
|
||||
return ((GalleryApplicationsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetGalleryApplicationsByServiceId(int serviceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetGalleryApplicationsByServiceId", new object[] {
|
||||
serviceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryApplicationsResult EndGetGalleryApplicationsByServiceId(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((GalleryApplicationsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationsByServiceIdAsync(int serviceId) {
|
||||
this.GetGalleryApplicationsByServiceIdAsync(serviceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationsByServiceIdAsync(int serviceId, object userState) {
|
||||
if ((this.GetGalleryApplicationsByServiceIdOperationCompleted == null)) {
|
||||
this.GetGalleryApplicationsByServiceIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGalleryApplicationsByServiceIdOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetGalleryApplicationsByServiceId", new object[] {
|
||||
serviceId}, this.GetGalleryApplicationsByServiceIdOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetGalleryApplicationsByServiceIdOperationCompleted(object arg) {
|
||||
if ((this.GetGalleryApplicationsByServiceIdCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetGalleryApplicationsByServiceIdCompleted(this, new GetGalleryApplicationsByServiceIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetGalleryApplications", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public GalleryApplicationsResult GetGalleryApplications(int packageId, string categoryId) {
|
||||
object[] results = this.Invoke("GetGalleryApplications", new object[] {
|
||||
packageId,
|
||||
categoryId});
|
||||
return ((GalleryApplicationsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetGalleryApplications(int packageId, string categoryId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetGalleryApplications", new object[] {
|
||||
packageId,
|
||||
categoryId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryApplicationsResult EndGetGalleryApplications(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((GalleryApplicationsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationsAsync(int packageId, string categoryId) {
|
||||
this.GetGalleryApplicationsAsync(packageId, categoryId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationsAsync(int packageId, string categoryId, object userState) {
|
||||
if ((this.GetGalleryApplicationsOperationCompleted == null)) {
|
||||
this.GetGalleryApplicationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGalleryApplicationsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetGalleryApplications", new object[] {
|
||||
packageId,
|
||||
categoryId}, this.GetGalleryApplicationsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetGalleryApplicationsOperationCompleted(object arg) {
|
||||
if ((this.GetGalleryApplicationsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetGalleryApplicationsCompleted(this, new GetGalleryApplicationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetGalleryCategories", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public GalleryCategoriesResult GetGalleryCategories(int packageId) {
|
||||
object[] results = this.Invoke("GetGalleryCategories", new object[] {
|
||||
packageId});
|
||||
return ((GalleryCategoriesResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetGalleryCategories(int packageId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetGalleryCategories", new object[] {
|
||||
packageId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryCategoriesResult EndGetGalleryCategories(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((GalleryCategoriesResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryCategoriesAsync(int packageId) {
|
||||
this.GetGalleryCategoriesAsync(packageId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryCategoriesAsync(int packageId, object userState) {
|
||||
if ((this.GetGalleryCategoriesOperationCompleted == null)) {
|
||||
this.GetGalleryCategoriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGalleryCategoriesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetGalleryCategories", new object[] {
|
||||
packageId}, this.GetGalleryCategoriesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetGalleryCategoriesOperationCompleted(object arg) {
|
||||
if ((this.GetGalleryCategoriesCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetGalleryCategoriesCompleted(this, new GetGalleryCategoriesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetGalleryApplicationDetails", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public GalleryApplicationResult GetGalleryApplicationDetails(int packageId, string applicationId) {
|
||||
object[] results = this.Invoke("GetGalleryApplicationDetails", new object[] {
|
||||
packageId,
|
||||
applicationId});
|
||||
return ((GalleryApplicationResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetGalleryApplicationDetails(int packageId, string applicationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetGalleryApplicationDetails", new object[] {
|
||||
packageId,
|
||||
applicationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryApplicationResult EndGetGalleryApplicationDetails(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((GalleryApplicationResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationDetailsAsync(int packageId, string applicationId) {
|
||||
this.GetGalleryApplicationDetailsAsync(packageId, applicationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationDetailsAsync(int packageId, string applicationId, object userState) {
|
||||
if ((this.GetGalleryApplicationDetailsOperationCompleted == null)) {
|
||||
this.GetGalleryApplicationDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGalleryApplicationDetailsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetGalleryApplicationDetails", new object[] {
|
||||
packageId,
|
||||
applicationId}, this.GetGalleryApplicationDetailsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetGalleryApplicationDetailsOperationCompleted(object arg) {
|
||||
if ((this.GetGalleryApplicationDetailsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetGalleryApplicationDetailsCompleted(this, new GetGalleryApplicationDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetGalleryApplicationParams", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public DeploymentParametersResult GetGalleryApplicationParams(int packageId, string applicationId) {
|
||||
object[] results = this.Invoke("GetGalleryApplicationParams", new object[] {
|
||||
packageId,
|
||||
applicationId});
|
||||
return ((DeploymentParametersResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetGalleryApplicationParams(int packageId, string applicationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetGalleryApplicationParams", new object[] {
|
||||
packageId,
|
||||
applicationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DeploymentParametersResult EndGetGalleryApplicationParams(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((DeploymentParametersResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationParamsAsync(int packageId, string applicationId) {
|
||||
this.GetGalleryApplicationParamsAsync(packageId, applicationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationParamsAsync(int packageId, string applicationId, object userState) {
|
||||
if ((this.GetGalleryApplicationParamsOperationCompleted == null)) {
|
||||
this.GetGalleryApplicationParamsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGalleryApplicationParamsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetGalleryApplicationParams", new object[] {
|
||||
packageId,
|
||||
applicationId}, this.GetGalleryApplicationParamsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetGalleryApplicationParamsOperationCompleted(object arg) {
|
||||
if ((this.GetGalleryApplicationParamsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetGalleryApplicationParamsCompleted(this, new GetGalleryApplicationParamsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Install", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public StringResultObject Install(int packageId, string webAppId, string siteName, string virtualDir, DeploymentParameter[] parameters) {
|
||||
object[] results = this.Invoke("Install", new object[] {
|
||||
packageId,
|
||||
webAppId,
|
||||
siteName,
|
||||
virtualDir,
|
||||
parameters});
|
||||
return ((StringResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginInstall(int packageId, string webAppId, string siteName, string virtualDir, DeploymentParameter[] parameters, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("Install", new object[] {
|
||||
packageId,
|
||||
webAppId,
|
||||
siteName,
|
||||
virtualDir,
|
||||
parameters}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StringResultObject EndInstall(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((StringResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void InstallAsync(int packageId, string webAppId, string siteName, string virtualDir, DeploymentParameter[] parameters) {
|
||||
this.InstallAsync(packageId, webAppId, siteName, virtualDir, parameters, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void InstallAsync(int packageId, string webAppId, string siteName, string virtualDir, DeploymentParameter[] parameters, object userState) {
|
||||
if ((this.InstallOperationCompleted == null)) {
|
||||
this.InstallOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInstallOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("Install", new object[] {
|
||||
packageId,
|
||||
webAppId,
|
||||
siteName,
|
||||
virtualDir,
|
||||
parameters}, this.InstallOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnInstallOperationCompleted(object arg) {
|
||||
if ((this.InstallCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.InstallCompleted(this, new InstallCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetGalleryApplicationStatus", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public GalleryWebAppStatus GetGalleryApplicationStatus(int packageId, string webAppId) {
|
||||
object[] results = this.Invoke("GetGalleryApplicationStatus", new object[] {
|
||||
packageId,
|
||||
webAppId});
|
||||
return ((GalleryWebAppStatus)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetGalleryApplicationStatus(int packageId, string webAppId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetGalleryApplicationStatus", new object[] {
|
||||
packageId,
|
||||
webAppId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryWebAppStatus EndGetGalleryApplicationStatus(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((GalleryWebAppStatus)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationStatusAsync(int packageId, string webAppId) {
|
||||
this.GetGalleryApplicationStatusAsync(packageId, webAppId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetGalleryApplicationStatusAsync(int packageId, string webAppId, object userState) {
|
||||
if ((this.GetGalleryApplicationStatusOperationCompleted == null)) {
|
||||
this.GetGalleryApplicationStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGalleryApplicationStatusOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetGalleryApplicationStatus", new object[] {
|
||||
packageId,
|
||||
webAppId}, this.GetGalleryApplicationStatusOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetGalleryApplicationStatusOperationCompleted(object arg) {
|
||||
if ((this.GetGalleryApplicationStatusCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetGalleryApplicationStatusCompleted(this, new GetGalleryApplicationStatusCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
public delegate void GetGalleryApplicationsByServiceIdCompletedEventHandler(object sender, GetGalleryApplicationsByServiceIdCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetGalleryApplicationsByServiceIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetGalleryApplicationsByServiceIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryApplicationsResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((GalleryApplicationsResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
public delegate void GetGalleryApplicationsCompletedEventHandler(object sender, GetGalleryApplicationsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetGalleryApplicationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetGalleryApplicationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryApplicationsResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((GalleryApplicationsResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
public delegate void GetGalleryCategoriesCompletedEventHandler(object sender, GetGalleryCategoriesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetGalleryCategoriesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetGalleryCategoriesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryCategoriesResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((GalleryCategoriesResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
public delegate void GetGalleryApplicationDetailsCompletedEventHandler(object sender, GetGalleryApplicationDetailsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetGalleryApplicationDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetGalleryApplicationDetailsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryApplicationResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((GalleryApplicationResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
public delegate void GetGalleryApplicationParamsCompletedEventHandler(object sender, GetGalleryApplicationParamsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetGalleryApplicationParamsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetGalleryApplicationParamsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DeploymentParametersResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((DeploymentParametersResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
public delegate void InstallCompletedEventHandler(object sender, InstallCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class InstallCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal InstallCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StringResultObject Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((StringResultObject)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
public delegate void GetGalleryApplicationStatusCompletedEventHandler(object sender, GetGalleryApplicationStatusCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetGalleryApplicationStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetGalleryApplicationStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GalleryWebAppStatus Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((GalleryWebAppStatus)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,154 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{4B344644-A570-477E-ADCC-F2B267D6C038}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>WebsitePanel.EnterpriseServer.Client</RootNamespace>
|
||||
<AssemblyName>WebsitePanel.EnterpriseServer.Client</AssemblyName>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>WebsitePanel.snk</AssemblyOriginatorKeyFile>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<WarningsAsErrors>618</WarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<WarningsAsErrors>618</WarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Lib\Microsoft.Web.Services3.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WebsitePanel.Providers.Base">
|
||||
<HintPath>..\..\Bin\WebsitePanel.Providers.Base.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\VersionInfo.cs">
|
||||
<Link>VersionInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="ApplicationsInstallerProxy.cs" />
|
||||
<Compile Include="AuditLogProxy.cs" />
|
||||
<Compile Include="AuthenticationProxy.cs" />
|
||||
<Compile Include="BackupProxy.cs">
|
||||
<SubType>code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BlackBerryProxy.cs" />
|
||||
<Compile Include="CommentsProxy.cs" />
|
||||
<Compile Include="Common\EnterpriseServerProxyConfigurator.cs" />
|
||||
<Compile Include="Common\UsernameAssertion.cs" />
|
||||
<Compile Include="VirtualizationServerProxyForPrivateCloud.cs" />
|
||||
<Compile Include="CRMProxy.cs" />
|
||||
<Compile Include="DatabaseServersProxy.cs" />
|
||||
<Compile Include="ecServiceHandlerProxy.cs" />
|
||||
<Compile Include="ecStorefrontProxy.cs" />
|
||||
<Compile Include="ecStorehouseProxy.cs" />
|
||||
<Compile Include="ExchangeHostedEditionProxy.cs" />
|
||||
<Compile Include="ExchangeServerProxy.cs" />
|
||||
<Compile Include="FilesProxy.cs" />
|
||||
<Compile Include="FtpServersProxy.cs" />
|
||||
<Compile Include="HostedSharePointServersProxy.cs" />
|
||||
<Compile Include="ImportProxy.cs">
|
||||
<SubType>code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MailServersProxy.cs" />
|
||||
<Compile Include="OCSProxy.cs" />
|
||||
<Compile Include="OperatingSystemsProxy.cs" />
|
||||
<Compile Include="OrganizationProxy.cs" />
|
||||
<Compile Include="PackagesProxy.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SchedulerProxy.cs" />
|
||||
<Compile Include="ServersProxy.cs" />
|
||||
<Compile Include="SharePointServersProxy.cs" />
|
||||
<Compile Include="StatisticsServersProxy.cs" />
|
||||
<Compile Include="SystemProxy.cs" />
|
||||
<Compile Include="TasksProxy.cs" />
|
||||
<Compile Include="UsersProxy.cs" />
|
||||
<Compile Include="VirtualizationServerProxy.cs">
|
||||
<SubType>code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebApplicationGalleryProxy.cs" />
|
||||
<Compile Include="WebServersProxy.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\WebsitePanel.EnterpriseServer.Base\WebsitePanel.EnterpriseServer.Base.csproj">
|
||||
<Project>{C09CE910-F16B-48A1-B2CC-C99B8C1CF775}</Project>
|
||||
<Name>WebsitePanel.EnterpriseServer.Base</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="WebsitePanel.snk" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
Binary file not shown.
|
@ -0,0 +1,125 @@
|
|||
// Copyright (c) 2011, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.312
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
||||
//
|
||||
namespace WebsitePanel.Ecommerce.EnterpriseServer {
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="ecServiceHandlerSoap", Namespace="http://tempuri.org/")]
|
||||
public partial class ecServiceHandler : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback AddServiceHandlerTextResponseOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public ecServiceHandler() {
|
||||
this.Url = "http://localhost/EnterpriseServer/ecServiceHandler.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event AddServiceHandlerTextResponseCompletedEventHandler AddServiceHandlerTextResponseCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddServiceHandlerTextResponse", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void AddServiceHandlerTextResponse(string serviceId, string contractId, int invoiceId, string dataReceived) {
|
||||
this.Invoke("AddServiceHandlerTextResponse", new object[] {
|
||||
serviceId,
|
||||
contractId,
|
||||
invoiceId,
|
||||
dataReceived});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddServiceHandlerTextResponse(string serviceId, string contractId, int invoiceId, string dataReceived, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddServiceHandlerTextResponse", new object[] {
|
||||
serviceId,
|
||||
contractId,
|
||||
invoiceId,
|
||||
dataReceived}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndAddServiceHandlerTextResponse(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddServiceHandlerTextResponseAsync(string serviceId, string contractId, int invoiceId, string dataReceived) {
|
||||
this.AddServiceHandlerTextResponseAsync(serviceId, contractId, invoiceId, dataReceived, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddServiceHandlerTextResponseAsync(string serviceId, string contractId, int invoiceId, string dataReceived, object userState) {
|
||||
if ((this.AddServiceHandlerTextResponseOperationCompleted == null)) {
|
||||
this.AddServiceHandlerTextResponseOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddServiceHandlerTextResponseOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddServiceHandlerTextResponse", new object[] {
|
||||
serviceId,
|
||||
contractId,
|
||||
invoiceId,
|
||||
dataReceived}, this.AddServiceHandlerTextResponseOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddServiceHandlerTextResponseOperationCompleted(object arg) {
|
||||
if ((this.AddServiceHandlerTextResponseCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddServiceHandlerTextResponseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddServiceHandlerTextResponseCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue