/// <summary>
 /// Constructs the migration plan, from the actual plan returned from service
 /// </summary>
 /// <param name="migrationPlanInfo">migration plan</param>
 public MigrationPlanInfoMsg(MigrationPlanInfo migrationPlanInfo)
 {
     AssumedBandwidthInMbps = migrationPlanInfo.AssumedBandwidthInMbps;
     CloudConfigurationName = migrationPlanInfo.DataContainerName;
     EstimatedTimeForAllBackups = new TimeSpan(0, migrationPlanInfo.EstimatedTimeInMinutes, 0);
     EstimatedTimeForLargestBackup = new TimeSpan(0, migrationPlanInfo.EstimatedTimeInMinutesForLargestBackup, 0);
     PlanMessageInfo = GetPlanMessageInfo(new List<HcsMessageInfo>(migrationPlanInfo.PlanMessageInfoList));
     Status = migrationPlanInfo.PlanStatus;
 }
Exemple #2
0
 /// <summary>
 /// Constructs the migration plan, from the actual plan returned from service
 /// </summary>
 /// <param name="migrationPlanInfo">migration plan</param>
 public MigrationPlanInfoMsg(MigrationPlanInfo migrationPlanInfo)
 {
     AssumedBandwidthInMbps        = migrationPlanInfo.AssumedBandwidthInMbps;
     CloudConfigurationName        = migrationPlanInfo.DataContainerName;
     EstimatedTimeForAllBackups    = new TimeSpan(0, migrationPlanInfo.EstimatedTimeInMinutes, 0);
     EstimatedTimeForLargestBackup = new TimeSpan(0, migrationPlanInfo.EstimatedTimeInMinutesForLargestBackup, 0);
     PlanMessageInfo = GetPlanMessageInfo(new List <HcsMessageInfo>(migrationPlanInfo.PlanMessageInfoList));
     Status          = migrationPlanInfo.PlanStatus;
 }
 /// <summary>
 /// Constructs MigrationPlanInfoMsgList of specified migration plan status
 /// </summary>
 /// <param name="status">migration plan status</param>
 public MigrationPlanInfoMsgList(MigrationPlanStatus status)
 {
     this.MigrationTimeEstimationStatus = status;
     this.MigrationTimeEstimationInfoList = new List<MigrationPlanInfoMsg>();
 }
Exemple #4
0
 /// <summary>
 /// Constructs MigrationPlanInfoMsgList of specified migration plan status
 /// </summary>
 /// <param name="status">migration plan status</param>
 public MigrationPlanInfoMsgList(MigrationPlanStatus status)
 {
     this.MigrationTimeEstimationStatus   = status;
     this.MigrationTimeEstimationInfoList = new List <MigrationPlanInfoMsg>();
 }