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);
            }
        }
示例#2
0
        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);
            }
        }