public override void ExecuteCmdlet() { ConfirmAction( Force.IsPresent, string.Format(Resources.StoppingDataLakeAnalyticsJob, JobId), string.Format(Resources.StopDataLakeAnalyticsJob, JobId), JobId.ToString(), () => DataLakeAnalyticsClient.CancelJob(Account, JobId)); if (PassThru) { WriteObject(true); } }
protected override void ProcessRecord() { ConfirmAction( Force.IsPresent, string.Format(Resources.StoppingDataLakeAnalyticsJob, JobId), string.Format(Resources.StopDataLakeAnalyticsJob, JobId), JobId.ToString(), () => DataLakeAnalyticsClient.CancelJob(ResourceGroupName, Account, JobId)); if (PassThru) { WriteObject(true); } }