public PersistentVirtualMachine(VirtualMachine machine)
 {
     this.Name = machine.Name;
     this.Guid = machine.Guid;
     this.Username = machine.Username;
     this.Password = machine.Password;
 }
예제 #2
0
 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;
 }
예제 #3
0
        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;
        }
예제 #4
0
 public void ResetVirtualMachine(VirtualMachine machine)
 {
     if (machine.Guid != Guid.Empty)
         this.ResetVirtualMachine(machine.Guid.ToString());
     else
         this.ResetVirtualMachine(machine.Name);
 }