xenadmin/XenModel/Actions/Host
Mihaela Stoica 65b4ef1f37 CA-152052: Fix the issue where the License Manager showed the wrong state when assigning/releasing license from pool
The problem was that the License Manager was listening to PropertyChanged events on the master only, not on slaves.
When the master's properties change (e.g. edition) we update the row in the license manager; but in some cases a slave (or more) hasn't been updated yet (as it may be updated in another event.from) and we think that the pool is partially updated.
Our solution is to listen to Host BatchCollectionChanged event, which is triggered once per cache update for the host collection (it any property changed for any of the hosts).
The sleep in the ApplyLicenseEditionAction is not needed anymore, nor is the extra call to update the cell after the action is completed, because the cell is getting updated correctly on the BatchCollectionChanged event.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-11-24 16:57:42 +00:00
..
ActivationProxy.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ActivationRequestAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ApplyLicenseAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ApplyLicenseEditionAction.cs CA-152052: Fix the issue where the License Manager showed the wrong state when assigning/releasing license from pool 2014-11-24 16:57:42 +00:00
ChangeHostPasswordAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DestroyHostAction.cs CA-76329: SR destroy option is missing from XenCenter (even SR doesn't contains any VDI and SR is detached) 2013-07-23 13:42:27 +01:00
DestroyHostCrashDumpAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DisableHostAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
EditMultipathAction.cs CA-136173: Getting several notifications for one user-level action (e.g. Updating network operation creates 4 entries in the Notifications/Events view) 2014-07-21 11:19:04 +01:00
EnableHostAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
EvacuateHostAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ExecutePluginAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
FibreChannelProbeAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
GetServerTimeAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
GetSystemStatusCapabilities.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
HostAbstractAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
HostBackupRestoreAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
HostPowerOnAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
HostWithStatus.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
LicensingHelper.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
RebootHostAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
RestartToolstackAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
SavePowerOnSettingsAction.cs CA-136173: Getting several notifications for one user-level action (e.g. Updating network operation creates 4 entries in the Notifications/Events view) 2014-07-21 11:19:04 +01:00
ShutdownHostAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
SingleHostStatusAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
SystemStatusAction.cs CP-5750: Changed the declaration for the ActionBase events Completed, Changed and 2013-08-09 17:20:33 +01:00
TestLocationInstallerAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
VMsWhichCanBeMigratedAction.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00