Description of VirtualMachinesSelector.
Exemplo n.º 1
0
 internal bool RemoveVirtualMachines()
 {
     var cmdlet = (RemoveEsxiVmCommand)Cmdlet;
     var virtualMachinesSelector = new VirtualMachinesSelector();
     var virtualMachines = virtualMachinesSelector.GetMachines(cmdlet.Server, cmdlet.Id, cmdlet.Name, cmdlet.Path);
     var virtualMachinesProcessor = new VirtualMachinesProcessor();
     return virtualMachinesProcessor.RemoveMachines(virtualMachines);
 }
Exemplo n.º 2
0
 internal IEnumerable<IEsxiVirtualMachine> GetVirtualMachines()
 {
     var cmdlet = (GetEsxiVmCommand)Cmdlet;
     var virtualMachinesSelector = new VirtualMachinesSelector();
     return virtualMachinesSelector.GetMachines(cmdlet.Server, cmdlet.Id, cmdlet.Name, cmdlet.Path);
 }