wsp-10329 Adding hyper-v replica to HyperV Provider. Server Part 5.

This commit is contained in:
Alexander Trofimov 2015-04-17 15:35:12 -04:00
parent 9685e61e7e
commit bbd165fdbd
6 changed files with 57 additions and 32 deletions

View file

@ -103,7 +103,7 @@ namespace WebsitePanel.Providers.Virtualization
List<CertificateInfo> GetCertificates(string remoteServer);
void SetReplicaServer(string remoteServer, string thumbprint, string storagePath);
void UnsetReplicaServer(string remoteServer);
bool IsReplicaServer(string remoteServer);
ReplicationServerInfo GetReplicaServer(string remoteServer);
void EnableVmReplication(string vmId, string replicaServer, VmReplication replication);
void SetVmReplication(string vmId, string replicaServer, VmReplication replication);
void TestReplicationServer(string vmId, string replicaServer, string localThumbprint);

View file

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebsitePanel.Providers.Virtualization
{
public class ReplicationServerInfo
{
public bool Enabled { get; set; }
public string ComputerName { get; set; }
}
}

View file

@ -330,6 +330,7 @@
<Compile Include="Virtualization\Replication\CertificateInfo.cs" />
<Compile Include="Virtualization\Replication\ReplicaFrequency.cs" />
<Compile Include="Virtualization\Replication\ReplicationHealth.cs" />
<Compile Include="Virtualization\Replication\ReplicationServerInfo.cs" />
<Compile Include="Virtualization\Replication\VmReplicationMode.cs" />
<Compile Include="Virtualization\Replication\ReplicaMode.cs" />
<Compile Include="Virtualization\Replication\ReplicationState.cs" />