This simplifies the code since the TaskPoller cannot be perceived without an AsyncAction.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
- Stop rethrowing exceptions.
- Added some checks.
- Renamed method XenCenterUUID to GetXenCenterUUID to match the methods
SetXenCenterUUID and RemoveXenCenterUUID.
- Replaced check via static string list with a string switch block.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Not sure why I had added that since the containing protected method is probably
more relevant as a static method in the Problem class.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Also, try plugging PBDs only for the host in question (other hosts are not necessary,
as the PBDs are re-checked for any previously evacuated VMs before repatriation).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
The rdpControl was set to null too soon and by the time the timer ticked it had
no chance to be disposed of at all. Also, the timer itself was not disposed of.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
It thinks that the element VirtualSystem is an invalid child element of
VirtualSystemCollection, which is not the case.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Regression introduced by the changes for CA-64500. Since we initiate a VMStartAction
we need to ensure that the VM object passed to the action has a non-null Connection.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Also, removed the known file extensions from the Settings because they are not
user or application settings.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
- Moved the code to the ExportApplianceAction so it's easier to modify the
action's description.
- Fixed issue where the user's option for adding signature/manifest to a plain
OVF package was ignored.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Destroying a VM does not disrupt the connection, hence the use of the BestEffort
method is not warranted. After this correction, BestEffort is only used in the
DestroyedBondAction, hence I removed it completely and replaced it with simpler
exception handling in the latter class's Run method.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
- Ensure we read the updates.xml location anew from the registry, otherwise the
application has to be relaunched to pick a registry change. Look in both hives
HKCU and HKLM. To avoid performance impact on the UI, move the operation into
the action's Run() body.
- Some refactoring to improve OOP design and fix XmlReader leak.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
There was a silent exception thrown when reading the window location the first
time the application was launched.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
The dialog is launched non-modally, hence showing the grip automatically has no effect.
Also, made the dialog slightly bigger.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
- Consolidated Action.PollToCompletion overloads, among others, to reduce precision loss.
- Logging the environment's stack trace is not very useful in the case of an API failure.
- Log the task's opaque_ref so it's easier to trace errors in the server side logs.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
The fix for CA-337280 moved the parsing of the probe result in the Run body of
the action, causing it to fail when the dry-run for the RBAC checks is performed.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>