diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/VirtualizationServerProxy2012.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/VirtualizationServerProxy2012.cs index e7b4e279..60bdae20 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/VirtualizationServerProxy2012.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/VirtualizationServerProxy2012.cs @@ -127,6 +127,30 @@ namespace WebsitePanel.Providers.Virtualization2012 { private System.Threading.SendOrPostCallback GetProcessorCoresNumberOperationCompleted; + private System.Threading.SendOrPostCallback GetCertificatesOperationCompleted; + + private System.Threading.SendOrPostCallback SetReplicaServerOperationCompleted; + + private System.Threading.SendOrPostCallback UnsetReplicaServerOperationCompleted; + + private System.Threading.SendOrPostCallback EnableVmReplicationOperationCompleted; + + private System.Threading.SendOrPostCallback SetVmReplicationOperationCompleted; + + private System.Threading.SendOrPostCallback TestReplicationServerOperationCompleted; + + private System.Threading.SendOrPostCallback StartInitialReplicationOperationCompleted; + + private System.Threading.SendOrPostCallback GetReplicationOperationCompleted; + + private System.Threading.SendOrPostCallback DisableVmReplicationOperationCompleted; + + private System.Threading.SendOrPostCallback GetReplicationInfoOperationCompleted; + + private System.Threading.SendOrPostCallback PauseReplicationOperationCompleted; + + private System.Threading.SendOrPostCallback ResumeReplicationOperationCompleted; + /// public VirtualizationServer2012() { this.Url = "http://172.31.0.5:9090/VirtualizationServer2012.asmx"; @@ -273,6 +297,42 @@ namespace WebsitePanel.Providers.Virtualization2012 { /// public event GetProcessorCoresNumberCompletedEventHandler GetProcessorCoresNumberCompleted; + /// + public event GetCertificatesCompletedEventHandler GetCertificatesCompleted; + + /// + public event SetReplicaServerCompletedEventHandler SetReplicaServerCompleted; + + /// + public event UnsetReplicaServerCompletedEventHandler UnsetReplicaServerCompleted; + + /// + public event EnableVmReplicationCompletedEventHandler EnableVmReplicationCompleted; + + /// + public event SetVmReplicationCompletedEventHandler SetVmReplicationCompleted; + + /// + public event TestReplicationServerCompletedEventHandler TestReplicationServerCompleted; + + /// + public event StartInitialReplicationCompletedEventHandler StartInitialReplicationCompleted; + + /// + public event GetReplicationCompletedEventHandler GetReplicationCompleted; + + /// + public event DisableVmReplicationCompletedEventHandler DisableVmReplicationCompleted; + + /// + public event GetReplicationInfoCompletedEventHandler GetReplicationInfoCompleted; + + /// + public event PauseReplicationCompletedEventHandler PauseReplicationCompleted; + + /// + public event ResumeReplicationCompletedEventHandler ResumeReplicationCompleted; + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetVirtualMachine", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] @@ -2291,6 +2351,521 @@ namespace WebsitePanel.Providers.Virtualization2012 { } } + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetCertificates", 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 CertificateInfo[] GetCertificates(string remoteServer) { + object[] results = this.Invoke("GetCertificates", new object[] { + remoteServer}); + return ((CertificateInfo[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetCertificates(string remoteServer, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetCertificates", new object[] { + remoteServer}, callback, asyncState); + } + + /// + public CertificateInfo[] EndGetCertificates(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((CertificateInfo[])(results[0])); + } + + /// + public void GetCertificatesAsync(string remoteServer) { + this.GetCertificatesAsync(remoteServer, null); + } + + /// + public void GetCertificatesAsync(string remoteServer, object userState) { + if ((this.GetCertificatesOperationCompleted == null)) { + this.GetCertificatesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCertificatesOperationCompleted); + } + this.InvokeAsync("GetCertificates", new object[] { + remoteServer}, this.GetCertificatesOperationCompleted, userState); + } + + private void OnGetCertificatesOperationCompleted(object arg) { + if ((this.GetCertificatesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetCertificatesCompleted(this, new GetCertificatesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetReplicaServer", 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 SetReplicaServer(string remoteServer, string thumbprint, string storagePath) { + this.Invoke("SetReplicaServer", new object[] { + remoteServer, + thumbprint, + storagePath}); + } + + /// + public System.IAsyncResult BeginSetReplicaServer(string remoteServer, string thumbprint, string storagePath, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("SetReplicaServer", new object[] { + remoteServer, + thumbprint, + storagePath}, callback, asyncState); + } + + /// + public void EndSetReplicaServer(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void SetReplicaServerAsync(string remoteServer, string thumbprint, string storagePath) { + this.SetReplicaServerAsync(remoteServer, thumbprint, storagePath, null); + } + + /// + public void SetReplicaServerAsync(string remoteServer, string thumbprint, string storagePath, object userState) { + if ((this.SetReplicaServerOperationCompleted == null)) { + this.SetReplicaServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetReplicaServerOperationCompleted); + } + this.InvokeAsync("SetReplicaServer", new object[] { + remoteServer, + thumbprint, + storagePath}, this.SetReplicaServerOperationCompleted, userState); + } + + private void OnSetReplicaServerOperationCompleted(object arg) { + if ((this.SetReplicaServerCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.SetReplicaServerCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UnsetReplicaServer", 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 UnsetReplicaServer(string remoteServer) { + this.Invoke("UnsetReplicaServer", new object[] { + remoteServer}); + } + + /// + public System.IAsyncResult BeginUnsetReplicaServer(string remoteServer, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("UnsetReplicaServer", new object[] { + remoteServer}, callback, asyncState); + } + + /// + public void EndUnsetReplicaServer(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void UnsetReplicaServerAsync(string remoteServer) { + this.UnsetReplicaServerAsync(remoteServer, null); + } + + /// + public void UnsetReplicaServerAsync(string remoteServer, object userState) { + if ((this.UnsetReplicaServerOperationCompleted == null)) { + this.UnsetReplicaServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUnsetReplicaServerOperationCompleted); + } + this.InvokeAsync("UnsetReplicaServer", new object[] { + remoteServer}, this.UnsetReplicaServerOperationCompleted, userState); + } + + private void OnUnsetReplicaServerOperationCompleted(object arg) { + if ((this.UnsetReplicaServerCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.UnsetReplicaServerCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/EnableVmReplication", 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 EnableVmReplication(string vmId, string replicaServer, VmReplication replication) { + this.Invoke("EnableVmReplication", new object[] { + vmId, + replicaServer, + replication}); + } + + /// + public System.IAsyncResult BeginEnableVmReplication(string vmId, string replicaServer, VmReplication replication, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("EnableVmReplication", new object[] { + vmId, + replicaServer, + replication}, callback, asyncState); + } + + /// + public void EndEnableVmReplication(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void EnableVmReplicationAsync(string vmId, string replicaServer, VmReplication replication) { + this.EnableVmReplicationAsync(vmId, replicaServer, replication, null); + } + + /// + public void EnableVmReplicationAsync(string vmId, string replicaServer, VmReplication replication, object userState) { + if ((this.EnableVmReplicationOperationCompleted == null)) { + this.EnableVmReplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnableVmReplicationOperationCompleted); + } + this.InvokeAsync("EnableVmReplication", new object[] { + vmId, + replicaServer, + replication}, this.EnableVmReplicationOperationCompleted, userState); + } + + private void OnEnableVmReplicationOperationCompleted(object arg) { + if ((this.EnableVmReplicationCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.EnableVmReplicationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetVmReplication", 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 SetVmReplication(string vmId, string replicaServer, VmReplication replication) { + this.Invoke("SetVmReplication", new object[] { + vmId, + replicaServer, + replication}); + } + + /// + public System.IAsyncResult BeginSetVmReplication(string vmId, string replicaServer, VmReplication replication, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("SetVmReplication", new object[] { + vmId, + replicaServer, + replication}, callback, asyncState); + } + + /// + public void EndSetVmReplication(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void SetVmReplicationAsync(string vmId, string replicaServer, VmReplication replication) { + this.SetVmReplicationAsync(vmId, replicaServer, replication, null); + } + + /// + public void SetVmReplicationAsync(string vmId, string replicaServer, VmReplication replication, object userState) { + if ((this.SetVmReplicationOperationCompleted == null)) { + this.SetVmReplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetVmReplicationOperationCompleted); + } + this.InvokeAsync("SetVmReplication", new object[] { + vmId, + replicaServer, + replication}, this.SetVmReplicationOperationCompleted, userState); + } + + private void OnSetVmReplicationOperationCompleted(object arg) { + if ((this.SetVmReplicationCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.SetVmReplicationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/TestReplicationServer", 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 TestReplicationServer(string vmId, string replicaServer, string localThumbprint) { + this.Invoke("TestReplicationServer", new object[] { + vmId, + replicaServer, + localThumbprint}); + } + + /// + public System.IAsyncResult BeginTestReplicationServer(string vmId, string replicaServer, string localThumbprint, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("TestReplicationServer", new object[] { + vmId, + replicaServer, + localThumbprint}, callback, asyncState); + } + + /// + public void EndTestReplicationServer(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void TestReplicationServerAsync(string vmId, string replicaServer, string localThumbprint) { + this.TestReplicationServerAsync(vmId, replicaServer, localThumbprint, null); + } + + /// + public void TestReplicationServerAsync(string vmId, string replicaServer, string localThumbprint, object userState) { + if ((this.TestReplicationServerOperationCompleted == null)) { + this.TestReplicationServerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTestReplicationServerOperationCompleted); + } + this.InvokeAsync("TestReplicationServer", new object[] { + vmId, + replicaServer, + localThumbprint}, this.TestReplicationServerOperationCompleted, userState); + } + + private void OnTestReplicationServerOperationCompleted(object arg) { + if ((this.TestReplicationServerCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.TestReplicationServerCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/StartInitialReplication", 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 StartInitialReplication(string vmId) { + this.Invoke("StartInitialReplication", new object[] { + vmId}); + } + + /// + public System.IAsyncResult BeginStartInitialReplication(string vmId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("StartInitialReplication", new object[] { + vmId}, callback, asyncState); + } + + /// + public void EndStartInitialReplication(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void StartInitialReplicationAsync(string vmId) { + this.StartInitialReplicationAsync(vmId, null); + } + + /// + public void StartInitialReplicationAsync(string vmId, object userState) { + if ((this.StartInitialReplicationOperationCompleted == null)) { + this.StartInitialReplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStartInitialReplicationOperationCompleted); + } + this.InvokeAsync("StartInitialReplication", new object[] { + vmId}, this.StartInitialReplicationOperationCompleted, userState); + } + + private void OnStartInitialReplicationOperationCompleted(object arg) { + if ((this.StartInitialReplicationCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.StartInitialReplicationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetReplication", 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 VmReplication GetReplication(string vmId) { + object[] results = this.Invoke("GetReplication", new object[] { + vmId}); + return ((VmReplication)(results[0])); + } + + /// + public System.IAsyncResult BeginGetReplication(string vmId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetReplication", new object[] { + vmId}, callback, asyncState); + } + + /// + public VmReplication EndGetReplication(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((VmReplication)(results[0])); + } + + /// + public void GetReplicationAsync(string vmId) { + this.GetReplicationAsync(vmId, null); + } + + /// + public void GetReplicationAsync(string vmId, object userState) { + if ((this.GetReplicationOperationCompleted == null)) { + this.GetReplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetReplicationOperationCompleted); + } + this.InvokeAsync("GetReplication", new object[] { + vmId}, this.GetReplicationOperationCompleted, userState); + } + + private void OnGetReplicationOperationCompleted(object arg) { + if ((this.GetReplicationCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetReplicationCompleted(this, new GetReplicationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DisableVmReplication", 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 DisableVmReplication(string vmId, string replicaServer) { + object[] results = this.Invoke("DisableVmReplication", new object[] { + vmId, + replicaServer}); + return ((bool)(results[0])); + } + + /// + public System.IAsyncResult BeginDisableVmReplication(string vmId, string replicaServer, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DisableVmReplication", new object[] { + vmId, + replicaServer}, callback, asyncState); + } + + /// + public bool EndDisableVmReplication(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((bool)(results[0])); + } + + /// + public void DisableVmReplicationAsync(string vmId, string replicaServer) { + this.DisableVmReplicationAsync(vmId, replicaServer, null); + } + + /// + public void DisableVmReplicationAsync(string vmId, string replicaServer, object userState) { + if ((this.DisableVmReplicationOperationCompleted == null)) { + this.DisableVmReplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableVmReplicationOperationCompleted); + } + this.InvokeAsync("DisableVmReplication", new object[] { + vmId, + replicaServer}, this.DisableVmReplicationOperationCompleted, userState); + } + + private void OnDisableVmReplicationOperationCompleted(object arg) { + if ((this.DisableVmReplicationCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DisableVmReplicationCompleted(this, new DisableVmReplicationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetReplicationInfo", 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 ReplicationDetailInfo GetReplicationInfo(string vmId) { + object[] results = this.Invoke("GetReplicationInfo", new object[] { + vmId}); + return ((ReplicationDetailInfo)(results[0])); + } + + /// + public System.IAsyncResult BeginGetReplicationInfo(string vmId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetReplicationInfo", new object[] { + vmId}, callback, asyncState); + } + + /// + public ReplicationDetailInfo EndGetReplicationInfo(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ReplicationDetailInfo)(results[0])); + } + + /// + public void GetReplicationInfoAsync(string vmId) { + this.GetReplicationInfoAsync(vmId, null); + } + + /// + public void GetReplicationInfoAsync(string vmId, object userState) { + if ((this.GetReplicationInfoOperationCompleted == null)) { + this.GetReplicationInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetReplicationInfoOperationCompleted); + } + this.InvokeAsync("GetReplicationInfo", new object[] { + vmId}, this.GetReplicationInfoOperationCompleted, userState); + } + + private void OnGetReplicationInfoOperationCompleted(object arg) { + if ((this.GetReplicationInfoCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetReplicationInfoCompleted(this, new GetReplicationInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/PauseReplication", 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 PauseReplication(string vmId) { + this.Invoke("PauseReplication", new object[] { + vmId}); + } + + /// + public System.IAsyncResult BeginPauseReplication(string vmId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("PauseReplication", new object[] { + vmId}, callback, asyncState); + } + + /// + public void EndPauseReplication(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void PauseReplicationAsync(string vmId) { + this.PauseReplicationAsync(vmId, null); + } + + /// + public void PauseReplicationAsync(string vmId, object userState) { + if ((this.PauseReplicationOperationCompleted == null)) { + this.PauseReplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPauseReplicationOperationCompleted); + } + this.InvokeAsync("PauseReplication", new object[] { + vmId}, this.PauseReplicationOperationCompleted, userState); + } + + private void OnPauseReplicationOperationCompleted(object arg) { + if ((this.PauseReplicationCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.PauseReplicationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ResumeReplication", 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 ResumeReplication(string vmId) { + this.Invoke("ResumeReplication", new object[] { + vmId}); + } + + /// + public System.IAsyncResult BeginResumeReplication(string vmId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("ResumeReplication", new object[] { + vmId}, callback, asyncState); + } + + /// + public void EndResumeReplication(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void ResumeReplicationAsync(string vmId) { + this.ResumeReplicationAsync(vmId, null); + } + + /// + public void ResumeReplicationAsync(string vmId, object userState) { + if ((this.ResumeReplicationOperationCompleted == null)) { + this.ResumeReplicationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnResumeReplicationOperationCompleted); + } + this.InvokeAsync("ResumeReplication", new object[] { + vmId}, this.ResumeReplicationOperationCompleted, userState); + } + + private void OnResumeReplicationOperationCompleted(object arg) { + if ((this.ResumeReplicationCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.ResumeReplicationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// public new void CancelAsync(object userState) { base.CancelAsync(userState); @@ -3452,4 +4027,140 @@ namespace WebsitePanel.Providers.Virtualization2012 { } } } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetCertificatesCompletedEventHandler(object sender, GetCertificatesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetCertificatesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetCertificatesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public CertificateInfo[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((CertificateInfo[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void SetReplicaServerCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UnsetReplicaServerCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void EnableVmReplicationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void SetVmReplicationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void TestReplicationServerCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void StartInitialReplicationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetReplicationCompletedEventHandler(object sender, GetReplicationCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetReplicationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetReplicationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public VmReplication Result { + get { + this.RaiseExceptionIfNecessary(); + return ((VmReplication)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DisableVmReplicationCompletedEventHandler(object sender, DisableVmReplicationCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DisableVmReplicationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DisableVmReplicationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public bool Result { + get { + this.RaiseExceptionIfNecessary(); + return ((bool)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetReplicationInfoCompletedEventHandler(object sender, GetReplicationInfoCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetReplicationInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetReplicationInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ReplicationDetailInfo Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ReplicationDetailInfo)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void PauseReplicationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void ResumeReplicationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); } diff --git a/WebsitePanel/Sources/WebsitePanel.Server/VirtualizationServer2012.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/VirtualizationServer2012.asmx.cs index 4fa2f4a1..c8c990a6 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/VirtualizationServer2012.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/VirtualizationServer2012.asmx.cs @@ -875,6 +875,7 @@ namespace WebsitePanel.Server #region Replication + [WebMethod, SoapHeader("settings")] public List GetCertificates(string remoteServer) { try @@ -891,6 +892,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void SetReplicaServer(string remoteServer, string thumbprint, string storagePath) { try @@ -906,6 +908,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void UnsetReplicaServer(string remoteServer) { try @@ -921,6 +924,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void EnableVmReplication(string vmId, string replicaServer, VmReplication replication) { try @@ -936,6 +940,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void SetVmReplication(string vmId, string replicaServer, VmReplication replication) { try @@ -951,6 +956,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void TestReplicationServer(string vmId, string replicaServer, string localThumbprint) { try @@ -966,6 +972,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void StartInitialReplication(string vmId) { try @@ -981,6 +988,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public VmReplication GetReplication(string vmId) { try @@ -997,6 +1005,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public bool DisableVmReplication(string vmId, string replicaServer) { try @@ -1013,6 +1022,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public ReplicationDetailInfo GetReplicationInfo(string vmId) { try @@ -1029,6 +1039,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void PauseReplication(string vmId) { try @@ -1044,6 +1055,7 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] public void ResumeReplication(string vmId) { try