public void Dispose() { if (_vmPowerDriver != null) { _vmPowerDriver.Dispose(); _vmPowerDriver = null; } }
public DriverTaskInstance( RemoteInstallConfig config, string logpath, bool simulationOnly, VirtualMachineConfig vmConfig, InstallersConfig installersConfig, SnapshotConfig snapshotConfig) { _config = config; _vmConfig = vmConfig; _simulationOnly = simulationOnly; _logpath = logpath; _vmPowerDriver = new VirtualMachinePowerDriver(vmConfig, snapshotConfig, simulationOnly); _installersConfig = installersConfig; }