public override void ExecuteCmdlet() { try { StorSimpleClient.UpdateMigrationConfirmStatusSync(LegacyConfigId); var confirmStatus = StorSimpleClient.GetMigrationConfirmStatus(LegacyConfigId); if (0 < confirmStatus.ContainerConfirmStatus.Count) { if (null != LegacyContainerNames) { var legacyContainerNameList = LegacyContainerNames.ToList(); confirmStatus.ContainerConfirmStatus = confirmStatus.ContainerConfirmStatus.ToList().FindAll( status => legacyContainerNameList.Contains(status.CloudConfigurationName, StringComparer.InvariantCultureIgnoreCase)); } } var confirmStatusMsg = new ConfirmMigrationStatusMsg(LegacyConfigId, confirmStatus); WriteObject(confirmStatusMsg); } catch (Exception except) { this.HandleException(except); } }