public override void ExecuteCmdlet() { try { StorSimpleClient.UpdateDataContainerMigrationStatusSync(LegacyConfigId); var overallMigrationStatusList = StorSimpleClient.GetDataContainerMigrationStatus(LegacyConfigId); var migrationDataContainerStatusList = overallMigrationStatusList.MigrationDataContainerStatuses.ToList(); if (null != LegacyContainerNames && 0 < LegacyContainerNames.Length) { var containerNameList = LegacyContainerNames.ToList(); migrationDataContainerStatusList = migrationDataContainerStatusList.ToList().FindAll( status => containerNameList.Contains(status.CloudConfigurationName, StringComparer.InvariantCultureIgnoreCase)); } var migrationStatus = new DataContainerMigrationStatus( LegacyConfigId, migrationDataContainerStatusList); WriteObject(migrationStatus); } catch (Exception except) { this.HandleException(except); } }