public PersistentVirtualMachine(VirtualMachine machine) { this.Name = machine.Name; this.Guid = machine.Guid; this.Username = machine.Username; this.Password = machine.Password; }
public string ExecuteNativeCommand(VirtualMachine machine, string command) { string output = string.Empty; if (machine.Guid != Guid.Empty) output = this.ExecuteNativeCommand(machine.Guid.ToString(), command, machine.Username, machine.Password); else output = this.ExecuteNativeCommand(machine.Name, command, machine.Username, machine.Password); return output; }
public string GetVirtualMachineIP(VirtualMachine machine) { string output = string.Empty; if (machine.Guid != Guid.Empty) output = this.GetVirtualMachineIP(machine.Guid.ToString()); else output = this.GetVirtualMachineIP(machine.Name); return output; }
public void ResetVirtualMachine(VirtualMachine machine) { if (machine.Guid != Guid.Empty) this.ResetVirtualMachine(machine.Guid.ToString()); else this.ResetVirtualMachine(machine.Name); }