Example #1
0
 /// <summary>
 /// Constructs the overall volume container migration status object
 /// </summary>
 /// <param name="configId">ConfigId corresponding to current instance of migration</param>
 /// <param name="overallStatusList">Overall list of status obtained from service</param>
 public DataContainerMigrationStatus(string configId, List <MigrationDataContainerStatus> overallStatusList)
 {
     this.LegacyConfigId      = configId;
     this.MigrationNotStarted = new LegacyDataContainerMigrationStatus(overallStatusList,
                                                                       MigrationStatus.NotStarted);
     this.MigrationInprogress = new LegacyDataContainerMigrationStatus(overallStatusList,
                                                                       MigrationStatus.InProgress);
     this.MigrationFailed    = new LegacyDataContainerMigrationStatus(overallStatusList, MigrationStatus.Failed);
     this.MigrationCompleted = new LegacyDataContainerMigrationStatus(overallStatusList,
                                                                      MigrationStatus.Completed);
 }
 /// <summary>
 /// Constructs the overall volume container migration status object
 /// </summary>
 /// <param name="configId">ConfigId corresponding to current instance of migration</param>
 /// <param name="overallStatusList">Overall list of status obtained from service</param>
 public DataContainerMigrationStatus(string configId, List<MigrationDataContainerStatus> overallStatusList)
 {
     this.LegacyConfigId = configId;
     this.MigrationNotStarted = new LegacyDataContainerMigrationStatus(overallStatusList,
         MigrationStatus.NotStarted);
     this.MigrationInprogress = new LegacyDataContainerMigrationStatus(overallStatusList,
         MigrationStatus.InProgress);
     this.MigrationFailed = new LegacyDataContainerMigrationStatus(overallStatusList, MigrationStatus.Failed);
     this.MigrationCompleted = new LegacyDataContainerMigrationStatus(overallStatusList,
         MigrationStatus.Completed);
 }