/// <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 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>(); }
/// <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>(); }