/// <summary> /// Initializes a new instance of the <see cref="ASRRecoveryPlan" /> class with required /// parameters. /// </summary> /// <param name="recoveryPlan">Recovery plan object</param> public ASRRecoveryPlan(RecoveryPlan recoveryPlan) { this.ID = recoveryPlan.ID; this.Name = recoveryPlan.Name; this.ServerId = recoveryPlan.ServerId; this.TargetServerId = recoveryPlan.TargetServerId; }
/// <summary> /// Initializes a new instance of the <see cref="ASRRecoveryPlan" /> class with required /// parameters. /// </summary> /// <param name="recoveryPlan">Recovery plan object</param> public ASRRecoveryPlan(RecoveryPlan recoveryPlan) { this.ID = recoveryPlan.ID; this.Name = recoveryPlan.Name; this.ServerId = recoveryPlan.ServerId; this.TargetServerId = recoveryPlan.TargetServerId; this.ReplicationProvider = recoveryPlan.ReplicationProvider; }
/// <summary> /// Writes Recovery Plan. /// </summary> /// <param name="recoveryPlan">Recovery Plan</param> private void WriteRecoveryPlan(RecoveryPlan recoveryPlan) { this.WriteObject(new ASRRecoveryPlan(recoveryPlan)); }