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,235 @@
|
|||
// 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;
|
||||
|
||||
namespace WebsitePanel.AutoDiscovery
|
||||
{
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name = "AutoDiscoverySoap", Namespace = "http://tempuri.org/")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ResultObject))]
|
||||
public partial class AutoDiscovery : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
private System.Threading.SendOrPostCallback IsInstalledOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetServerVersionOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public AutoDiscovery()
|
||||
{
|
||||
this.Url = "http://192.168.0.13:8080/Server/AutoDiscovery.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event IsInstalledCompletedEventHandler IsInstalledCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetServerVersionCompletedEventHandler GetServerVersionCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/IsInstalled", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public BoolResult IsInstalled(string providerName)
|
||||
{
|
||||
object[] results = this.Invoke("IsInstalled", new object[] {
|
||||
providerName});
|
||||
return ((BoolResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginIsInstalled(string providerName, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("IsInstalled", new object[] {
|
||||
providerName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BoolResult EndIsInstalled(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((BoolResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void IsInstalledAsync(string providerName)
|
||||
{
|
||||
this.IsInstalledAsync(providerName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void IsInstalledAsync(string providerName, object userState)
|
||||
{
|
||||
if ((this.IsInstalledOperationCompleted == null))
|
||||
{
|
||||
this.IsInstalledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsInstalledOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("IsInstalled", new object[] {
|
||||
providerName}, this.IsInstalledOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnIsInstalledOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.IsInstalledCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.IsInstalledCompleted(this, new IsInstalledCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetServerVersion", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string GetServerVersion()
|
||||
{
|
||||
object[] results = this.Invoke("GetServerVersion", new object[0]);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetServerVersion(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetServerVersion", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndGetServerVersion(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServerVersionAsync()
|
||||
{
|
||||
this.GetServerVersionAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServerVersionAsync(object userState)
|
||||
{
|
||||
if ((this.GetServerVersionOperationCompleted == null))
|
||||
{
|
||||
this.GetServerVersionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServerVersionOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetServerVersion", new object[0], this.GetServerVersionOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetServerVersionOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetServerVersionCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetServerVersionCompleted(this, new GetServerVersionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState)
|
||||
{
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void IsInstalledCompletedEventHandler(object sender, IsInstalledCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class IsInstalledCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal IsInstalledCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BoolResult Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((BoolResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetServerVersionCompletedEventHandler(object sender, GetServerVersionCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetServerVersionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetServerVersionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,522 @@
|
|||
// 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.Providers.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="BlackBerrySoap", Namespace="http://smbsaas/websitepanel/server/")]
|
||||
public partial class BlackBerry : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateBlackBerryUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteBlackBerryUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetBlackBerryUserStatsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetActivationPasswordWithExpirationTimeOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetEmailActivationPasswordOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteDataFromBlackBerryDeviceOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public BlackBerry() {
|
||||
this.Url = "http://exchange-dev:9003/BlackBerry.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateBlackBerryUserCompletedEventHandler CreateBlackBerryUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteBlackBerryUserCompletedEventHandler DeleteBlackBerryUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetBlackBerryUserStatsCompletedEventHandler GetBlackBerryUserStatsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetActivationPasswordWithExpirationTimeCompletedEventHandler SetActivationPasswordWithExpirationTimeCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetEmailActivationPasswordCompletedEventHandler SetEmailActivationPasswordCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteDataFromBlackBerryDeviceCompletedEventHandler DeleteDataFromBlackBerryDeviceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateBlackBerryUser", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject CreateBlackBerryUser(string primaryEmailAddress) {
|
||||
object[] results = this.Invoke("CreateBlackBerryUser", new object[] {
|
||||
primaryEmailAddress});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateBlackBerryUser(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateBlackBerryUser", new object[] {
|
||||
primaryEmailAddress}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndCreateBlackBerryUser(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateBlackBerryUserAsync(string primaryEmailAddress) {
|
||||
this.CreateBlackBerryUserAsync(primaryEmailAddress, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateBlackBerryUserAsync(string primaryEmailAddress, object userState) {
|
||||
if ((this.CreateBlackBerryUserOperationCompleted == null)) {
|
||||
this.CreateBlackBerryUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateBlackBerryUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateBlackBerryUser", new object[] {
|
||||
primaryEmailAddress}, 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteBlackBerryUser", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject DeleteBlackBerryUser(string primaryEmailAddress) {
|
||||
object[] results = this.Invoke("DeleteBlackBerryUser", new object[] {
|
||||
primaryEmailAddress});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteBlackBerryUser(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteBlackBerryUser", new object[] {
|
||||
primaryEmailAddress}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndDeleteBlackBerryUser(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteBlackBerryUserAsync(string primaryEmailAddress) {
|
||||
this.DeleteBlackBerryUserAsync(primaryEmailAddress, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteBlackBerryUserAsync(string primaryEmailAddress, object userState) {
|
||||
if ((this.DeleteBlackBerryUserOperationCompleted == null)) {
|
||||
this.DeleteBlackBerryUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteBlackBerryUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteBlackBerryUser", new object[] {
|
||||
primaryEmailAddress}, 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetBlackBerryUserStats", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public BlackBerryUserStatsResult GetBlackBerryUserStats(string primaryEmailAddress) {
|
||||
object[] results = this.Invoke("GetBlackBerryUserStats", new object[] {
|
||||
primaryEmailAddress});
|
||||
return ((BlackBerryUserStatsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetBlackBerryUserStats(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetBlackBerryUserStats", new object[] {
|
||||
primaryEmailAddress}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public BlackBerryUserStatsResult EndGetBlackBerryUserStats(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((BlackBerryUserStatsResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUserStatsAsync(string primaryEmailAddress) {
|
||||
this.GetBlackBerryUserStatsAsync(primaryEmailAddress, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetBlackBerryUserStatsAsync(string primaryEmailAddress, object userState) {
|
||||
if ((this.GetBlackBerryUserStatsOperationCompleted == null)) {
|
||||
this.GetBlackBerryUserStatsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBlackBerryUserStatsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetBlackBerryUserStats", new object[] {
|
||||
primaryEmailAddress}, 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetActivationPasswordWithExpirationTime", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject SetActivationPasswordWithExpirationTime(string primaryEmailAddress, string password, int time) {
|
||||
object[] results = this.Invoke("SetActivationPasswordWithExpirationTime", new object[] {
|
||||
primaryEmailAddress,
|
||||
password,
|
||||
time});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetActivationPasswordWithExpirationTime(string primaryEmailAddress, string password, int time, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetActivationPasswordWithExpirationTime", new object[] {
|
||||
primaryEmailAddress,
|
||||
password,
|
||||
time}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndSetActivationPasswordWithExpirationTime(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetActivationPasswordWithExpirationTimeAsync(string primaryEmailAddress, string password, int time) {
|
||||
this.SetActivationPasswordWithExpirationTimeAsync(primaryEmailAddress, password, time, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetActivationPasswordWithExpirationTimeAsync(string primaryEmailAddress, string password, int time, object userState) {
|
||||
if ((this.SetActivationPasswordWithExpirationTimeOperationCompleted == null)) {
|
||||
this.SetActivationPasswordWithExpirationTimeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetActivationPasswordWithExpirationTimeOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetActivationPasswordWithExpirationTime", new object[] {
|
||||
primaryEmailAddress,
|
||||
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/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetEmailActivationPassword", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject SetEmailActivationPassword(string primaryEmailAddress) {
|
||||
object[] results = this.Invoke("SetEmailActivationPassword", new object[] {
|
||||
primaryEmailAddress});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetEmailActivationPassword(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetEmailActivationPassword", new object[] {
|
||||
primaryEmailAddress}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndSetEmailActivationPassword(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetEmailActivationPasswordAsync(string primaryEmailAddress) {
|
||||
this.SetEmailActivationPasswordAsync(primaryEmailAddress, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetEmailActivationPasswordAsync(string primaryEmailAddress, object userState) {
|
||||
if ((this.SetEmailActivationPasswordOperationCompleted == null)) {
|
||||
this.SetEmailActivationPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEmailActivationPasswordOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetEmailActivationPassword", new object[] {
|
||||
primaryEmailAddress}, 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDataFromBlackBerryDevice", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultObject DeleteDataFromBlackBerryDevice(string primaryEmailAddress) {
|
||||
object[] results = this.Invoke("DeleteDataFromBlackBerryDevice", new object[] {
|
||||
primaryEmailAddress});
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteDataFromBlackBerryDevice(string primaryEmailAddress, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteDataFromBlackBerryDevice", new object[] {
|
||||
primaryEmailAddress}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultObject EndDeleteDataFromBlackBerryDevice(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ResultObject)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteDataFromBlackBerryDeviceAsync(string primaryEmailAddress) {
|
||||
this.DeleteDataFromBlackBerryDeviceAsync(primaryEmailAddress, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteDataFromBlackBerryDeviceAsync(string primaryEmailAddress, object userState) {
|
||||
if ((this.DeleteDataFromBlackBerryDeviceOperationCompleted == null)) {
|
||||
this.DeleteDataFromBlackBerryDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDataFromBlackBerryDeviceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteDataFromBlackBerryDevice", new object[] {
|
||||
primaryEmailAddress}, 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/>
|
||||
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 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 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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <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 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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1032
WebsitePanel/Sources/WebsitePanel.Server.Client/CRMProxy.cs
Normal file
1032
WebsitePanel/Sources/WebsitePanel.Server.Client/CRMProxy.cs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,140 @@
|
|||
// 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.Reflection;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using Microsoft.Web.Services3;
|
||||
using Microsoft.Web.Services3.Design;
|
||||
|
||||
using WebsitePanel.Providers;
|
||||
|
||||
namespace WebsitePanel.Server.Client
|
||||
{
|
||||
public class ServerProxyConfigurator
|
||||
{
|
||||
private int timeout = -1;
|
||||
private string serverUrl = null;
|
||||
private string serverPassword = null;
|
||||
RemoteServerSettings serverSettings = new RemoteServerSettings();
|
||||
ServiceProviderSettings providerSettings = new ServiceProviderSettings();
|
||||
|
||||
public WebsitePanel.Providers.RemoteServerSettings ServerSettings
|
||||
{
|
||||
get { return this.serverSettings; }
|
||||
set { this.serverSettings = value; }
|
||||
}
|
||||
|
||||
public WebsitePanel.Providers.ServiceProviderSettings ProviderSettings
|
||||
{
|
||||
get { return this.providerSettings; }
|
||||
set { this.providerSettings = value; }
|
||||
}
|
||||
|
||||
public string ServerUrl
|
||||
{
|
||||
get { return this.serverUrl; }
|
||||
set { this.serverUrl = value; }
|
||||
}
|
||||
|
||||
public string ServerPassword
|
||||
{
|
||||
get { return this.serverPassword; }
|
||||
set { this.serverPassword = value; }
|
||||
}
|
||||
|
||||
public int Timeout
|
||||
{
|
||||
get { return this.timeout; }
|
||||
set { this.timeout = value; }
|
||||
}
|
||||
|
||||
public void Configure(WebServicesClientProtocol proxy)
|
||||
{
|
||||
// configure proxy URL
|
||||
if (!String.IsNullOrEmpty(serverUrl))
|
||||
{
|
||||
if (serverUrl.EndsWith("/"))
|
||||
serverUrl = serverUrl.Substring(0, serverUrl.Length - 1);
|
||||
|
||||
proxy.Url = serverUrl + proxy.Url.Substring(proxy.Url.LastIndexOf('/'));
|
||||
}
|
||||
|
||||
// set proxy timeout
|
||||
proxy.Timeout = (timeout == -1) ? System.Threading.Timeout.Infinite : timeout * 1000;
|
||||
|
||||
// setup security assertion
|
||||
if (!String.IsNullOrEmpty(serverPassword))
|
||||
{
|
||||
ServerUsernameAssertion assert
|
||||
= new ServerUsernameAssertion(ServerSettings.ServerId, serverPassword);
|
||||
|
||||
// create policy
|
||||
Policy policy = new Policy();
|
||||
policy.Assertions.Add(assert);
|
||||
|
||||
proxy.SetPolicy(policy);
|
||||
}
|
||||
|
||||
// provider settings
|
||||
ServiceProviderSettingsSoapHeader settingsHeader = new ServiceProviderSettingsSoapHeader();
|
||||
List<string> settings = new List<string>();
|
||||
|
||||
// AD Settings
|
||||
settings.Add("AD:Enabled=" + ServerSettings.ADEnabled.ToString());
|
||||
settings.Add("AD:AuthenticationType=" + ServerSettings.ADAuthenticationType.ToString());
|
||||
settings.Add("AD:RootDomain=" + ServerSettings.ADRootDomain);
|
||||
settings.Add("AD:Username=" + ServerSettings.ADUsername);
|
||||
settings.Add("AD:Password=" + ServerSettings.ADPassword);
|
||||
|
||||
// Server Settings
|
||||
settings.Add("Server:ServerId=" + ServerSettings.ServerId);
|
||||
settings.Add("Server:ServerName=" + ServerSettings.ServerName);
|
||||
|
||||
// Provider Settings
|
||||
settings.Add("Provider:ProviderGroupID=" + ProviderSettings.ProviderGroupID.ToString());
|
||||
settings.Add("Provider:ProviderCode=" + ProviderSettings.ProviderCode);
|
||||
settings.Add("Provider:ProviderName=" + ProviderSettings.ProviderName);
|
||||
settings.Add("Provider:ProviderType=" + ProviderSettings.ProviderType);
|
||||
|
||||
// Custom Provider Settings
|
||||
foreach (string settingName in ProviderSettings.Settings.Keys)
|
||||
{
|
||||
settings.Add(settingName + "=" + ProviderSettings.Settings[settingName]);
|
||||
}
|
||||
|
||||
// set header
|
||||
settingsHeader.Settings = settings.ToArray();
|
||||
FieldInfo field = proxy.GetType().GetField("ServiceProviderSettingsSoapHeaderValue");
|
||||
if (field != null)
|
||||
field.SetValue(proxy, settingsHeader);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,323 @@
|
|||
// 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.Server.Client
|
||||
{
|
||||
public class ServerUsernameAssertion : SecurityPolicyAssertion
|
||||
{
|
||||
#region Public properties
|
||||
private bool signRequest = true;
|
||||
public bool SignRequest
|
||||
{
|
||||
get { return signRequest; }
|
||||
set { signRequest = value; }
|
||||
}
|
||||
|
||||
private bool encryptRequest = true;
|
||||
public bool EncryptRequest
|
||||
{
|
||||
get { return encryptRequest; }
|
||||
set { encryptRequest = value; }
|
||||
}
|
||||
|
||||
private int serverId = 0;
|
||||
public int ServerId
|
||||
{
|
||||
get { return serverId; }
|
||||
set { serverId = value; }
|
||||
}
|
||||
|
||||
private string password;
|
||||
public string Password
|
||||
{
|
||||
get { return password; }
|
||||
set { password = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
public ServerUsernameAssertion()
|
||||
{
|
||||
}
|
||||
|
||||
public ServerUsernameAssertion(int serverId, string password)
|
||||
{
|
||||
this.serverId = serverId;
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public override SoapFilter CreateServiceInputFilter(FilterCreationContext context)
|
||||
{
|
||||
return new ServiceInputFilter(this, context);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
public override void ReadXml(XmlReader reader, IDictionary<string, Type> extensions)
|
||||
{
|
||||
if (reader == null)
|
||||
throw new ArgumentNullException("reader");
|
||||
if (extensions == null)
|
||||
throw new ArgumentNullException("extensions");
|
||||
|
||||
// find the current extension
|
||||
string tagName = null;
|
||||
foreach (string extName in extensions.Keys)
|
||||
{
|
||||
if (extensions[extName] == typeof(ServerUsernameAssertion))
|
||||
{
|
||||
tagName = extName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// read the first element (maybe empty)
|
||||
reader.ReadStartElement(tagName);
|
||||
}
|
||||
|
||||
public override void WriteXml(XmlWriter writer)
|
||||
{
|
||||
// Typically this is not needed for custom policies
|
||||
}
|
||||
|
||||
#region ServiceInputFilter
|
||||
public class ServiceInputFilter : ReceiveSecurityFilter
|
||||
{
|
||||
ServerUsernameAssertion parentAssertion;
|
||||
FilterCreationContext filterContext;
|
||||
|
||||
public ServiceInputFilter(ServerUsernameAssertion parentAssertion, FilterCreationContext filterContext)
|
||||
: base(parentAssertion.ServiceActor, false, parentAssertion.ClientActor)
|
||||
{
|
||||
this.parentAssertion = parentAssertion;
|
||||
this.filterContext = filterContext;
|
||||
}
|
||||
|
||||
public override void ValidateMessageSecurity(SoapEnvelope envelope, WSE.Security security)
|
||||
{
|
||||
// by default we consider that SOAP messages is not signed
|
||||
bool IsSigned = false;
|
||||
|
||||
// if security element is null
|
||||
// the call is made not from WSE-enabled client
|
||||
if (security != null)
|
||||
{
|
||||
foreach (ISecurityElement element in security.Elements)
|
||||
{
|
||||
if (element is MessageSignature)
|
||||
{
|
||||
// The given context contains a Signature element.
|
||||
MessageSignature sign = element as MessageSignature;
|
||||
|
||||
if (CheckSignature(envelope, security, sign))
|
||||
{
|
||||
// The SOAP message is signed.
|
||||
if (sign.SigningToken is UsernameToken)
|
||||
{
|
||||
UsernameToken token = sign.SigningToken as UsernameToken;
|
||||
|
||||
// The SOAP message is signed
|
||||
// with a UsernameToken.
|
||||
IsSigned = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// throw an exception if the message did not pass all the tests
|
||||
if (!IsSigned)
|
||||
throw new SecurityFault("SOAP response should be signed.");
|
||||
|
||||
// check encryption
|
||||
bool IsEncrypted = false;
|
||||
foreach (ISecurityElement element in security.Elements)
|
||||
{
|
||||
if (element is EncryptedData)
|
||||
{
|
||||
EncryptedData encryptedData = element as EncryptedData;
|
||||
System.Xml.XmlElement targetElement = encryptedData.TargetElement;
|
||||
|
||||
if (SoapHelper.IsBodyElement(targetElement))
|
||||
{
|
||||
// The given SOAP message has the Body element Encrypted.
|
||||
IsEncrypted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!IsEncrypted)
|
||||
throw new SecurityFault("SOAP response should be encrypted.");
|
||||
|
||||
}
|
||||
|
||||
private bool CheckSignature(SoapEnvelope envelope, WSE.Security security, MessageSignature signature)
|
||||
{
|
||||
//
|
||||
// Now verify which parts of the message were actually signed.
|
||||
//
|
||||
SignatureOptions actualOptions = signature.SignatureOptions;
|
||||
SignatureOptions expectedOptions = SignatureOptions.IncludeSoapBody;
|
||||
|
||||
if (security != null && security.Timestamp != null)
|
||||
expectedOptions |= SignatureOptions.IncludeTimestamp;
|
||||
|
||||
//
|
||||
// The <Action> and <To> are required addressing elements.
|
||||
//
|
||||
expectedOptions |= SignatureOptions.IncludeAction;
|
||||
expectedOptions |= SignatureOptions.IncludeTo;
|
||||
|
||||
if (envelope.Context.Addressing.FaultTo != null && envelope.Context.Addressing.FaultTo.TargetElement != null)
|
||||
expectedOptions |= SignatureOptions.IncludeFaultTo;
|
||||
|
||||
if (envelope.Context.Addressing.From != null && envelope.Context.Addressing.From.TargetElement != null)
|
||||
expectedOptions |= SignatureOptions.IncludeFrom;
|
||||
|
||||
if (envelope.Context.Addressing.MessageID != null && envelope.Context.Addressing.MessageID.TargetElement != null)
|
||||
expectedOptions |= SignatureOptions.IncludeMessageId;
|
||||
|
||||
if (envelope.Context.Addressing.RelatesTo != null && envelope.Context.Addressing.RelatesTo.TargetElement != null)
|
||||
expectedOptions |= SignatureOptions.IncludeRelatesTo;
|
||||
|
||||
if (envelope.Context.Addressing.ReplyTo != null && envelope.Context.Addressing.ReplyTo.TargetElement != null)
|
||||
expectedOptions |= SignatureOptions.IncludeReplyTo;
|
||||
//
|
||||
// Check if the all the expected options are the present.
|
||||
//
|
||||
return ((expectedOptions & actualOptions) == expectedOptions);
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ClientOutputFilter
|
||||
public class ClientOutputFilter : SendSecurityFilter
|
||||
{
|
||||
ServerUsernameAssertion parentAssertion;
|
||||
FilterCreationContext filterContext;
|
||||
|
||||
public ClientOutputFilter(ServerUsernameAssertion parentAssertion, FilterCreationContext filterContext)
|
||||
: base(parentAssertion.ServiceActor, false, parentAssertion.ClientActor)
|
||||
{
|
||||
this.parentAssertion = parentAssertion;
|
||||
this.filterContext = filterContext;
|
||||
}
|
||||
|
||||
public override void SecureMessage(SoapEnvelope envelope, WSE.Security security)
|
||||
{
|
||||
// get server password from database
|
||||
string password = parentAssertion.Password;
|
||||
|
||||
if (password == null)
|
||||
return;
|
||||
|
||||
// hash password
|
||||
password = SHA1(password);
|
||||
|
||||
// create username token
|
||||
UsernameToken userToken = new UsernameToken(parentAssertion.ServerId.ToString(), password,
|
||||
PasswordOption.SendNone);
|
||||
|
||||
if (parentAssertion.signRequest || parentAssertion.encryptRequest)
|
||||
{
|
||||
// Add the token to the SOAP header.
|
||||
security.Tokens.Add(userToken);
|
||||
}
|
||||
|
||||
if (parentAssertion.signRequest)
|
||||
{
|
||||
// Sign the SOAP message by using the UsernameToken.
|
||||
MessageSignature sig = new MessageSignature(userToken);
|
||||
security.Elements.Add(sig);
|
||||
}
|
||||
|
||||
if (parentAssertion.encryptRequest)
|
||||
{
|
||||
// we don't return any custom SOAP headers
|
||||
// so, just encrypt a message Body
|
||||
EncryptedData data = new EncryptedData(userToken);
|
||||
|
||||
// encrypt custom headers
|
||||
for (int index = 0; index < envelope.Header.ChildNodes.Count; index++)
|
||||
{
|
||||
XmlElement child = envelope.Header.ChildNodes[index] as XmlElement;
|
||||
|
||||
// find all SecureSoapHeader headers marked with a special attribute
|
||||
if (child != null && child.NamespaceURI == "http://smbsaas/websitepanel/server/")
|
||||
{
|
||||
// create ID attribute for referencing purposes
|
||||
string id = Guid.NewGuid().ToString();
|
||||
child.SetAttribute("Id", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", id);
|
||||
|
||||
// Create an encryption reference for the custom SOAP header.
|
||||
data.AddReference(new EncryptionReference("#" + id));
|
||||
}
|
||||
}
|
||||
|
||||
security.Elements.Add(data);
|
||||
}
|
||||
}
|
||||
|
||||
private string SHA1(string plainText)
|
||||
{
|
||||
byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText);
|
||||
System.Security.Cryptography.HashAlgorithm hash = new System.Security.Cryptography.SHA1Managed(); ;
|
||||
byte[] hashBytes = hash.ComputeHash(plainTextBytes);
|
||||
return Convert.ToBase64String(hashBytes);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,705 @@
|
|||
// 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.Providers.DNS {
|
||||
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="DNSServerSoap", Namespace="http://smbsaas/websitepanel/server/")]
|
||||
public partial class DNSServer : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback ZoneExistsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetZonesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddPrimaryZoneOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddSecondaryZoneOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteZoneOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateSoaRecordOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetZoneRecordsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddZoneRecordOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteZoneRecordOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddZoneRecordsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteZoneRecordsOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public DNSServer() {
|
||||
this.Url = "http://localhost/WebsitePanelServer11/DnsServer.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event ZoneExistsCompletedEventHandler ZoneExistsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetZonesCompletedEventHandler GetZonesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddPrimaryZoneCompletedEventHandler AddPrimaryZoneCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddSecondaryZoneCompletedEventHandler AddSecondaryZoneCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteZoneCompletedEventHandler DeleteZoneCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateSoaRecordCompletedEventHandler UpdateSoaRecordCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetZoneRecordsCompletedEventHandler GetZoneRecordsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddZoneRecordCompletedEventHandler AddZoneRecordCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteZoneRecordCompletedEventHandler DeleteZoneRecordCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddZoneRecordsCompletedEventHandler AddZoneRecordsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteZoneRecordsCompletedEventHandler DeleteZoneRecordsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ZoneExists", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool ZoneExists(string zoneName) {
|
||||
object[] results = this.Invoke("ZoneExists", new object[] {
|
||||
zoneName});
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginZoneExists(string zoneName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("ZoneExists", new object[] {
|
||||
zoneName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool EndZoneExists(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ZoneExistsAsync(string zoneName) {
|
||||
this.ZoneExistsAsync(zoneName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ZoneExistsAsync(string zoneName, object userState) {
|
||||
if ((this.ZoneExistsOperationCompleted == null)) {
|
||||
this.ZoneExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnZoneExistsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ZoneExists", new object[] {
|
||||
zoneName}, this.ZoneExistsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnZoneExistsOperationCompleted(object arg) {
|
||||
if ((this.ZoneExistsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ZoneExistsCompleted(this, new ZoneExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetZones", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string[] GetZones() {
|
||||
object[] results = this.Invoke("GetZones", new object[0]);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetZones(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetZones", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string[] EndGetZones(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetZonesAsync() {
|
||||
this.GetZonesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetZonesAsync(object userState) {
|
||||
if ((this.GetZonesOperationCompleted == null)) {
|
||||
this.GetZonesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetZonesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetZones", new object[0], this.GetZonesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetZonesOperationCompleted(object arg) {
|
||||
if ((this.GetZonesCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetZonesCompleted(this, new GetZonesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddPrimaryZone", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void AddPrimaryZone(string zoneName, string[] secondaryServers) {
|
||||
this.Invoke("AddPrimaryZone", new object[] {
|
||||
zoneName,
|
||||
secondaryServers});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddPrimaryZone(string zoneName, string[] secondaryServers, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddPrimaryZone", new object[] {
|
||||
zoneName,
|
||||
secondaryServers}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndAddPrimaryZone(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddPrimaryZoneAsync(string zoneName, string[] secondaryServers) {
|
||||
this.AddPrimaryZoneAsync(zoneName, secondaryServers, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddPrimaryZoneAsync(string zoneName, string[] secondaryServers, object userState) {
|
||||
if ((this.AddPrimaryZoneOperationCompleted == null)) {
|
||||
this.AddPrimaryZoneOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddPrimaryZoneOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddPrimaryZone", new object[] {
|
||||
zoneName,
|
||||
secondaryServers}, this.AddPrimaryZoneOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddPrimaryZoneOperationCompleted(object arg) {
|
||||
if ((this.AddPrimaryZoneCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddPrimaryZoneCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddSecondaryZone", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void AddSecondaryZone(string zoneName, string[] masterServers) {
|
||||
this.Invoke("AddSecondaryZone", new object[] {
|
||||
zoneName,
|
||||
masterServers});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddSecondaryZone(string zoneName, string[] masterServers, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddSecondaryZone", new object[] {
|
||||
zoneName,
|
||||
masterServers}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndAddSecondaryZone(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddSecondaryZoneAsync(string zoneName, string[] masterServers) {
|
||||
this.AddSecondaryZoneAsync(zoneName, masterServers, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddSecondaryZoneAsync(string zoneName, string[] masterServers, object userState) {
|
||||
if ((this.AddSecondaryZoneOperationCompleted == null)) {
|
||||
this.AddSecondaryZoneOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddSecondaryZoneOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddSecondaryZone", new object[] {
|
||||
zoneName,
|
||||
masterServers}, this.AddSecondaryZoneOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddSecondaryZoneOperationCompleted(object arg) {
|
||||
if ((this.AddSecondaryZoneCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddSecondaryZoneCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZone", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteZone(string zoneName) {
|
||||
this.Invoke("DeleteZone", new object[] {
|
||||
zoneName});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteZone(string zoneName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteZone", new object[] {
|
||||
zoneName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteZone(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteZoneAsync(string zoneName) {
|
||||
this.DeleteZoneAsync(zoneName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteZoneAsync(string zoneName, object userState) {
|
||||
if ((this.DeleteZoneOperationCompleted == null)) {
|
||||
this.DeleteZoneOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteZoneOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteZone", new object[] {
|
||||
zoneName}, this.DeleteZoneOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteZoneOperationCompleted(object arg) {
|
||||
if ((this.DeleteZoneCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteZoneCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateSoaRecord", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateSoaRecord(string zoneName, string host, string primaryNsServer, string primaryPerson) {
|
||||
this.Invoke("UpdateSoaRecord", new object[] {
|
||||
zoneName,
|
||||
host,
|
||||
primaryNsServer,
|
||||
primaryPerson});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateSoaRecord(string zoneName, string host, string primaryNsServer, string primaryPerson, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateSoaRecord", new object[] {
|
||||
zoneName,
|
||||
host,
|
||||
primaryNsServer,
|
||||
primaryPerson}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateSoaRecord(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSoaRecordAsync(string zoneName, string host, string primaryNsServer, string primaryPerson) {
|
||||
this.UpdateSoaRecordAsync(zoneName, host, primaryNsServer, primaryPerson, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSoaRecordAsync(string zoneName, string host, string primaryNsServer, string primaryPerson, object userState) {
|
||||
if ((this.UpdateSoaRecordOperationCompleted == null)) {
|
||||
this.UpdateSoaRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateSoaRecordOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateSoaRecord", new object[] {
|
||||
zoneName,
|
||||
host,
|
||||
primaryNsServer,
|
||||
primaryPerson}, this.UpdateSoaRecordOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateSoaRecordOperationCompleted(object arg) {
|
||||
if ((this.UpdateSoaRecordCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateSoaRecordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetZoneRecords", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public DnsRecord[] GetZoneRecords(string zoneName) {
|
||||
object[] results = this.Invoke("GetZoneRecords", new object[] {
|
||||
zoneName});
|
||||
return ((DnsRecord[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetZoneRecords(string zoneName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetZoneRecords", new object[] {
|
||||
zoneName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DnsRecord[] EndGetZoneRecords(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((DnsRecord[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetZoneRecordsAsync(string zoneName) {
|
||||
this.GetZoneRecordsAsync(zoneName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetZoneRecordsAsync(string zoneName, object userState) {
|
||||
if ((this.GetZoneRecordsOperationCompleted == null)) {
|
||||
this.GetZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetZoneRecordsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetZoneRecords", new object[] {
|
||||
zoneName}, this.GetZoneRecordsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetZoneRecordsOperationCompleted(object arg) {
|
||||
if ((this.GetZoneRecordsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetZoneRecordsCompleted(this, new GetZoneRecordsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddZoneRecord", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void AddZoneRecord(string zoneName, DnsRecord record) {
|
||||
this.Invoke("AddZoneRecord", new object[] {
|
||||
zoneName,
|
||||
record});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddZoneRecord(string zoneName, DnsRecord record, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddZoneRecord", new object[] {
|
||||
zoneName,
|
||||
record}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndAddZoneRecord(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddZoneRecordAsync(string zoneName, DnsRecord record) {
|
||||
this.AddZoneRecordAsync(zoneName, record, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddZoneRecordAsync(string zoneName, DnsRecord record, object userState) {
|
||||
if ((this.AddZoneRecordOperationCompleted == null)) {
|
||||
this.AddZoneRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddZoneRecordOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddZoneRecord", new object[] {
|
||||
zoneName,
|
||||
record}, this.AddZoneRecordOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddZoneRecordOperationCompleted(object arg) {
|
||||
if ((this.AddZoneRecordCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddZoneRecordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZoneRecord", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteZoneRecord(string zoneName, DnsRecord record) {
|
||||
this.Invoke("DeleteZoneRecord", new object[] {
|
||||
zoneName,
|
||||
record});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteZoneRecord(string zoneName, DnsRecord record, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteZoneRecord", new object[] {
|
||||
zoneName,
|
||||
record}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteZoneRecord(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteZoneRecordAsync(string zoneName, DnsRecord record) {
|
||||
this.DeleteZoneRecordAsync(zoneName, record, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteZoneRecordAsync(string zoneName, DnsRecord record, object userState) {
|
||||
if ((this.DeleteZoneRecordOperationCompleted == null)) {
|
||||
this.DeleteZoneRecordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteZoneRecordOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteZoneRecord", new object[] {
|
||||
zoneName,
|
||||
record}, this.DeleteZoneRecordOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteZoneRecordOperationCompleted(object arg) {
|
||||
if ((this.DeleteZoneRecordCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteZoneRecordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddZoneRecords", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void AddZoneRecords(string zoneName, DnsRecord[] records) {
|
||||
this.Invoke("AddZoneRecords", new object[] {
|
||||
zoneName,
|
||||
records});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddZoneRecords(string zoneName, DnsRecord[] records, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddZoneRecords", new object[] {
|
||||
zoneName,
|
||||
records}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndAddZoneRecords(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddZoneRecordsAsync(string zoneName, DnsRecord[] records) {
|
||||
this.AddZoneRecordsAsync(zoneName, records, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddZoneRecordsAsync(string zoneName, DnsRecord[] records, object userState) {
|
||||
if ((this.AddZoneRecordsOperationCompleted == null)) {
|
||||
this.AddZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddZoneRecordsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddZoneRecords", new object[] {
|
||||
zoneName,
|
||||
records}, this.AddZoneRecordsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddZoneRecordsOperationCompleted(object arg) {
|
||||
if ((this.AddZoneRecordsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddZoneRecordsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteZoneRecords", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteZoneRecords(string zoneName, DnsRecord[] records) {
|
||||
this.Invoke("DeleteZoneRecords", new object[] {
|
||||
zoneName,
|
||||
records});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteZoneRecords(string zoneName, DnsRecord[] records, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteZoneRecords", new object[] {
|
||||
zoneName,
|
||||
records}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteZoneRecords(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteZoneRecordsAsync(string zoneName, DnsRecord[] records) {
|
||||
this.DeleteZoneRecordsAsync(zoneName, records, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteZoneRecordsAsync(string zoneName, DnsRecord[] records, object userState) {
|
||||
if ((this.DeleteZoneRecordsOperationCompleted == null)) {
|
||||
this.DeleteZoneRecordsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteZoneRecordsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteZoneRecords", new object[] {
|
||||
zoneName,
|
||||
records}, this.DeleteZoneRecordsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteZoneRecordsOperationCompleted(object arg) {
|
||||
if ((this.DeleteZoneRecordsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteZoneRecordsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void ZoneExistsCompletedEventHandler(object sender, ZoneExistsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class ZoneExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal ZoneExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
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 GetZonesCompletedEventHandler(object sender, GetZonesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetZonesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetZonesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
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 AddPrimaryZoneCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddSecondaryZoneCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteZoneCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateSoaRecordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetZoneRecordsCompletedEventHandler(object sender, GetZoneRecordsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetZoneRecordsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetZoneRecordsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DnsRecord[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((DnsRecord[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddZoneRecordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteZoneRecordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AddZoneRecordsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteZoneRecordsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
|
@ -0,0 +1,574 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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.Providers.ExchangeHostedEdition {
|
||||
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="ExchangeServerHostedEditionSoap", Namespace="http://smbsaas/websitepanel/server/")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class ExchangeServerHostedEdition : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateOrganizationOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetOrganizationDomainsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddOrganizationDomainOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteOrganizationDomainOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetOrganizationDetailsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateOrganizationQuotasOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateOrganizationCatchAllAddressOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateOrganizationServicePlanOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteOrganizationOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeServerHostedEdition() {
|
||||
this.Url = "http://localhost:9003/ExchangeServerHostedEdition.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateOrganizationCompletedEventHandler CreateOrganizationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetOrganizationDomainsCompletedEventHandler GetOrganizationDomainsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AddOrganizationDomainCompletedEventHandler AddOrganizationDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteOrganizationDomainCompletedEventHandler DeleteOrganizationDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetOrganizationDetailsCompletedEventHandler GetOrganizationDetailsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateOrganizationQuotasCompletedEventHandler UpdateOrganizationQuotasCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateOrganizationCatchAllAddressCompletedEventHandler UpdateOrganizationCatchAllAddressCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateOrganizationServicePlanCompletedEventHandler UpdateOrganizationServicePlanCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteOrganizationCompletedEventHandler DeleteOrganizationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganization", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void CreateOrganization(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword) {
|
||||
this.Invoke("CreateOrganization", new object[] {
|
||||
organizationId,
|
||||
programId,
|
||||
offerId,
|
||||
domain,
|
||||
adminName,
|
||||
adminEmail,
|
||||
adminPassword});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateOrganization(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateOrganization", new object[] {
|
||||
organizationId,
|
||||
programId,
|
||||
offerId,
|
||||
domain,
|
||||
adminName,
|
||||
adminEmail,
|
||||
adminPassword}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndCreateOrganization(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOrganizationAsync(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword) {
|
||||
this.CreateOrganizationAsync(organizationId, programId, offerId, domain, adminName, adminEmail, adminPassword, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOrganizationAsync(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword, object userState) {
|
||||
if ((this.CreateOrganizationOperationCompleted == null)) {
|
||||
this.CreateOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateOrganization", new object[] {
|
||||
organizationId,
|
||||
programId,
|
||||
offerId,
|
||||
domain,
|
||||
adminName,
|
||||
adminEmail,
|
||||
adminPassword}, this.CreateOrganizationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateOrganizationOperationCompleted(object arg) {
|
||||
if ((this.CreateOrganizationCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateOrganizationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetOrganizationDomains", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ExchangeOrganizationDomain[] GetOrganizationDomains(string organizationId) {
|
||||
object[] results = this.Invoke("GetOrganizationDomains", new object[] {
|
||||
organizationId});
|
||||
return ((ExchangeOrganizationDomain[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetOrganizationDomains(string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetOrganizationDomains", new object[] {
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganizationDomain[] EndGetOrganizationDomains(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ExchangeOrganizationDomain[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOrganizationDomainsAsync(string organizationId) {
|
||||
this.GetOrganizationDomainsAsync(organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOrganizationDomainsAsync(string organizationId, object userState) {
|
||||
if ((this.GetOrganizationDomainsOperationCompleted == null)) {
|
||||
this.GetOrganizationDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationDomainsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetOrganizationDomains", new object[] {
|
||||
organizationId}, this.GetOrganizationDomainsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetOrganizationDomainsOperationCompleted(object arg) {
|
||||
if ((this.GetOrganizationDomainsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetOrganizationDomainsCompleted(this, new GetOrganizationDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddOrganizationDomain", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void AddOrganizationDomain(string organizationId, string domain) {
|
||||
this.Invoke("AddOrganizationDomain", new object[] {
|
||||
organizationId,
|
||||
domain});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddOrganizationDomain(string organizationId, string domain, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddOrganizationDomain", new object[] {
|
||||
organizationId,
|
||||
domain}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndAddOrganizationDomain(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddOrganizationDomainAsync(string organizationId, string domain) {
|
||||
this.AddOrganizationDomainAsync(organizationId, domain, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddOrganizationDomainAsync(string organizationId, string domain, object userState) {
|
||||
if ((this.AddOrganizationDomainOperationCompleted == null)) {
|
||||
this.AddOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddOrganizationDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddOrganizationDomain", new object[] {
|
||||
organizationId,
|
||||
domain}, this.AddOrganizationDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddOrganizationDomainOperationCompleted(object arg) {
|
||||
if ((this.AddOrganizationDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddOrganizationDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteOrganizationDomain", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteOrganizationDomain(string organizationId, string domain) {
|
||||
this.Invoke("DeleteOrganizationDomain", new object[] {
|
||||
organizationId,
|
||||
domain});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteOrganizationDomain(string organizationId, string domain, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteOrganizationDomain", new object[] {
|
||||
organizationId,
|
||||
domain}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteOrganizationDomain(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationDomainAsync(string organizationId, string domain) {
|
||||
this.DeleteOrganizationDomainAsync(organizationId, domain, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationDomainAsync(string organizationId, string domain, object userState) {
|
||||
if ((this.DeleteOrganizationDomainOperationCompleted == null)) {
|
||||
this.DeleteOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteOrganizationDomain", new object[] {
|
||||
organizationId,
|
||||
domain}, this.DeleteOrganizationDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteOrganizationDomainOperationCompleted(object arg) {
|
||||
if ((this.DeleteOrganizationDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteOrganizationDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetOrganizationDetails", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ExchangeOrganization GetOrganizationDetails(string organizationId) {
|
||||
object[] results = this.Invoke("GetOrganizationDetails", new object[] {
|
||||
organizationId});
|
||||
return ((ExchangeOrganization)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetOrganizationDetails(string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetOrganizationDetails", new object[] {
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExchangeOrganization EndGetOrganizationDetails(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ExchangeOrganization)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOrganizationDetailsAsync(string organizationId) {
|
||||
this.GetOrganizationDetailsAsync(organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetOrganizationDetailsAsync(string organizationId, object userState) {
|
||||
if ((this.GetOrganizationDetailsOperationCompleted == null)) {
|
||||
this.GetOrganizationDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationDetailsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetOrganizationDetails", new object[] {
|
||||
organizationId}, this.GetOrganizationDetailsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetOrganizationDetailsOperationCompleted(object arg) {
|
||||
if ((this.GetOrganizationDetailsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetOrganizationDetailsCompleted(this, new GetOrganizationDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationQuotas", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateOrganizationQuotas(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) {
|
||||
this.Invoke("UpdateOrganizationQuotas", new object[] {
|
||||
organizationId,
|
||||
mailboxesNumber,
|
||||
contactsNumber,
|
||||
distributionListsNumber});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateOrganizationQuotas(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateOrganizationQuotas", new object[] {
|
||||
organizationId,
|
||||
mailboxesNumber,
|
||||
contactsNumber,
|
||||
distributionListsNumber}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateOrganizationQuotas(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOrganizationQuotasAsync(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) {
|
||||
this.UpdateOrganizationQuotasAsync(organizationId, mailboxesNumber, contactsNumber, distributionListsNumber, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOrganizationQuotasAsync(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, object userState) {
|
||||
if ((this.UpdateOrganizationQuotasOperationCompleted == null)) {
|
||||
this.UpdateOrganizationQuotasOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationQuotasOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateOrganizationQuotas", new object[] {
|
||||
organizationId,
|
||||
mailboxesNumber,
|
||||
contactsNumber,
|
||||
distributionListsNumber}, this.UpdateOrganizationQuotasOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateOrganizationQuotasOperationCompleted(object arg) {
|
||||
if ((this.UpdateOrganizationQuotasCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateOrganizationQuotasCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationCatchAllAddress", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateOrganizationCatchAllAddress(string organizationId, string catchAllEmail) {
|
||||
this.Invoke("UpdateOrganizationCatchAllAddress", new object[] {
|
||||
organizationId,
|
||||
catchAllEmail});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateOrganizationCatchAllAddress(string organizationId, string catchAllEmail, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateOrganizationCatchAllAddress", new object[] {
|
||||
organizationId,
|
||||
catchAllEmail}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateOrganizationCatchAllAddress(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOrganizationCatchAllAddressAsync(string organizationId, string catchAllEmail) {
|
||||
this.UpdateOrganizationCatchAllAddressAsync(organizationId, catchAllEmail, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOrganizationCatchAllAddressAsync(string organizationId, string catchAllEmail, object userState) {
|
||||
if ((this.UpdateOrganizationCatchAllAddressOperationCompleted == null)) {
|
||||
this.UpdateOrganizationCatchAllAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationCatchAllAddressOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateOrganizationCatchAllAddress", new object[] {
|
||||
organizationId,
|
||||
catchAllEmail}, this.UpdateOrganizationCatchAllAddressOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateOrganizationCatchAllAddressOperationCompleted(object arg) {
|
||||
if ((this.UpdateOrganizationCatchAllAddressCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateOrganizationCatchAllAddressCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationServicePlan", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateOrganizationServicePlan(string organizationId, string programId, string offerId) {
|
||||
this.Invoke("UpdateOrganizationServicePlan", new object[] {
|
||||
organizationId,
|
||||
programId,
|
||||
offerId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateOrganizationServicePlan(string organizationId, string programId, string offerId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateOrganizationServicePlan", new object[] {
|
||||
organizationId,
|
||||
programId,
|
||||
offerId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateOrganizationServicePlan(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOrganizationServicePlanAsync(string organizationId, string programId, string offerId) {
|
||||
this.UpdateOrganizationServicePlanAsync(organizationId, programId, offerId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateOrganizationServicePlanAsync(string organizationId, string programId, string offerId, object userState) {
|
||||
if ((this.UpdateOrganizationServicePlanOperationCompleted == null)) {
|
||||
this.UpdateOrganizationServicePlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationServicePlanOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateOrganizationServicePlan", new object[] {
|
||||
organizationId,
|
||||
programId,
|
||||
offerId}, this.UpdateOrganizationServicePlanOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateOrganizationServicePlanOperationCompleted(object arg) {
|
||||
if ((this.UpdateOrganizationServicePlanCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateOrganizationServicePlanCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteOrganization", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteOrganization(string organizationId) {
|
||||
this.Invoke("DeleteOrganization", new object[] {
|
||||
organizationId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteOrganization(string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteOrganization", new object[] {
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteOrganization(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationAsync(string organizationId) {
|
||||
this.DeleteOrganizationAsync(organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationAsync(string organizationId, object userState) {
|
||||
if ((this.DeleteOrganizationOperationCompleted == null)) {
|
||||
this.DeleteOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteOrganization", new object[] {
|
||||
organizationId}, this.DeleteOrganizationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteOrganizationOperationCompleted(object arg) {
|
||||
if ((this.DeleteOrganizationCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteOrganizationCompleted(this, new 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 CreateOrganizationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetOrganizationDomainsCompletedEventHandler(object sender, GetOrganizationDomainsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetOrganizationDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetOrganizationDomainsCompletedEventArgs(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 AddOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetOrganizationDetailsCompletedEventHandler(object sender, GetOrganizationDetailsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetOrganizationDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetOrganizationDetailsCompletedEventArgs(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 UpdateOrganizationQuotasCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateOrganizationCatchAllAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateOrganizationServicePlanCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteOrganizationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,946 @@
|
|||
// 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.Providers.FTP {
|
||||
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="FTPServerSoap", Namespace="http://smbsaas/websitepanel/server/")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class FTPServer : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback ChangeSiteStateOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteStateOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SiteExistsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSitesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AccountExistsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetAccountsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetAccountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateAccountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateAccountOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteAccountOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public FTPServer() {
|
||||
this.Url = "http://localhost/WebsitePanelServer11/FtpServer.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event ChangeSiteStateCompletedEventHandler ChangeSiteStateCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSiteStateCompletedEventHandler GetSiteStateCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SiteExistsCompletedEventHandler SiteExistsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSitesCompletedEventHandler GetSitesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSiteCompletedEventHandler GetSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateSiteCompletedEventHandler CreateSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateSiteCompletedEventHandler UpdateSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteSiteCompletedEventHandler DeleteSiteCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AccountExistsCompletedEventHandler AccountExistsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetAccountsCompletedEventHandler GetAccountsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetAccountCompletedEventHandler GetAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateAccountCompletedEventHandler CreateAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateAccountCompletedEventHandler UpdateAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteAccountCompletedEventHandler DeleteAccountCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeSiteState", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void ChangeSiteState(string siteId, ServerState state) {
|
||||
this.Invoke("ChangeSiteState", new object[] {
|
||||
siteId,
|
||||
state});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginChangeSiteState(string siteId, ServerState state, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("ChangeSiteState", new object[] {
|
||||
siteId,
|
||||
state}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndChangeSiteState(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeSiteStateAsync(string siteId, ServerState state) {
|
||||
this.ChangeSiteStateAsync(siteId, state, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeSiteStateAsync(string siteId, ServerState state, object userState) {
|
||||
if ((this.ChangeSiteStateOperationCompleted == null)) {
|
||||
this.ChangeSiteStateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeSiteStateOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ChangeSiteState", new object[] {
|
||||
siteId,
|
||||
state}, this.ChangeSiteStateOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnChangeSiteStateOperationCompleted(object arg) {
|
||||
if ((this.ChangeSiteStateCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ChangeSiteStateCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSiteState", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ServerState GetSiteState(string siteId) {
|
||||
object[] results = this.Invoke("GetSiteState", new object[] {
|
||||
siteId});
|
||||
return ((ServerState)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSiteState(string siteId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSiteState", new object[] {
|
||||
siteId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServerState EndGetSiteState(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ServerState)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteStateAsync(string siteId) {
|
||||
this.GetSiteStateAsync(siteId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteStateAsync(string siteId, object userState) {
|
||||
if ((this.GetSiteStateOperationCompleted == null)) {
|
||||
this.GetSiteStateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteStateOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSiteState", new object[] {
|
||||
siteId}, this.GetSiteStateOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSiteStateOperationCompleted(object arg) {
|
||||
if ((this.GetSiteStateCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSiteStateCompleted(this, new GetSiteStateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SiteExists", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool SiteExists(string siteId) {
|
||||
object[] results = this.Invoke("SiteExists", new object[] {
|
||||
siteId});
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSiteExists(string siteId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SiteExists", new object[] {
|
||||
siteId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool EndSiteExists(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SiteExistsAsync(string siteId) {
|
||||
this.SiteExistsAsync(siteId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SiteExistsAsync(string siteId, object userState) {
|
||||
if ((this.SiteExistsOperationCompleted == null)) {
|
||||
this.SiteExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSiteExistsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SiteExists", new object[] {
|
||||
siteId}, this.SiteExistsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSiteExistsOperationCompleted(object arg) {
|
||||
if ((this.SiteExistsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SiteExistsCompleted(this, new SiteExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSites", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public FtpSite[] GetSites() {
|
||||
object[] results = this.Invoke("GetSites", new object[0]);
|
||||
return ((FtpSite[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSites(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSites", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpSite[] EndGetSites(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((FtpSite[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSitesAsync() {
|
||||
this.GetSitesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSitesAsync(object userState) {
|
||||
if ((this.GetSitesOperationCompleted == null)) {
|
||||
this.GetSitesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSitesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSites", new object[0], this.GetSitesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSitesOperationCompleted(object arg) {
|
||||
if ((this.GetSitesCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSitesCompleted(this, new GetSitesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSite", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public FtpSite GetSite(string siteId) {
|
||||
object[] results = this.Invoke("GetSite", new object[] {
|
||||
siteId});
|
||||
return ((FtpSite)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSite(string siteId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSite", new object[] {
|
||||
siteId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpSite EndGetSite(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((FtpSite)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteAsync(string siteId) {
|
||||
this.GetSiteAsync(siteId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteAsync(string siteId, object userState) {
|
||||
if ((this.GetSiteOperationCompleted == null)) {
|
||||
this.GetSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSite", new object[] {
|
||||
siteId}, 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateSite", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string CreateSite(FtpSite site) {
|
||||
object[] results = this.Invoke("CreateSite", new object[] {
|
||||
site});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateSite(FtpSite site, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateSite", new object[] {
|
||||
site}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndCreateSite(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateSiteAsync(FtpSite site) {
|
||||
this.CreateSiteAsync(site, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateSiteAsync(FtpSite site, object userState) {
|
||||
if ((this.CreateSiteOperationCompleted == null)) {
|
||||
this.CreateSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateSite", new object[] {
|
||||
site}, this.CreateSiteOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateSiteOperationCompleted(object arg) {
|
||||
if ((this.CreateSiteCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateSiteCompleted(this, new CreateSiteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateSite", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateSite(FtpSite site) {
|
||||
this.Invoke("UpdateSite", new object[] {
|
||||
site});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateSite(FtpSite site, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateSite", new object[] {
|
||||
site}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateSite(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSiteAsync(FtpSite site) {
|
||||
this.UpdateSiteAsync(site, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSiteAsync(FtpSite site, object userState) {
|
||||
if ((this.UpdateSiteOperationCompleted == null)) {
|
||||
this.UpdateSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateSite", new object[] {
|
||||
site}, 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 System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteSite", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteSite(string siteId) {
|
||||
this.Invoke("DeleteSite", new object[] {
|
||||
siteId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteSite(string siteId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteSite", new object[] {
|
||||
siteId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteSite(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteAsync(string siteId) {
|
||||
this.DeleteSiteAsync(siteId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteAsync(string siteId, object userState) {
|
||||
if ((this.DeleteSiteOperationCompleted == null)) {
|
||||
this.DeleteSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteSite", new object[] {
|
||||
siteId}, 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 System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AccountExists", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool AccountExists(string accountName) {
|
||||
object[] results = this.Invoke("AccountExists", new object[] {
|
||||
accountName});
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAccountExists(string accountName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AccountExists", new object[] {
|
||||
accountName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool EndAccountExists(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AccountExistsAsync(string accountName) {
|
||||
this.AccountExistsAsync(accountName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AccountExistsAsync(string accountName, object userState) {
|
||||
if ((this.AccountExistsOperationCompleted == null)) {
|
||||
this.AccountExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAccountExistsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AccountExists", new object[] {
|
||||
accountName}, this.AccountExistsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAccountExistsOperationCompleted(object arg) {
|
||||
if ((this.AccountExistsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AccountExistsCompleted(this, new AccountExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetAccounts", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public FtpAccount[] GetAccounts() {
|
||||
object[] results = this.Invoke("GetAccounts", new object[0]);
|
||||
return ((FtpAccount[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetAccounts(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetAccounts", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpAccount[] EndGetAccounts(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((FtpAccount[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAccountsAsync() {
|
||||
this.GetAccountsAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAccountsAsync(object userState) {
|
||||
if ((this.GetAccountsOperationCompleted == null)) {
|
||||
this.GetAccountsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAccountsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetAccounts", new object[0], this.GetAccountsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetAccountsOperationCompleted(object arg) {
|
||||
if ((this.GetAccountsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetAccountsCompleted(this, new GetAccountsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetAccount", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public FtpAccount GetAccount(string accountName) {
|
||||
object[] results = this.Invoke("GetAccount", new object[] {
|
||||
accountName});
|
||||
return ((FtpAccount)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetAccount(string accountName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetAccount", new object[] {
|
||||
accountName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public FtpAccount EndGetAccount(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((FtpAccount)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAccountAsync(string accountName) {
|
||||
this.GetAccountAsync(accountName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetAccountAsync(string accountName, object userState) {
|
||||
if ((this.GetAccountOperationCompleted == null)) {
|
||||
this.GetAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetAccount", new object[] {
|
||||
accountName}, this.GetAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetAccountOperationCompleted(object arg) {
|
||||
if ((this.GetAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetAccountCompleted(this, new GetAccountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateAccount", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void CreateAccount(FtpAccount account) {
|
||||
this.Invoke("CreateAccount", new object[] {
|
||||
account});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateAccount(FtpAccount account, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateAccount", new object[] {
|
||||
account}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndCreateAccount(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateAccountAsync(FtpAccount account) {
|
||||
this.CreateAccountAsync(account, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateAccountAsync(FtpAccount account, object userState) {
|
||||
if ((this.CreateAccountOperationCompleted == null)) {
|
||||
this.CreateAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateAccount", new object[] {
|
||||
account}, this.CreateAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateAccountOperationCompleted(object arg) {
|
||||
if ((this.CreateAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateAccountCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateAccount", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateAccount(FtpAccount account) {
|
||||
this.Invoke("UpdateAccount", new object[] {
|
||||
account});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateAccount(FtpAccount account, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateAccount", new object[] {
|
||||
account}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateAccount(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateAccountAsync(FtpAccount account) {
|
||||
this.UpdateAccountAsync(account, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateAccountAsync(FtpAccount account, object userState) {
|
||||
if ((this.UpdateAccountOperationCompleted == null)) {
|
||||
this.UpdateAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateAccount", new object[] {
|
||||
account}, this.UpdateAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateAccountOperationCompleted(object arg) {
|
||||
if ((this.UpdateAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateAccountCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteAccount", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteAccount(string accountName) {
|
||||
this.Invoke("DeleteAccount", new object[] {
|
||||
accountName});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteAccount(string accountName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteAccount", new object[] {
|
||||
accountName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteAccount(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteAccountAsync(string accountName) {
|
||||
this.DeleteAccountAsync(accountName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteAccountAsync(string accountName, object userState) {
|
||||
if ((this.DeleteAccountOperationCompleted == null)) {
|
||||
this.DeleteAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteAccountOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteAccount", new object[] {
|
||||
accountName}, this.DeleteAccountOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteAccountOperationCompleted(object arg) {
|
||||
if ((this.DeleteAccountCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteAccountCompleted(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 ChangeSiteStateCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetSiteStateCompletedEventHandler(object sender, GetSiteStateCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSiteStateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSiteStateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServerState Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ServerState)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SiteExistsCompletedEventHandler(object sender, SiteExistsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class SiteExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal SiteExistsCompletedEventArgs(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 GetSitesCompletedEventHandler(object sender, GetSitesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSitesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSitesCompletedEventArgs(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 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 FtpSite Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((FtpSite)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CreateSiteCompletedEventHandler(object sender, CreateSiteCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CreateSiteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CreateSiteCompletedEventArgs(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 UpdateSiteCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteSiteCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AccountExistsCompletedEventHandler(object sender, AccountExistsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AccountExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AccountExistsCompletedEventArgs(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 GetAccountsCompletedEventHandler(object sender, GetAccountsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetAccountsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetAccountsCompletedEventArgs(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 GetAccountCompletedEventHandler(object sender, GetAccountCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetAccountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetAccountCompletedEventArgs(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 CreateAccountCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateAccountCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteAccountCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
|
@ -0,0 +1,879 @@
|
|||
// 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.SharePoint;
|
||||
|
||||
namespace WebsitePanel.Providers.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="HostedSharePointServerSoap", Namespace="http://smbsaas/websitepanel/server/")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class HostedSharePointServer : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSupportedLanguagesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteCollectionsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteCollectionOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateSiteCollectionOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateQuotasOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CalculateSiteCollectionsDiskSpaceOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteSiteCollectionOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback BackupSiteCollectionOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback RestoreSiteCollectionOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetTempFileBinaryChunkOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AppendTempFileBinaryChunkOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteCollectionSizeOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public HostedSharePointServer() {
|
||||
this.Url = "http://192.168.0.132:9003/HostedSharePointServer.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSupportedLanguagesCompletedEventHandler GetSupportedLanguagesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSiteCollectionsCompletedEventHandler GetSiteCollectionsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSiteCollectionCompletedEventHandler GetSiteCollectionCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateSiteCollectionCompletedEventHandler CreateSiteCollectionCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UpdateQuotasCompletedEventHandler UpdateQuotasCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CalculateSiteCollectionsDiskSpaceCompletedEventHandler CalculateSiteCollectionsDiskSpaceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteSiteCollectionCompletedEventHandler DeleteSiteCollectionCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event BackupSiteCollectionCompletedEventHandler BackupSiteCollectionCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event RestoreSiteCollectionCompletedEventHandler RestoreSiteCollectionCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetTempFileBinaryChunkCompletedEventHandler GetTempFileBinaryChunkCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event AppendTempFileBinaryChunkCompletedEventHandler AppendTempFileBinaryChunkCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSiteCollectionSizeCompletedEventHandler GetSiteCollectionSizeCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSupportedLanguages", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public int[] GetSupportedLanguages() {
|
||||
object[] results = this.Invoke("GetSupportedLanguages", new object[0]);
|
||||
return ((int[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSupportedLanguages(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSupportedLanguages", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int[] EndGetSupportedLanguages(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((int[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSupportedLanguagesAsync() {
|
||||
this.GetSupportedLanguagesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSupportedLanguagesAsync(object userState) {
|
||||
if ((this.GetSupportedLanguagesOperationCompleted == null)) {
|
||||
this.GetSupportedLanguagesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSupportedLanguagesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSupportedLanguages", new object[0], this.GetSupportedLanguagesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSupportedLanguagesOperationCompleted(object arg) {
|
||||
if ((this.GetSupportedLanguagesCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSupportedLanguagesCompleted(this, new GetSupportedLanguagesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSiteCollections", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SharePointSiteCollection[] GetSiteCollections() {
|
||||
object[] results = this.Invoke("GetSiteCollections", new object[0]);
|
||||
return ((SharePointSiteCollection[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSiteCollections(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSiteCollections", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection[] EndGetSiteCollections(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollection[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteCollectionsAsync() {
|
||||
this.GetSiteCollectionsAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteCollectionsAsync(object userState) {
|
||||
if ((this.GetSiteCollectionsOperationCompleted == null)) {
|
||||
this.GetSiteCollectionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteCollectionsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSiteCollections", new object[0], this.GetSiteCollectionsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSiteCollectionsOperationCompleted(object arg) {
|
||||
if ((this.GetSiteCollectionsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSiteCollectionsCompleted(this, new GetSiteCollectionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSiteCollection", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SharePointSiteCollection GetSiteCollection(string url) {
|
||||
object[] results = this.Invoke("GetSiteCollection", new object[] {
|
||||
url});
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSiteCollection(string url, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSiteCollection", new object[] {
|
||||
url}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection EndGetSiteCollection(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteCollectionAsync(string url) {
|
||||
this.GetSiteCollectionAsync(url, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteCollectionAsync(string url, object userState) {
|
||||
if ((this.GetSiteCollectionOperationCompleted == null)) {
|
||||
this.GetSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteCollectionOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSiteCollection", new object[] {
|
||||
url}, this.GetSiteCollectionOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSiteCollectionOperationCompleted(object arg) {
|
||||
if ((this.GetSiteCollectionCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSiteCollectionCompleted(this, new GetSiteCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateSiteCollection", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void CreateSiteCollection(SharePointSiteCollection siteCollection) {
|
||||
this.Invoke("CreateSiteCollection", new object[] {
|
||||
siteCollection});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateSiteCollection(SharePointSiteCollection siteCollection, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateSiteCollection", new object[] {
|
||||
siteCollection}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndCreateSiteCollection(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateSiteCollectionAsync(SharePointSiteCollection siteCollection) {
|
||||
this.CreateSiteCollectionAsync(siteCollection, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateSiteCollectionAsync(SharePointSiteCollection siteCollection, object userState) {
|
||||
if ((this.CreateSiteCollectionOperationCompleted == null)) {
|
||||
this.CreateSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateSiteCollectionOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateSiteCollection", new object[] {
|
||||
siteCollection}, this.CreateSiteCollectionOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateSiteCollectionOperationCompleted(object arg) {
|
||||
if ((this.CreateSiteCollectionCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateSiteCollectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateQuotas", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateQuotas(string url, long maxSize, long warningSize) {
|
||||
this.Invoke("UpdateQuotas", new object[] {
|
||||
url,
|
||||
maxSize,
|
||||
warningSize});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateQuotas(string url, long maxSize, long warningSize, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("UpdateQuotas", new object[] {
|
||||
url,
|
||||
maxSize,
|
||||
warningSize}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateQuotas(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateQuotasAsync(string url, long maxSize, long warningSize) {
|
||||
this.UpdateQuotasAsync(url, maxSize, warningSize, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateQuotasAsync(string url, long maxSize, long warningSize, object userState) {
|
||||
if ((this.UpdateQuotasOperationCompleted == null)) {
|
||||
this.UpdateQuotasOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateQuotasOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateQuotas", new object[] {
|
||||
url,
|
||||
maxSize,
|
||||
warningSize}, this.UpdateQuotasOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUpdateQuotasOperationCompleted(object arg) {
|
||||
if ((this.UpdateQuotasCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UpdateQuotasCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CalculateSiteCollectionsDiskSpace", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SharePointSiteDiskSpace[] CalculateSiteCollectionsDiskSpace(string[] urls) {
|
||||
object[] results = this.Invoke("CalculateSiteCollectionsDiskSpace", new object[] {
|
||||
urls});
|
||||
return ((SharePointSiteDiskSpace[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCalculateSiteCollectionsDiskSpace(string[] urls, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CalculateSiteCollectionsDiskSpace", new object[] {
|
||||
urls}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteDiskSpace[] EndCalculateSiteCollectionsDiskSpace(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteDiskSpace[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CalculateSiteCollectionsDiskSpaceAsync(string[] urls) {
|
||||
this.CalculateSiteCollectionsDiskSpaceAsync(urls, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CalculateSiteCollectionsDiskSpaceAsync(string[] urls, object userState) {
|
||||
if ((this.CalculateSiteCollectionsDiskSpaceOperationCompleted == null)) {
|
||||
this.CalculateSiteCollectionsDiskSpaceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCalculateSiteCollectionsDiskSpaceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CalculateSiteCollectionsDiskSpace", new object[] {
|
||||
urls}, this.CalculateSiteCollectionsDiskSpaceOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCalculateSiteCollectionsDiskSpaceOperationCompleted(object arg) {
|
||||
if ((this.CalculateSiteCollectionsDiskSpaceCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CalculateSiteCollectionsDiskSpaceCompleted(this, new CalculateSiteCollectionsDiskSpaceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteSiteCollection", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteSiteCollection(string url) {
|
||||
this.Invoke("DeleteSiteCollection", new object[] {
|
||||
url});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteSiteCollection(string url, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteSiteCollection", new object[] {
|
||||
url}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteSiteCollection(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteCollectionAsync(string url) {
|
||||
this.DeleteSiteCollectionAsync(url, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteCollectionAsync(string url, object userState) {
|
||||
if ((this.DeleteSiteCollectionOperationCompleted == null)) {
|
||||
this.DeleteSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteSiteCollectionOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteSiteCollection", new object[] {
|
||||
url}, this.DeleteSiteCollectionOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteSiteCollectionOperationCompleted(object arg) {
|
||||
if ((this.DeleteSiteCollectionCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteSiteCollectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/BackupSiteCollection", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string BackupSiteCollection(string url, string filename, bool zip) {
|
||||
object[] results = this.Invoke("BackupSiteCollection", new object[] {
|
||||
url,
|
||||
filename,
|
||||
zip});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginBackupSiteCollection(string url, string filename, bool zip, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("BackupSiteCollection", new object[] {
|
||||
url,
|
||||
filename,
|
||||
zip}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndBackupSiteCollection(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void BackupSiteCollectionAsync(string url, string filename, bool zip) {
|
||||
this.BackupSiteCollectionAsync(url, filename, zip, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void BackupSiteCollectionAsync(string url, string filename, bool zip, object userState) {
|
||||
if ((this.BackupSiteCollectionOperationCompleted == null)) {
|
||||
this.BackupSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBackupSiteCollectionOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("BackupSiteCollection", new object[] {
|
||||
url,
|
||||
filename,
|
||||
zip}, this.BackupSiteCollectionOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnBackupSiteCollectionOperationCompleted(object arg) {
|
||||
if ((this.BackupSiteCollectionCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.BackupSiteCollectionCompleted(this, new BackupSiteCollectionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RestoreSiteCollection", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void RestoreSiteCollection(SharePointSiteCollection siteCollection, string filename) {
|
||||
this.Invoke("RestoreSiteCollection", new object[] {
|
||||
siteCollection,
|
||||
filename});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginRestoreSiteCollection(SharePointSiteCollection siteCollection, string filename, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("RestoreSiteCollection", new object[] {
|
||||
siteCollection,
|
||||
filename}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndRestoreSiteCollection(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RestoreSiteCollectionAsync(SharePointSiteCollection siteCollection, string filename) {
|
||||
this.RestoreSiteCollectionAsync(siteCollection, filename, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RestoreSiteCollectionAsync(SharePointSiteCollection siteCollection, string filename, object userState) {
|
||||
if ((this.RestoreSiteCollectionOperationCompleted == null)) {
|
||||
this.RestoreSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRestoreSiteCollectionOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("RestoreSiteCollection", new object[] {
|
||||
siteCollection,
|
||||
filename}, this.RestoreSiteCollectionOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnRestoreSiteCollectionOperationCompleted(object arg) {
|
||||
if ((this.RestoreSiteCollectionCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.RestoreSiteCollectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetTempFileBinaryChunk", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
[return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
|
||||
public byte[] GetTempFileBinaryChunk(string path, int offset, int length) {
|
||||
object[] results = this.Invoke("GetTempFileBinaryChunk", new object[] {
|
||||
path,
|
||||
offset,
|
||||
length});
|
||||
return ((byte[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetTempFileBinaryChunk(string path, int offset, int length, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetTempFileBinaryChunk", new object[] {
|
||||
path,
|
||||
offset,
|
||||
length}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public byte[] EndGetTempFileBinaryChunk(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((byte[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTempFileBinaryChunkAsync(string path, int offset, int length) {
|
||||
this.GetTempFileBinaryChunkAsync(path, offset, length, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTempFileBinaryChunkAsync(string path, int offset, int length, object userState) {
|
||||
if ((this.GetTempFileBinaryChunkOperationCompleted == null)) {
|
||||
this.GetTempFileBinaryChunkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTempFileBinaryChunkOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetTempFileBinaryChunk", new object[] {
|
||||
path,
|
||||
offset,
|
||||
length}, this.GetTempFileBinaryChunkOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetTempFileBinaryChunkOperationCompleted(object arg) {
|
||||
if ((this.GetTempFileBinaryChunkCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetTempFileBinaryChunkCompleted(this, new GetTempFileBinaryChunkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AppendTempFileBinaryChunk", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string AppendTempFileBinaryChunk(string fileName, string path, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] chunk) {
|
||||
object[] results = this.Invoke("AppendTempFileBinaryChunk", new object[] {
|
||||
fileName,
|
||||
path,
|
||||
chunk});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAppendTempFileBinaryChunk(string fileName, string path, byte[] chunk, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AppendTempFileBinaryChunk", new object[] {
|
||||
fileName,
|
||||
path,
|
||||
chunk}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndAppendTempFileBinaryChunk(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AppendTempFileBinaryChunkAsync(string fileName, string path, byte[] chunk) {
|
||||
this.AppendTempFileBinaryChunkAsync(fileName, path, chunk, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AppendTempFileBinaryChunkAsync(string fileName, string path, byte[] chunk, object userState) {
|
||||
if ((this.AppendTempFileBinaryChunkOperationCompleted == null)) {
|
||||
this.AppendTempFileBinaryChunkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAppendTempFileBinaryChunkOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AppendTempFileBinaryChunk", new object[] {
|
||||
fileName,
|
||||
path,
|
||||
chunk}, this.AppendTempFileBinaryChunkOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAppendTempFileBinaryChunkOperationCompleted(object arg) {
|
||||
if ((this.AppendTempFileBinaryChunkCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AppendTempFileBinaryChunkCompleted(this, new AppendTempFileBinaryChunkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSiteCollectionSize", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public long GetSiteCollectionSize(string url) {
|
||||
object[] results = this.Invoke("GetSiteCollectionSize", new object[] {
|
||||
url});
|
||||
return ((long)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSiteCollectionSize(string url, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetSiteCollectionSize", new object[] {
|
||||
url}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public long EndGetSiteCollectionSize(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((long)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteCollectionSizeAsync(string url) {
|
||||
this.GetSiteCollectionSizeAsync(url, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteCollectionSizeAsync(string url, object userState) {
|
||||
if ((this.GetSiteCollectionSizeOperationCompleted == null)) {
|
||||
this.GetSiteCollectionSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteCollectionSizeOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSiteCollectionSize", new object[] {
|
||||
url}, this.GetSiteCollectionSizeOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSiteCollectionSizeOperationCompleted(object arg) {
|
||||
if ((this.GetSiteCollectionSizeCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSiteCollectionSizeCompleted(this, new GetSiteCollectionSizeCompletedEventArgs(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 GetSupportedLanguagesCompletedEventHandler(object sender, GetSupportedLanguagesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSupportedLanguagesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSupportedLanguagesCompletedEventArgs(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 GetSiteCollectionsCompletedEventHandler(object sender, GetSiteCollectionsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSiteCollectionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSiteCollectionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollection[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetSiteCollectionCompletedEventHandler(object sender, GetSiteCollectionCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSiteCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSiteCollectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollection)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CreateSiteCollectionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateQuotasCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CalculateSiteCollectionsDiskSpaceCompletedEventHandler(object sender, CalculateSiteCollectionsDiskSpaceCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CalculateSiteCollectionsDiskSpaceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CalculateSiteCollectionsDiskSpaceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteDiskSpace[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteDiskSpace[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteSiteCollectionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void BackupSiteCollectionCompletedEventHandler(object sender, BackupSiteCollectionCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class BackupSiteCollectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal BackupSiteCollectionCompletedEventArgs(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 RestoreSiteCollectionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetTempFileBinaryChunkCompletedEventHandler(object sender, GetTempFileBinaryChunkCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetTempFileBinaryChunkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetTempFileBinaryChunkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public byte[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((byte[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void AppendTempFileBinaryChunkCompletedEventHandler(object sender, AppendTempFileBinaryChunkCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class AppendTempFileBinaryChunkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal AppendTempFileBinaryChunkCompletedEventArgs(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 GetSiteCollectionSizeCompletedEventHandler(object sender, GetSiteCollectionSizeCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSiteCollectionSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSiteCollectionSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public long Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((long)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2514
WebsitePanel/Sources/WebsitePanel.Server.Client/MailServerProxy.cs
Normal file
2514
WebsitePanel/Sources/WebsitePanel.Server.Client/MailServerProxy.cs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,169 @@
|
|||
// 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.Providers.OCS {
|
||||
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="OCSEdgeServerSoap", Namespace="http://smbsaas/websitepanel/server/")]
|
||||
public partial class OCSEdgeServer : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddDomainOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteDomainOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public OCSEdgeServer() {
|
||||
this.Url = "http://exchange-dev:9003/OCSEdgeServer.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event AddDomainCompletedEventHandler AddDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteDomainCompletedEventHandler DeleteDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddDomain", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void AddDomain(string domainName) {
|
||||
this.Invoke("AddDomain", new object[] {
|
||||
domainName});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddDomain(string domainName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("AddDomain", new object[] {
|
||||
domainName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndAddDomain(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddDomainAsync(string domainName) {
|
||||
this.AddDomainAsync(domainName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddDomainAsync(string domainName, object userState) {
|
||||
if ((this.AddDomainOperationCompleted == null)) {
|
||||
this.AddDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddDomain", new object[] {
|
||||
domainName}, this.AddDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnAddDomainOperationCompleted(object arg) {
|
||||
if ((this.AddDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.AddDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDomain", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteDomain(string domainName) {
|
||||
this.Invoke("DeleteDomain", new object[] {
|
||||
domainName});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteDomain(string domainName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteDomain", new object[] {
|
||||
domainName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteDomain(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteDomainAsync(string domainName) {
|
||||
this.DeleteDomainAsync(domainName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteDomainAsync(string domainName, object userState) {
|
||||
if ((this.DeleteDomainOperationCompleted == null)) {
|
||||
this.DeleteDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteDomain", new object[] {
|
||||
domainName}, this.DeleteDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteDomainOperationCompleted(object arg) {
|
||||
if ((this.DeleteDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteDomainCompleted(this, new 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 AddDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
|
@ -0,0 +1,388 @@
|
|||
// 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.HostedSolution;
|
||||
|
||||
namespace WebsitePanel.Providers.OCS {
|
||||
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="OCSServerSoap", Namespace="http://smbsaas/websitepanel/server/")]
|
||||
public partial class OCSServer : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetUserGeneralSettingsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetUserGeneralSettingsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetUserPrimaryUriOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public OCSServer() {
|
||||
this.Url = "http://exchange-dev:9003/OCSServer.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateUserCompletedEventHandler CreateUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetUserGeneralSettingsCompletedEventHandler GetUserGeneralSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetUserGeneralSettingsCompletedEventHandler SetUserGeneralSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteUserCompletedEventHandler DeleteUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetUserPrimaryUriCompletedEventHandler SetUserPrimaryUriCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateUser", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string CreateUser(string userUpn, string userDistinguishedName) {
|
||||
object[] results = this.Invoke("CreateUser", new object[] {
|
||||
userUpn,
|
||||
userDistinguishedName});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateUser(string userUpn, string userDistinguishedName, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateUser", new object[] {
|
||||
userUpn,
|
||||
userDistinguishedName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndCreateUser(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateUserAsync(string userUpn, string userDistinguishedName) {
|
||||
this.CreateUserAsync(userUpn, userDistinguishedName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateUserAsync(string userUpn, string userDistinguishedName, object userState) {
|
||||
if ((this.CreateUserOperationCompleted == null)) {
|
||||
this.CreateUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateUser", new object[] {
|
||||
userUpn,
|
||||
userDistinguishedName}, this.CreateUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateUserOperationCompleted(object arg) {
|
||||
if ((this.CreateUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateUserCompleted(this, new CreateUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetUserGeneralSettings", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public OCSUser GetUserGeneralSettings(string instanceId) {
|
||||
object[] results = this.Invoke("GetUserGeneralSettings", new object[] {
|
||||
instanceId});
|
||||
return ((OCSUser)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetUserGeneralSettings(string instanceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetUserGeneralSettings", new object[] {
|
||||
instanceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OCSUser EndGetUserGeneralSettings(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((OCSUser)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserGeneralSettingsAsync(string instanceId) {
|
||||
this.GetUserGeneralSettingsAsync(instanceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetUserGeneralSettingsAsync(string instanceId, object userState) {
|
||||
if ((this.GetUserGeneralSettingsOperationCompleted == null)) {
|
||||
this.GetUserGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserGeneralSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetUserGeneralSettings", new object[] {
|
||||
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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetUserGeneralSettings", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void SetUserGeneralSettings(string instanceId, bool enabledForFederation, bool enabledForPublicIMConectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence) {
|
||||
this.Invoke("SetUserGeneralSettings", new object[] {
|
||||
instanceId,
|
||||
enabledForFederation,
|
||||
enabledForPublicIMConectivity,
|
||||
archiveInternalCommunications,
|
||||
archiveFederatedCommunications,
|
||||
enabledForEnhancedPresence});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetUserGeneralSettings(string instanceId, bool enabledForFederation, bool enabledForPublicIMConectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetUserGeneralSettings", new object[] {
|
||||
instanceId,
|
||||
enabledForFederation,
|
||||
enabledForPublicIMConectivity,
|
||||
archiveInternalCommunications,
|
||||
archiveFederatedCommunications,
|
||||
enabledForEnhancedPresence}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndSetUserGeneralSettings(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserGeneralSettingsAsync(string instanceId, bool enabledForFederation, bool enabledForPublicIMConectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence) {
|
||||
this.SetUserGeneralSettingsAsync(instanceId, enabledForFederation, enabledForPublicIMConectivity, archiveInternalCommunications, archiveFederatedCommunications, enabledForEnhancedPresence, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserGeneralSettingsAsync(string instanceId, bool enabledForFederation, bool enabledForPublicIMConectivity, 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[] {
|
||||
instanceId,
|
||||
enabledForFederation,
|
||||
enabledForPublicIMConectivity,
|
||||
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/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteUser", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteUser(string instanceId) {
|
||||
this.Invoke("DeleteUser", new object[] {
|
||||
instanceId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteUser(string instanceId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteUser", new object[] {
|
||||
instanceId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteUser(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteUserAsync(string instanceId) {
|
||||
this.DeleteUserAsync(instanceId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteUserAsync(string instanceId, object userState) {
|
||||
if ((this.DeleteUserOperationCompleted == null)) {
|
||||
this.DeleteUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteUser", new object[] {
|
||||
instanceId}, this.DeleteUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteUserOperationCompleted(object arg) {
|
||||
if ((this.DeleteUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteUserCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetUserPrimaryUri", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void SetUserPrimaryUri(string instanceId, string userUpn) {
|
||||
this.Invoke("SetUserPrimaryUri", new object[] {
|
||||
instanceId,
|
||||
userUpn});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetUserPrimaryUri(string instanceId, string userUpn, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("SetUserPrimaryUri", new object[] {
|
||||
instanceId,
|
||||
userUpn}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndSetUserPrimaryUri(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserPrimaryUriAsync(string instanceId, string userUpn) {
|
||||
this.SetUserPrimaryUriAsync(instanceId, userUpn, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserPrimaryUriAsync(string instanceId, string userUpn, object userState) {
|
||||
if ((this.SetUserPrimaryUriOperationCompleted == null)) {
|
||||
this.SetUserPrimaryUriOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserPrimaryUriOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetUserPrimaryUri", new object[] {
|
||||
instanceId,
|
||||
userUpn}, this.SetUserPrimaryUriOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnSetUserPrimaryUriOperationCompleted(object arg) {
|
||||
if ((this.SetUserPrimaryUriCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.SetUserPrimaryUriCompleted(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 CreateUserCompletedEventHandler(object sender, CreateUserCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CreateUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CreateUserCompletedEventArgs(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 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);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteUserCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetUserPrimaryUriCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,890 @@
|
|||
// 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.ResultObjects;
|
||||
|
||||
namespace WebsitePanel.Providers.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="OrganizationsSoap", Namespace="http://tempuri.org/")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ResultObject))]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class Organizations : Microsoft.Web.Services3.WebServicesClientProtocol {
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback OrganizationExistsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateOrganizationOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteOrganizationOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteUserOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GeUserGeneralSettingsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback SetUserGeneralSettingsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteOrganizationDomainOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CreateOrganizationDomainOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetPasswordPolicyOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public Organizations() {
|
||||
this.Url = "http://exchange-dev:9003/Organizations.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event OrganizationExistsCompletedEventHandler OrganizationExistsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateOrganizationCompletedEventHandler CreateOrganizationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteOrganizationCompletedEventHandler DeleteOrganizationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateUserCompletedEventHandler CreateUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteUserCompletedEventHandler DeleteUserCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GeUserGeneralSettingsCompletedEventHandler GeUserGeneralSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event SetUserGeneralSettingsCompletedEventHandler SetUserGeneralSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteOrganizationDomainCompletedEventHandler DeleteOrganizationDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CreateOrganizationDomainCompletedEventHandler CreateOrganizationDomainCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetPasswordPolicyCompletedEventHandler GetPasswordPolicyCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/OrganizationExists", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool OrganizationExists(string organizationId) {
|
||||
object[] results = this.Invoke("OrganizationExists", new object[] {
|
||||
organizationId});
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginOrganizationExists(string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("OrganizationExists", new object[] {
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool EndOrganizationExists(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void OrganizationExistsAsync(string organizationId) {
|
||||
this.OrganizationExistsAsync(organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void OrganizationExistsAsync(string organizationId, object userState) {
|
||||
if ((this.OrganizationExistsOperationCompleted == null)) {
|
||||
this.OrganizationExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnOrganizationExistsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("OrganizationExists", new object[] {
|
||||
organizationId}, this.OrganizationExistsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnOrganizationExistsOperationCompleted(object arg) {
|
||||
if ((this.OrganizationExistsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.OrganizationExistsCompleted(this, new OrganizationExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOrganization", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public Organization CreateOrganization(string organizationId) {
|
||||
object[] results = this.Invoke("CreateOrganization", new object[] {
|
||||
organizationId});
|
||||
return ((Organization)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateOrganization(string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateOrganization", new object[] {
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public Organization EndCreateOrganization(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((Organization)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOrganizationAsync(string organizationId) {
|
||||
this.CreateOrganizationAsync(organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOrganizationAsync(string organizationId, object userState) {
|
||||
if ((this.CreateOrganizationOperationCompleted == null)) {
|
||||
this.CreateOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateOrganization", new object[] {
|
||||
organizationId}, this.CreateOrganizationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateOrganizationOperationCompleted(object arg) {
|
||||
if ((this.CreateOrganizationCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateOrganizationCompleted(this, new CreateOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteOrganization", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteOrganization(string organizationId) {
|
||||
this.Invoke("DeleteOrganization", new object[] {
|
||||
organizationId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteOrganization(string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteOrganization", new object[] {
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteOrganization(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationAsync(string organizationId) {
|
||||
this.DeleteOrganizationAsync(organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationAsync(string organizationId, object userState) {
|
||||
if ((this.DeleteOrganizationOperationCompleted == null)) {
|
||||
this.DeleteOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteOrganization", new object[] {
|
||||
organizationId}, this.DeleteOrganizationOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteOrganizationOperationCompleted(object arg) {
|
||||
if ((this.DeleteOrganizationCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteOrganizationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void CreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled) {
|
||||
this.Invoke("CreateUser", new object[] {
|
||||
organizationId,
|
||||
loginName,
|
||||
displayName,
|
||||
upn,
|
||||
password,
|
||||
enabled});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateUser", new object[] {
|
||||
organizationId,
|
||||
loginName,
|
||||
displayName,
|
||||
upn,
|
||||
password,
|
||||
enabled}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndCreateUser(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateUserAsync(string organizationId, string loginName, string displayName, string upn, string password, bool enabled) {
|
||||
this.CreateUserAsync(organizationId, loginName, displayName, upn, password, enabled, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateUserAsync(string organizationId, string loginName, string displayName, string upn, string password, bool enabled, object userState) {
|
||||
if ((this.CreateUserOperationCompleted == null)) {
|
||||
this.CreateUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateUser", new object[] {
|
||||
organizationId,
|
||||
loginName,
|
||||
displayName,
|
||||
upn,
|
||||
password,
|
||||
enabled}, this.CreateUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateUserOperationCompleted(object arg) {
|
||||
if ((this.CreateUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateUserCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteUser(string loginName, string organizationId) {
|
||||
this.Invoke("DeleteUser", new object[] {
|
||||
loginName,
|
||||
organizationId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteUser(string loginName, string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteUser", new object[] {
|
||||
loginName,
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteUser(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteUserAsync(string loginName, string organizationId) {
|
||||
this.DeleteUserAsync(loginName, organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteUserAsync(string loginName, string organizationId, object userState) {
|
||||
if ((this.DeleteUserOperationCompleted == null)) {
|
||||
this.DeleteUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteUserOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteUser", new object[] {
|
||||
loginName,
|
||||
organizationId}, this.DeleteUserOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteUserOperationCompleted(object arg) {
|
||||
if ((this.DeleteUserCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteUserCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GeUserGeneralSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public OrganizationUser GeUserGeneralSettings(string loginName, string organizationId) {
|
||||
object[] results = this.Invoke("GeUserGeneralSettings", new object[] {
|
||||
loginName,
|
||||
organizationId});
|
||||
return ((OrganizationUser)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGeUserGeneralSettings(string loginName, string organizationId, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GeUserGeneralSettings", new object[] {
|
||||
loginName,
|
||||
organizationId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OrganizationUser EndGeUserGeneralSettings(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((OrganizationUser)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GeUserGeneralSettingsAsync(string loginName, string organizationId) {
|
||||
this.GeUserGeneralSettingsAsync(loginName, organizationId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GeUserGeneralSettingsAsync(string loginName, string organizationId, object userState) {
|
||||
if ((this.GeUserGeneralSettingsOperationCompleted == null)) {
|
||||
this.GeUserGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGeUserGeneralSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GeUserGeneralSettings", new object[] {
|
||||
loginName,
|
||||
organizationId}, this.GeUserGeneralSettingsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGeUserGeneralSettingsOperationCompleted(object arg) {
|
||||
if ((this.GeUserGeneralSettingsCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GeUserGeneralSettingsCompleted(this, new GeUserGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[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(
|
||||
string organizationId,
|
||||
string accountName,
|
||||
string displayName,
|
||||
string password,
|
||||
bool hideFromAddressBook,
|
||||
bool disabled,
|
||||
bool locked,
|
||||
string firstName,
|
||||
string initials,
|
||||
string lastName,
|
||||
string address,
|
||||
string city,
|
||||
string state,
|
||||
string zip,
|
||||
string country,
|
||||
string jobTitle,
|
||||
string company,
|
||||
string department,
|
||||
string office,
|
||||
string managerAccountName,
|
||||
string businessPhone,
|
||||
string fax,
|
||||
string homePhone,
|
||||
string mobilePhone,
|
||||
string pager,
|
||||
string webPage,
|
||||
string notes,
|
||||
string externalEmail) {
|
||||
this.Invoke("SetUserGeneralSettings", new object[] {
|
||||
organizationId,
|
||||
accountName,
|
||||
displayName,
|
||||
password,
|
||||
hideFromAddressBook,
|
||||
disabled,
|
||||
locked,
|
||||
firstName,
|
||||
initials,
|
||||
lastName,
|
||||
address,
|
||||
city,
|
||||
state,
|
||||
zip,
|
||||
country,
|
||||
jobTitle,
|
||||
company,
|
||||
department,
|
||||
office,
|
||||
managerAccountName,
|
||||
businessPhone,
|
||||
fax,
|
||||
homePhone,
|
||||
mobilePhone,
|
||||
pager,
|
||||
webPage,
|
||||
notes,
|
||||
externalEmail});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginSetUserGeneralSettings(
|
||||
string organizationId,
|
||||
string accountName,
|
||||
string displayName,
|
||||
string password,
|
||||
bool hideFromAddressBook,
|
||||
bool disabled,
|
||||
bool locked,
|
||||
string firstName,
|
||||
string initials,
|
||||
string lastName,
|
||||
string address,
|
||||
string city,
|
||||
string state,
|
||||
string zip,
|
||||
string country,
|
||||
string jobTitle,
|
||||
string company,
|
||||
string department,
|
||||
string office,
|
||||
string managerAccountName,
|
||||
string businessPhone,
|
||||
string fax,
|
||||
string homePhone,
|
||||
string mobilePhone,
|
||||
string pager,
|
||||
string webPage,
|
||||
string notes,
|
||||
string externalEmail,
|
||||
System.AsyncCallback callback,
|
||||
object asyncState) {
|
||||
return this.BeginInvoke("SetUserGeneralSettings", new object[] {
|
||||
organizationId,
|
||||
accountName,
|
||||
displayName,
|
||||
password,
|
||||
hideFromAddressBook,
|
||||
disabled,
|
||||
locked,
|
||||
firstName,
|
||||
initials,
|
||||
lastName,
|
||||
address,
|
||||
city,
|
||||
state,
|
||||
zip,
|
||||
country,
|
||||
jobTitle,
|
||||
company,
|
||||
department,
|
||||
office,
|
||||
managerAccountName,
|
||||
businessPhone,
|
||||
fax,
|
||||
homePhone,
|
||||
mobilePhone,
|
||||
pager,
|
||||
webPage,
|
||||
notes,
|
||||
externalEmail}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndSetUserGeneralSettings(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserGeneralSettingsAsync(
|
||||
string organizationId,
|
||||
string accountName,
|
||||
string displayName,
|
||||
string password,
|
||||
bool hideFromAddressBook,
|
||||
bool disabled,
|
||||
bool locked,
|
||||
string firstName,
|
||||
string initials,
|
||||
string lastName,
|
||||
string address,
|
||||
string city,
|
||||
string state,
|
||||
string zip,
|
||||
string country,
|
||||
string jobTitle,
|
||||
string company,
|
||||
string department,
|
||||
string office,
|
||||
string managerAccountName,
|
||||
string businessPhone,
|
||||
string fax,
|
||||
string homePhone,
|
||||
string mobilePhone,
|
||||
string pager,
|
||||
string webPage,
|
||||
string notes,
|
||||
string externalEmail) {
|
||||
this.SetUserGeneralSettingsAsync(organizationId, accountName, displayName, password, hideFromAddressBook, disabled, locked, firstName, initials, lastName, address, city, state, zip, country, jobTitle, company, department, office, managerAccountName, businessPhone, fax, homePhone, mobilePhone, pager, webPage, notes, externalEmail, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void SetUserGeneralSettingsAsync(
|
||||
string organizationId,
|
||||
string accountName,
|
||||
string displayName,
|
||||
string password,
|
||||
bool hideFromAddressBook,
|
||||
bool disabled,
|
||||
bool locked,
|
||||
string firstName,
|
||||
string initials,
|
||||
string lastName,
|
||||
string address,
|
||||
string city,
|
||||
string state,
|
||||
string zip,
|
||||
string country,
|
||||
string jobTitle,
|
||||
string company,
|
||||
string department,
|
||||
string office,
|
||||
string managerAccountName,
|
||||
string businessPhone,
|
||||
string fax,
|
||||
string homePhone,
|
||||
string mobilePhone,
|
||||
string pager,
|
||||
string webPage,
|
||||
string notes,
|
||||
string externalEmail,
|
||||
object userState) {
|
||||
if ((this.SetUserGeneralSettingsOperationCompleted == null)) {
|
||||
this.SetUserGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserGeneralSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("SetUserGeneralSettings", new object[] {
|
||||
organizationId,
|
||||
accountName,
|
||||
displayName,
|
||||
password,
|
||||
hideFromAddressBook,
|
||||
disabled,
|
||||
locked,
|
||||
firstName,
|
||||
initials,
|
||||
lastName,
|
||||
address,
|
||||
city,
|
||||
state,
|
||||
zip,
|
||||
country,
|
||||
jobTitle,
|
||||
company,
|
||||
department,
|
||||
office,
|
||||
managerAccountName,
|
||||
businessPhone,
|
||||
fax,
|
||||
homePhone,
|
||||
mobilePhone,
|
||||
pager,
|
||||
webPage,
|
||||
notes,
|
||||
externalEmail}, 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/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteOrganizationDomain", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteOrganizationDomain(string organizationDistinguishedName, string domain) {
|
||||
this.Invoke("DeleteOrganizationDomain", new object[] {
|
||||
organizationDistinguishedName,
|
||||
domain});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteOrganizationDomain(string organizationDistinguishedName, string domain, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("DeleteOrganizationDomain", new object[] {
|
||||
organizationDistinguishedName,
|
||||
domain}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteOrganizationDomain(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationDomainAsync(string organizationDistinguishedName, string domain) {
|
||||
this.DeleteOrganizationDomainAsync(organizationDistinguishedName, domain, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteOrganizationDomainAsync(string organizationDistinguishedName, string domain, object userState) {
|
||||
if ((this.DeleteOrganizationDomainOperationCompleted == null)) {
|
||||
this.DeleteOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteOrganizationDomain", new object[] {
|
||||
organizationDistinguishedName,
|
||||
domain}, this.DeleteOrganizationDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteOrganizationDomainOperationCompleted(object arg) {
|
||||
if ((this.DeleteOrganizationDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteOrganizationDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOrganizationDomain", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void CreateOrganizationDomain(string organizationDistinguishedName, string domain) {
|
||||
this.Invoke("CreateOrganizationDomain", new object[] {
|
||||
organizationDistinguishedName,
|
||||
domain});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCreateOrganizationDomain(string organizationDistinguishedName, string domain, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("CreateOrganizationDomain", new object[] {
|
||||
organizationDistinguishedName,
|
||||
domain}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndCreateOrganizationDomain(System.IAsyncResult asyncResult) {
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOrganizationDomainAsync(string organizationDistinguishedName, string domain) {
|
||||
this.CreateOrganizationDomainAsync(organizationDistinguishedName, domain, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CreateOrganizationDomainAsync(string organizationDistinguishedName, string domain, object userState) {
|
||||
if ((this.CreateOrganizationDomainOperationCompleted == null)) {
|
||||
this.CreateOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationDomainOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CreateOrganizationDomain", new object[] {
|
||||
organizationDistinguishedName,
|
||||
domain}, this.CreateOrganizationDomainOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCreateOrganizationDomainOperationCompleted(object arg) {
|
||||
if ((this.CreateOrganizationDomainCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CreateOrganizationDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetPasswordPolicy", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public PasswordPolicyResult GetPasswordPolicy() {
|
||||
object[] results = this.Invoke("GetPasswordPolicy", new object[0]);
|
||||
return ((PasswordPolicyResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetPasswordPolicy(System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("GetPasswordPolicy", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public PasswordPolicyResult EndGetPasswordPolicy(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((PasswordPolicyResult)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetPasswordPolicyAsync() {
|
||||
this.GetPasswordPolicyAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetPasswordPolicyAsync(object userState) {
|
||||
if ((this.GetPasswordPolicyOperationCompleted == null)) {
|
||||
this.GetPasswordPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPasswordPolicyOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetPasswordPolicy", new object[0], this.GetPasswordPolicyOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetPasswordPolicyOperationCompleted(object arg) {
|
||||
if ((this.GetPasswordPolicyCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetPasswordPolicyCompleted(this, new GetPasswordPolicyCompletedEventArgs(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 OrganizationExistsCompletedEventHandler(object sender, OrganizationExistsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class OrganizationExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal OrganizationExistsCompletedEventArgs(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 CreateOrganizationCompletedEventHandler(object sender, CreateOrganizationCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class CreateOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal CreateOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public Organization Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((Organization)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteOrganizationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CreateUserCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteUserCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GeUserGeneralSettingsCompletedEventHandler(object sender, GeUserGeneralSettingsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GeUserGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GeUserGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public OrganizationUser Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((OrganizationUser)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void SetUserGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CreateOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetPasswordPolicyCompletedEventHandler(object sender, GetPasswordPolicyCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetPasswordPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetPasswordPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public PasswordPolicyResult Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((PasswordPolicyResult)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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.Server.Client")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyProduct("WebsitePanel.Server.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("e444b82b-36ae-4c19-a640-88b520202f0f")]
|
|
@ -0,0 +1,675 @@
|
|||
// 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.Providers
|
||||
{
|
||||
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 = "ServiceProviderSoap", Namespace = "http://smbsaas/websitepanel/server/")]
|
||||
public partial class ServiceProvider : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback InstallOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetProviderDefaultSettingsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UninstallOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback IsInstalledOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback ChangeServiceItemsStateOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteServiceItemsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetServiceItemsDiskSpaceOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetServiceItemsBandwidthOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public ServiceProvider()
|
||||
{
|
||||
this.Url = "http://localhost/WebsitePanelServer/ServiceProvider.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event InstallCompletedEventHandler InstallCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetProviderDefaultSettingsCompletedEventHandler GetProviderDefaultSettingsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event UninstallCompletedEventHandler UninstallCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event IsInstalledCompletedEventHandler IsInstalledCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event ChangeServiceItemsStateCompletedEventHandler ChangeServiceItemsStateCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event DeleteServiceItemsCompletedEventHandler DeleteServiceItemsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetServiceItemsDiskSpaceCompletedEventHandler GetServiceItemsDiskSpaceCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetServiceItemsBandwidthCompletedEventHandler GetServiceItemsBandwidthCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/Install", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string[] Install()
|
||||
{
|
||||
object[] results = this.Invoke("Install", new object[0]);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginInstall(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("Install", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string[] EndInstall(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void InstallAsync()
|
||||
{
|
||||
this.InstallAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void InstallAsync(object userState)
|
||||
{
|
||||
if ((this.InstallOperationCompleted == null))
|
||||
{
|
||||
this.InstallOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInstallOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("Install", new object[0], 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetProviderDefaultSettings", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SettingPair[] GetProviderDefaultSettings()
|
||||
{
|
||||
object[] results = this.Invoke("GetProviderDefaultSettings", new object[0]);
|
||||
return ((SettingPair[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetProviderDefaultSettings(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetProviderDefaultSettings", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SettingPair[] EndGetProviderDefaultSettings(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SettingPair[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetProviderDefaultSettingsAsync()
|
||||
{
|
||||
this.GetProviderDefaultSettingsAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetProviderDefaultSettingsAsync(object userState)
|
||||
{
|
||||
if ((this.GetProviderDefaultSettingsOperationCompleted == null))
|
||||
{
|
||||
this.GetProviderDefaultSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProviderDefaultSettingsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetProviderDefaultSettings", new object[0], this.GetProviderDefaultSettingsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetProviderDefaultSettingsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetProviderDefaultSettingsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetProviderDefaultSettingsCompleted(this, new GetProviderDefaultSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/Uninstall", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void Uninstall()
|
||||
{
|
||||
this.Invoke("Uninstall", new object[0]);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUninstall(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("Uninstall", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUninstall(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UninstallAsync()
|
||||
{
|
||||
this.UninstallAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UninstallAsync(object userState)
|
||||
{
|
||||
if ((this.UninstallOperationCompleted == null))
|
||||
{
|
||||
this.UninstallOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUninstallOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("Uninstall", new object[0], this.UninstallOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUninstallOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.UninstallCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UninstallCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/IsInstalled", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public bool IsInstalled()
|
||||
{
|
||||
object[] results = this.Invoke("IsInstalled", new object[0]);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginIsInstalled(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("IsInstalled", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public bool EndIsInstalled(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((bool)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void IsInstalledAsync()
|
||||
{
|
||||
this.IsInstalledAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void IsInstalledAsync(object userState)
|
||||
{
|
||||
if ((this.IsInstalledOperationCompleted == null))
|
||||
{
|
||||
this.IsInstalledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsInstalledOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("IsInstalled", new object[0], this.IsInstalledOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnIsInstalledOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.IsInstalledCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.IsInstalledCompleted(this, new IsInstalledCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeServiceItemsState", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void ChangeServiceItemsState(SoapServiceProviderItem[] items, bool enabled)
|
||||
{
|
||||
this.Invoke("ChangeServiceItemsState", new object[] {
|
||||
items,
|
||||
enabled});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginChangeServiceItemsState(SoapServiceProviderItem[] items, bool enabled, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("ChangeServiceItemsState", new object[] {
|
||||
items,
|
||||
enabled}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndChangeServiceItemsState(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeServiceItemsStateAsync(SoapServiceProviderItem[] items, bool enabled)
|
||||
{
|
||||
this.ChangeServiceItemsStateAsync(items, enabled, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeServiceItemsStateAsync(SoapServiceProviderItem[] items, bool enabled, object userState)
|
||||
{
|
||||
if ((this.ChangeServiceItemsStateOperationCompleted == null))
|
||||
{
|
||||
this.ChangeServiceItemsStateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeServiceItemsStateOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ChangeServiceItemsState", new object[] {
|
||||
items,
|
||||
enabled}, this.ChangeServiceItemsStateOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnChangeServiceItemsStateOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.ChangeServiceItemsStateCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ChangeServiceItemsStateCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteServiceItems", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteServiceItems(SoapServiceProviderItem[] items)
|
||||
{
|
||||
this.Invoke("DeleteServiceItems", new object[] {
|
||||
items});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteServiceItems(SoapServiceProviderItem[] items, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("DeleteServiceItems", new object[] {
|
||||
items}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteServiceItems(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteServiceItemsAsync(SoapServiceProviderItem[] items)
|
||||
{
|
||||
this.DeleteServiceItemsAsync(items, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteServiceItemsAsync(SoapServiceProviderItem[] items, object userState)
|
||||
{
|
||||
if ((this.DeleteServiceItemsOperationCompleted == null))
|
||||
{
|
||||
this.DeleteServiceItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteServiceItemsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteServiceItems", new object[] {
|
||||
items}, this.DeleteServiceItemsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnDeleteServiceItemsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.DeleteServiceItemsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.DeleteServiceItemsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetServiceItemsDiskSpace", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ServiceProviderItemDiskSpace[] GetServiceItemsDiskSpace(SoapServiceProviderItem[] items)
|
||||
{
|
||||
object[] results = this.Invoke("GetServiceItemsDiskSpace", new object[] {
|
||||
items});
|
||||
return ((ServiceProviderItemDiskSpace[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetServiceItemsDiskSpace(SoapServiceProviderItem[] items, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetServiceItemsDiskSpace", new object[] {
|
||||
items}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServiceProviderItemDiskSpace[] EndGetServiceItemsDiskSpace(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ServiceProviderItemDiskSpace[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServiceItemsDiskSpaceAsync(SoapServiceProviderItem[] items)
|
||||
{
|
||||
this.GetServiceItemsDiskSpaceAsync(items, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServiceItemsDiskSpaceAsync(SoapServiceProviderItem[] items, object userState)
|
||||
{
|
||||
if ((this.GetServiceItemsDiskSpaceOperationCompleted == null))
|
||||
{
|
||||
this.GetServiceItemsDiskSpaceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServiceItemsDiskSpaceOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetServiceItemsDiskSpace", new object[] {
|
||||
items}, this.GetServiceItemsDiskSpaceOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetServiceItemsDiskSpaceOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetServiceItemsDiskSpaceCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetServiceItemsDiskSpaceCompleted(this, new GetServiceItemsDiskSpaceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetServiceItemsBandwidth", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ServiceProviderItemBandwidth[] GetServiceItemsBandwidth(SoapServiceProviderItem[] items, System.DateTime since)
|
||||
{
|
||||
object[] results = this.Invoke("GetServiceItemsBandwidth", new object[] {
|
||||
items,
|
||||
since});
|
||||
return ((ServiceProviderItemBandwidth[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetServiceItemsBandwidth(SoapServiceProviderItem[] items, System.DateTime since, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetServiceItemsBandwidth", new object[] {
|
||||
items,
|
||||
since}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServiceProviderItemBandwidth[] EndGetServiceItemsBandwidth(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((ServiceProviderItemBandwidth[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServiceItemsBandwidthAsync(SoapServiceProviderItem[] items, System.DateTime since)
|
||||
{
|
||||
this.GetServiceItemsBandwidthAsync(items, since, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServiceItemsBandwidthAsync(SoapServiceProviderItem[] items, System.DateTime since, object userState)
|
||||
{
|
||||
if ((this.GetServiceItemsBandwidthOperationCompleted == null))
|
||||
{
|
||||
this.GetServiceItemsBandwidthOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServiceItemsBandwidthOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetServiceItemsBandwidth", new object[] {
|
||||
items,
|
||||
since}, this.GetServiceItemsBandwidthOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetServiceItemsBandwidthOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetServiceItemsBandwidthCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetServiceItemsBandwidthCompleted(this, new GetServiceItemsBandwidthCompletedEventArgs(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 InstallCompletedEventHandler(object sender, InstallCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[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 string[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetProviderDefaultSettingsCompletedEventHandler(object sender, GetProviderDefaultSettingsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetProviderDefaultSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetProviderDefaultSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SettingPair[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SettingPair[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UninstallCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void IsInstalledCompletedEventHandler(object sender, IsInstalledCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class IsInstalledCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal IsInstalledCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
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 ChangeServiceItemsStateCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteServiceItemsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetServiceItemsDiskSpaceCompletedEventHandler(object sender, GetServiceItemsDiskSpaceCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetServiceItemsDiskSpaceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetServiceItemsDiskSpaceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServiceProviderItemDiskSpace[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ServiceProviderItemDiskSpace[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetServiceItemsBandwidthCompletedEventHandler(object sender, GetServiceItemsBandwidthCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetServiceItemsBandwidthCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetServiceItemsBandwidthCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ServiceProviderItemBandwidth[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ServiceProviderItemBandwidth[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,613 @@
|
|||
// 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.Providers.Statistics
|
||||
{
|
||||
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 = "StatisticsServerSoap", Namespace = "http://smbsaas/websitepanel/server/")]
|
||||
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))]
|
||||
public partial class StatisticsServer : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetServersOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteIdOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSitesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback AddSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback UpdateSiteOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback DeleteSiteOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public StatisticsServer()
|
||||
{
|
||||
this.Url = "http://localhost/WebsitePanelServer11/StatisticsServer.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetServersCompletedEventHandler GetServersCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSiteIdCompletedEventHandler GetSiteIdCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetSitesCompletedEventHandler GetSitesCompleted;
|
||||
|
||||
/// <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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetServers", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public StatsServer[] GetServers()
|
||||
{
|
||||
object[] results = this.Invoke("GetServers", new object[0]);
|
||||
return ((StatsServer[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetServers(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetServers", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsServer[] EndGetServers(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((StatsServer[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServersAsync()
|
||||
{
|
||||
this.GetServersAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetServersAsync(object userState)
|
||||
{
|
||||
if ((this.GetServersOperationCompleted == null))
|
||||
{
|
||||
this.GetServersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetServersOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetServers", new object[0], this.GetServersOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetServersOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetServersCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetServersCompleted(this, new GetServersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSiteId", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string GetSiteId(string siteName)
|
||||
{
|
||||
object[] results = this.Invoke("GetSiteId", new object[] {
|
||||
siteName});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSiteId(string siteName, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetSiteId", new object[] {
|
||||
siteName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndGetSiteId(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteIdAsync(string siteName)
|
||||
{
|
||||
this.GetSiteIdAsync(siteName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteIdAsync(string siteName, object userState)
|
||||
{
|
||||
if ((this.GetSiteIdOperationCompleted == null))
|
||||
{
|
||||
this.GetSiteIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteIdOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSiteId", new object[] {
|
||||
siteName}, this.GetSiteIdOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSiteIdOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetSiteIdCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSiteIdCompleted(this, new GetSiteIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSites", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string[] GetSites()
|
||||
{
|
||||
object[] results = this.Invoke("GetSites", new object[0]);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSites(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetSites", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string[] EndGetSites(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSitesAsync()
|
||||
{
|
||||
this.GetSitesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSitesAsync(object userState)
|
||||
{
|
||||
if ((this.GetSitesOperationCompleted == null))
|
||||
{
|
||||
this.GetSitesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSitesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSites", new object[0], this.GetSitesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetSitesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetSitesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetSitesCompleted(this, new GetSitesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetSite", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public StatsSite GetSite(string siteId)
|
||||
{
|
||||
object[] results = this.Invoke("GetSite", new object[] {
|
||||
siteId});
|
||||
return ((StatsSite)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetSite(string siteId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetSite", new object[] {
|
||||
siteId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsSite EndGetSite(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((StatsSite)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteAsync(string siteId)
|
||||
{
|
||||
this.GetSiteAsync(siteId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetSiteAsync(string siteId, object userState)
|
||||
{
|
||||
if ((this.GetSiteOperationCompleted == null))
|
||||
{
|
||||
this.GetSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetSite", new object[] {
|
||||
siteId}, 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddSite", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string AddSite(StatsSite site)
|
||||
{
|
||||
object[] results = this.Invoke("AddSite", new object[] {
|
||||
site});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginAddSite(StatsSite site, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("AddSite", new object[] {
|
||||
site}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndAddSite(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddSiteAsync(StatsSite site)
|
||||
{
|
||||
this.AddSiteAsync(site, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void AddSiteAsync(StatsSite site, object userState)
|
||||
{
|
||||
if ((this.AddSiteOperationCompleted == null))
|
||||
{
|
||||
this.AddSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("AddSite", new object[] {
|
||||
site}, 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.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateSite", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void UpdateSite(StatsSite site)
|
||||
{
|
||||
this.Invoke("UpdateSite", new object[] {
|
||||
site});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginUpdateSite(StatsSite site, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("UpdateSite", new object[] {
|
||||
site}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndUpdateSite(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSiteAsync(StatsSite site)
|
||||
{
|
||||
this.UpdateSiteAsync(site, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UpdateSiteAsync(StatsSite site, object userState)
|
||||
{
|
||||
if ((this.UpdateSiteOperationCompleted == null))
|
||||
{
|
||||
this.UpdateSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UpdateSite", new object[] {
|
||||
site}, 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 System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteSite", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void DeleteSite(string siteId)
|
||||
{
|
||||
this.Invoke("DeleteSite", new object[] {
|
||||
siteId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginDeleteSite(string siteId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("DeleteSite", new object[] {
|
||||
siteId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndDeleteSite(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteAsync(string siteId)
|
||||
{
|
||||
this.DeleteSiteAsync(siteId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void DeleteSiteAsync(string siteId, object userState)
|
||||
{
|
||||
if ((this.DeleteSiteOperationCompleted == null))
|
||||
{
|
||||
this.DeleteSiteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteSiteOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("DeleteSite", new object[] {
|
||||
siteId}, 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 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 GetServersCompletedEventHandler(object sender, GetServersCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetServersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetServersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public StatsServer[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((StatsServer[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetSiteIdCompletedEventHandler(object sender, GetSiteIdCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSiteIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSiteIdCompletedEventArgs(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 GetSitesCompletedEventHandler(object sender, GetSitesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetSitesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetSitesCompletedEventArgs(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 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 string Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((string)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void UpdateSiteCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void DeleteSiteCompletedEventHandler(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
5549
WebsitePanel/Sources/WebsitePanel.Server.Client/WebServerProxy.cs
Normal file
5549
WebsitePanel/Sources/WebsitePanel.Server.Client/WebServerProxy.cs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,135 @@
|
|||
<?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>{990C4A2A-34A5-4BE0-9546-E10ABDFFFD0E}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>WebsitePanel.Server.Client</RootNamespace>
|
||||
<AssemblyName>WebsitePanel.Server.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.DirectoryServices" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\VersionInfo.cs">
|
||||
<Link>VersionInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="AutoDiscoveryProxy.cs" />
|
||||
<Compile Include="BlackBerryProxy.cs" />
|
||||
<Compile Include="Common\ServerProxyConfigurator.cs" />
|
||||
<Compile Include="Common\ServerUsernameAssertion.cs" />
|
||||
<Compile Include="CRMProxy.cs" />
|
||||
<Compile Include="DatabaseServerProxy.cs" />
|
||||
<Compile Include="DnsServerProxy.cs" />
|
||||
<Compile Include="ExchangeServerHostedEditionProxy.cs" />
|
||||
<Compile Include="ExchangeServerProxy.cs" />
|
||||
<Compile Include="FtpServerProxy.cs" />
|
||||
<Compile Include="HostedSharePointServerProxy.cs" />
|
||||
<Compile Include="OCSEdgeServerProxy.cs" />
|
||||
<Compile Include="OCSServerProxy.cs" />
|
||||
<Compile Include="OrganizationProxy.cs" />
|
||||
<Compile Include="MailServerProxy.cs" />
|
||||
<Compile Include="OperatingSystemProxy.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ServiceProviderProxy.cs" />
|
||||
<Compile Include="SharePointServerProxy.cs" />
|
||||
<Compile Include="StatisticsServerProxy.cs" />
|
||||
<Compile Include="VirtualizationServerForPrivateCloudProxy.cs" />
|
||||
<Compile Include="VirtualizationServerProxy.cs">
|
||||
<SubType>code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebServerProxy.cs" />
|
||||
<Compile Include="WindowsServerProxy.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\WebsitePanel.Providers.Base\WebsitePanel.Providers.Base.csproj">
|
||||
<Project>{684C932A-6C75-46AC-A327-F3689D89EB42}</Project>
|
||||
<Name>WebsitePanel.Providers.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>
|
BIN
WebsitePanel/Sources/WebsitePanel.Server.Client/WebsitePanel.snk
Normal file
BIN
WebsitePanel/Sources/WebsitePanel.Server.Client/WebsitePanel.snk
Normal file
Binary file not shown.
|
@ -0,0 +1,945 @@
|
|||
// 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.Server
|
||||
{
|
||||
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 = "WindowsServerSoap", Namespace = "http://smbsaas/websitepanel/server/")]
|
||||
public partial class WindowsServer : Microsoft.Web.Services3.WebServicesClientProtocol
|
||||
{
|
||||
|
||||
private System.Threading.SendOrPostCallback GetTerminalServicesSessionsOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback CloseTerminalServicesSessionOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetWindowsProcessesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback TerminateWindowsProcessOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetWindowsServicesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback ChangeWindowsServiceStatusOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetLogNamesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetLogEntriesOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback GetLogEntriesPagedOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback ClearLogOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback RebootSystemOperationCompleted;
|
||||
|
||||
private System.Threading.SendOrPostCallback ExecuteSystemCommandOperationCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public WindowsServer()
|
||||
{
|
||||
this.Url = "http://localhost/WebsitePanelServer/WindowsServer.asmx";
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event GetTerminalServicesSessionsCompletedEventHandler GetTerminalServicesSessionsCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event CloseTerminalServicesSessionCompletedEventHandler CloseTerminalServicesSessionCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetWindowsProcessesCompletedEventHandler GetWindowsProcessesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event TerminateWindowsProcessCompletedEventHandler TerminateWindowsProcessCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetWindowsServicesCompletedEventHandler GetWindowsServicesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event ChangeWindowsServiceStatusCompletedEventHandler ChangeWindowsServiceStatusCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetLogNamesCompletedEventHandler GetLogNamesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetLogEntriesCompletedEventHandler GetLogEntriesCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event GetLogEntriesPagedCompletedEventHandler GetLogEntriesPagedCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event ClearLogCompletedEventHandler ClearLogCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event RebootSystemCompletedEventHandler RebootSystemCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
public event ExecuteSystemCommandCompletedEventHandler ExecuteSystemCommandCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetTerminalServicesSessions", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public TerminalSession[] GetTerminalServicesSessions()
|
||||
{
|
||||
object[] results = this.Invoke("GetTerminalServicesSessions", new object[0]);
|
||||
return ((TerminalSession[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetTerminalServicesSessions(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetTerminalServicesSessions", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public TerminalSession[] EndGetTerminalServicesSessions(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((TerminalSession[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTerminalServicesSessionsAsync()
|
||||
{
|
||||
this.GetTerminalServicesSessionsAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetTerminalServicesSessionsAsync(object userState)
|
||||
{
|
||||
if ((this.GetTerminalServicesSessionsOperationCompleted == null))
|
||||
{
|
||||
this.GetTerminalServicesSessionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTerminalServicesSessionsOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetTerminalServicesSessions", new object[0], this.GetTerminalServicesSessionsOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetTerminalServicesSessionsOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetTerminalServicesSessionsCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetTerminalServicesSessionsCompleted(this, new GetTerminalServicesSessionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CloseTerminalServicesSession", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void CloseTerminalServicesSession(int sessionId)
|
||||
{
|
||||
this.Invoke("CloseTerminalServicesSession", new object[] {
|
||||
sessionId});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginCloseTerminalServicesSession(int sessionId, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("CloseTerminalServicesSession", new object[] {
|
||||
sessionId}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndCloseTerminalServicesSession(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CloseTerminalServicesSessionAsync(int sessionId)
|
||||
{
|
||||
this.CloseTerminalServicesSessionAsync(sessionId, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void CloseTerminalServicesSessionAsync(int sessionId, object userState)
|
||||
{
|
||||
if ((this.CloseTerminalServicesSessionOperationCompleted == null))
|
||||
{
|
||||
this.CloseTerminalServicesSessionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCloseTerminalServicesSessionOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("CloseTerminalServicesSession", new object[] {
|
||||
sessionId}, this.CloseTerminalServicesSessionOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnCloseTerminalServicesSessionOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.CloseTerminalServicesSessionCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.CloseTerminalServicesSessionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetWindowsProcesses", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public WindowsProcess[] GetWindowsProcesses()
|
||||
{
|
||||
object[] results = this.Invoke("GetWindowsProcesses", new object[0]);
|
||||
return ((WindowsProcess[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetWindowsProcesses(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetWindowsProcesses", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public WindowsProcess[] EndGetWindowsProcesses(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((WindowsProcess[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetWindowsProcessesAsync()
|
||||
{
|
||||
this.GetWindowsProcessesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetWindowsProcessesAsync(object userState)
|
||||
{
|
||||
if ((this.GetWindowsProcessesOperationCompleted == null))
|
||||
{
|
||||
this.GetWindowsProcessesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWindowsProcessesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetWindowsProcesses", new object[0], this.GetWindowsProcessesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetWindowsProcessesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetWindowsProcessesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetWindowsProcessesCompleted(this, new GetWindowsProcessesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/TerminateWindowsProcess", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void TerminateWindowsProcess(int pid)
|
||||
{
|
||||
this.Invoke("TerminateWindowsProcess", new object[] {
|
||||
pid});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginTerminateWindowsProcess(int pid, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("TerminateWindowsProcess", new object[] {
|
||||
pid}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndTerminateWindowsProcess(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void TerminateWindowsProcessAsync(int pid)
|
||||
{
|
||||
this.TerminateWindowsProcessAsync(pid, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void TerminateWindowsProcessAsync(int pid, object userState)
|
||||
{
|
||||
if ((this.TerminateWindowsProcessOperationCompleted == null))
|
||||
{
|
||||
this.TerminateWindowsProcessOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTerminateWindowsProcessOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("TerminateWindowsProcess", new object[] {
|
||||
pid}, this.TerminateWindowsProcessOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnTerminateWindowsProcessOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.TerminateWindowsProcessCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.TerminateWindowsProcessCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetWindowsServices", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public WindowsService[] GetWindowsServices()
|
||||
{
|
||||
object[] results = this.Invoke("GetWindowsServices", new object[0]);
|
||||
return ((WindowsService[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetWindowsServices(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetWindowsServices", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public WindowsService[] EndGetWindowsServices(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((WindowsService[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetWindowsServicesAsync()
|
||||
{
|
||||
this.GetWindowsServicesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetWindowsServicesAsync(object userState)
|
||||
{
|
||||
if ((this.GetWindowsServicesOperationCompleted == null))
|
||||
{
|
||||
this.GetWindowsServicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWindowsServicesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetWindowsServices", new object[0], this.GetWindowsServicesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetWindowsServicesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetWindowsServicesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetWindowsServicesCompleted(this, new GetWindowsServicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeWindowsServiceStatus", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void ChangeWindowsServiceStatus(string id, WindowsServiceStatus status)
|
||||
{
|
||||
this.Invoke("ChangeWindowsServiceStatus", new object[] {
|
||||
id,
|
||||
status});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginChangeWindowsServiceStatus(string id, WindowsServiceStatus status, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("ChangeWindowsServiceStatus", new object[] {
|
||||
id,
|
||||
status}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndChangeWindowsServiceStatus(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeWindowsServiceStatusAsync(string id, WindowsServiceStatus status)
|
||||
{
|
||||
this.ChangeWindowsServiceStatusAsync(id, status, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ChangeWindowsServiceStatusAsync(string id, WindowsServiceStatus status, object userState)
|
||||
{
|
||||
if ((this.ChangeWindowsServiceStatusOperationCompleted == null))
|
||||
{
|
||||
this.ChangeWindowsServiceStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeWindowsServiceStatusOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ChangeWindowsServiceStatus", new object[] {
|
||||
id,
|
||||
status}, this.ChangeWindowsServiceStatusOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnChangeWindowsServiceStatusOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.ChangeWindowsServiceStatusCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ChangeWindowsServiceStatusCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetLogNames", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string[] GetLogNames()
|
||||
{
|
||||
object[] results = this.Invoke("GetLogNames", new object[0]);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetLogNames(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetLogNames", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string[] EndGetLogNames(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetLogNamesAsync()
|
||||
{
|
||||
this.GetLogNamesAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetLogNamesAsync(object userState)
|
||||
{
|
||||
if ((this.GetLogNamesOperationCompleted == null))
|
||||
{
|
||||
this.GetLogNamesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogNamesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetLogNames", new object[0], this.GetLogNamesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetLogNamesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetLogNamesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetLogNamesCompleted(this, new GetLogNamesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetLogEntries", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SystemLogEntry[] GetLogEntries(string logName)
|
||||
{
|
||||
object[] results = this.Invoke("GetLogEntries", new object[] {
|
||||
logName});
|
||||
return ((SystemLogEntry[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetLogEntries(string logName, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetLogEntries", new object[] {
|
||||
logName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemLogEntry[] EndGetLogEntries(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SystemLogEntry[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetLogEntriesAsync(string logName)
|
||||
{
|
||||
this.GetLogEntriesAsync(logName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetLogEntriesAsync(string logName, object userState)
|
||||
{
|
||||
if ((this.GetLogEntriesOperationCompleted == null))
|
||||
{
|
||||
this.GetLogEntriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogEntriesOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetLogEntries", new object[] {
|
||||
logName}, this.GetLogEntriesOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetLogEntriesOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetLogEntriesCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetLogEntriesCompleted(this, new GetLogEntriesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetLogEntriesPaged", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public SystemLogEntriesPaged GetLogEntriesPaged(string logName, int startRow, int maximumRows)
|
||||
{
|
||||
object[] results = this.Invoke("GetLogEntriesPaged", new object[] {
|
||||
logName,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((SystemLogEntriesPaged)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginGetLogEntriesPaged(string logName, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("GetLogEntriesPaged", new object[] {
|
||||
logName,
|
||||
startRow,
|
||||
maximumRows}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemLogEntriesPaged EndGetLogEntriesPaged(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SystemLogEntriesPaged)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetLogEntriesPagedAsync(string logName, int startRow, int maximumRows)
|
||||
{
|
||||
this.GetLogEntriesPagedAsync(logName, startRow, maximumRows, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void GetLogEntriesPagedAsync(string logName, int startRow, int maximumRows, object userState)
|
||||
{
|
||||
if ((this.GetLogEntriesPagedOperationCompleted == null))
|
||||
{
|
||||
this.GetLogEntriesPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogEntriesPagedOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("GetLogEntriesPaged", new object[] {
|
||||
logName,
|
||||
startRow,
|
||||
maximumRows}, this.GetLogEntriesPagedOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnGetLogEntriesPagedOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.GetLogEntriesPagedCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.GetLogEntriesPagedCompleted(this, new GetLogEntriesPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ClearLog", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void ClearLog(string logName)
|
||||
{
|
||||
this.Invoke("ClearLog", new object[] {
|
||||
logName});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginClearLog(string logName, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("ClearLog", new object[] {
|
||||
logName}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndClearLog(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ClearLogAsync(string logName)
|
||||
{
|
||||
this.ClearLogAsync(logName, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ClearLogAsync(string logName, object userState)
|
||||
{
|
||||
if ((this.ClearLogOperationCompleted == null))
|
||||
{
|
||||
this.ClearLogOperationCompleted = new System.Threading.SendOrPostCallback(this.OnClearLogOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ClearLog", new object[] {
|
||||
logName}, this.ClearLogOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnClearLogOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.ClearLogCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ClearLogCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RebootSystem", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public void RebootSystem()
|
||||
{
|
||||
this.Invoke("RebootSystem", new object[0]);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginRebootSystem(System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("RebootSystem", new object[0], callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void EndRebootSystem(System.IAsyncResult asyncResult)
|
||||
{
|
||||
this.EndInvoke(asyncResult);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RebootSystemAsync()
|
||||
{
|
||||
this.RebootSystemAsync(null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void RebootSystemAsync(object userState)
|
||||
{
|
||||
if ((this.RebootSystemOperationCompleted == null))
|
||||
{
|
||||
this.RebootSystemOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRebootSystemOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("RebootSystem", new object[0], this.RebootSystemOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnRebootSystemOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.RebootSystemCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.RebootSystemCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExecuteSystemCommand", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public string ExecuteSystemCommand(string path, string args)
|
||||
{
|
||||
object[] results = this.Invoke("ExecuteSystemCommand", new object[] {
|
||||
path,
|
||||
args});
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginExecuteSystemCommand(string path, string args, System.AsyncCallback callback, object asyncState)
|
||||
{
|
||||
return this.BeginInvoke("ExecuteSystemCommand", new object[] {
|
||||
path,
|
||||
args}, callback, asyncState);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string EndExecuteSystemCommand(System.IAsyncResult asyncResult)
|
||||
{
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((string)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ExecuteSystemCommandAsync(string path, string args)
|
||||
{
|
||||
this.ExecuteSystemCommandAsync(path, args, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void ExecuteSystemCommandAsync(string path, string args, object userState)
|
||||
{
|
||||
if ((this.ExecuteSystemCommandOperationCompleted == null))
|
||||
{
|
||||
this.ExecuteSystemCommandOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExecuteSystemCommandOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("ExecuteSystemCommand", new object[] {
|
||||
path,
|
||||
args}, this.ExecuteSystemCommandOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnExecuteSystemCommandOperationCompleted(object arg)
|
||||
{
|
||||
if ((this.ExecuteSystemCommandCompleted != null))
|
||||
{
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.ExecuteSystemCommandCompleted(this, new ExecuteSystemCommandCompletedEventArgs(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 GetTerminalServicesSessionsCompletedEventHandler(object sender, GetTerminalServicesSessionsCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetTerminalServicesSessionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetTerminalServicesSessionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public TerminalSession[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((TerminalSession[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void CloseTerminalServicesSessionCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetWindowsProcessesCompletedEventHandler(object sender, GetWindowsProcessesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetWindowsProcessesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetWindowsProcessesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public WindowsProcess[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((WindowsProcess[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void TerminateWindowsProcessCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetWindowsServicesCompletedEventHandler(object sender, GetWindowsServicesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetWindowsServicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetWindowsServicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public WindowsService[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((WindowsService[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void ChangeWindowsServiceStatusCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetLogNamesCompletedEventHandler(object sender, GetLogNamesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetLogNamesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetLogNamesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <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 GetLogEntriesCompletedEventHandler(object sender, GetLogEntriesCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetLogEntriesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetLogEntriesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemLogEntry[] Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SystemLogEntry[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void GetLogEntriesPagedCompletedEventHandler(object sender, GetLogEntriesPagedCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class GetLogEntriesPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal GetLogEntriesPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
|
||||
:
|
||||
base(exception, cancelled, userState)
|
||||
{
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SystemLogEntriesPaged Result
|
||||
{
|
||||
get
|
||||
{
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SystemLogEntriesPaged)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void ClearLogCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void RebootSystemCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
public delegate void ExecuteSystemCommandCompletedEventHandler(object sender, ExecuteSystemCommandCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class ExecuteSystemCommandCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal ExecuteSystemCommandCompletedEventArgs(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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue