コード例 #1
0
 //
 // Summary:
 //     Initializes a new instance of the RecoveryPlanScriptActionDetails class.
 public ASRRecoveryPlanScriptActionDetails(RecoveryPlanScriptActionDetails recoveryPlanScriptActionDetails)
 {
     this.Path           = recoveryPlanScriptActionDetails.Path;
     this.Timeout        = recoveryPlanScriptActionDetails.Timeout;
     this.FabricLocation = "Primary" == recoveryPlanScriptActionDetails.FabricLocation ?
                           ASRRecoveryPlanActionLocation.Primary : ASRRecoveryPlanActionLocation.Recovery;
 }
コード例 #2
0
        public static RecoveryPlanScriptActionDetails getRecoveryPlanScriptActionDetails(ASRRecoveryPlanScriptActionDetails recoveryPlanScriptActionDetails)
        {
            var actionDetails = new RecoveryPlanScriptActionDetails();

            actionDetails.Path           = recoveryPlanScriptActionDetails.Path;
            actionDetails.Timeout        = recoveryPlanScriptActionDetails.Timeout;
            actionDetails.FabricLocation = recoveryPlanScriptActionDetails.FabricLocation ==
                                           ASRRecoveryPlanActionLocation.Primary ? "Primary" : "Recovery";

            return(actionDetails);
        }