wsp-10323 Convert the VSP provider into one utilizing PowerShell. Step 4 Snapshots

This commit is contained in:
AlexanderTr 2015-03-13 08:02:31 +03:00
parent 6a1efab8d5
commit 8f6b035e89
8 changed files with 377 additions and 181 deletions

View file

@ -12,7 +12,7 @@ namespace WebsitePanel.Providers.Virtualization
{
public static class BiosHelper
{
public static BiosInfo GetVMBios(PowerShellManager powerShell, string name, int generation)
public static BiosInfo Get(PowerShellManager powerShell, string name, int generation)
{
BiosInfo info = new BiosInfo();
@ -76,7 +76,7 @@ namespace WebsitePanel.Providers.Virtualization
return info;
}
public static void UpdateBios(PowerShellManager powerShell, VirtualMachine vm, bool bootFromCD, bool numLockEnabled)
public static void Update(PowerShellManager powerShell, VirtualMachine vm, bool bootFromCD, bool numLockEnabled)
{
// for Win2012R2+ and Win8.1+
if (vm.Generation == 2)