protected override void ExecuteCmdletImpl() { string filePath = this.InputObject == null ? this.Path : this.InputObject.Path; NodeFileOperationParameters parameters = new NodeFileOperationParameters(this.BatchContext, this.JobId, this.TaskId, this.PoolId, this.ComputeNodeId, this.Path, this.InputObject, this.AdditionalBehaviors); ConfirmAction( Force.IsPresent, string.Format(Resources.RemoveNodeFileConfirm, filePath), Resources.RemoveNodeFile, filePath, () => BatchClient.DeleteNodeFile(Recursive.IsPresent, parameters)); }
public override void ExecuteCmdlet() { string fileName = this.InputObject == null ? this.Name : this.InputObject.Name; NodeFileOperationParameters parameters = new NodeFileOperationParameters(this.BatchContext, this.JobId, this.TaskId, this.PoolId, this.ComputeNodeId, this.Name, this.InputObject, this.AdditionalBehaviors); ConfirmAction( Force.IsPresent, string.Format(Resources.RemoveNodeFileConfirm, fileName), Resources.RemoveNodeFile, fileName, () => BatchClient.DeleteNodeFile(parameters)); }