public SnapshotConfig(string username, string password, GuestLoginType logintype, bool poweroff) { Username = username; Password = password; PowerOff = poweroff; LoginType = logintype; }
public void LoginInGuest(string username, string password, GuestLoginType logintype) { int loginOptions = 0; switch (logintype) { case GuestLoginType.interactive: ConsoleOutput.WriteLine(" Interactively logging on to 'Remote:{0}' as '{1}'", _name, username); loginOptions = Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT; break; default: ConsoleOutput.WriteLine(" Logging on to 'Remote:{0}' as '{1}'", _name, username); break; } if (!_simulationOnly) { _vm.LoginInGuest(username, password, loginOptions, VMWareInterop.Timeouts.LoginTimeout); } }