/// <summary>
 /// Terminates a Job Schedule.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobScheduleId'>
 /// The ID of the Job Schedule to terminates.
 /// </param>
 /// <param name='jobScheduleTerminateOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <JobScheduleTerminateHeaders> TerminateAsync(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleTerminateOptions jobScheduleTerminateOptions = default(JobScheduleTerminateOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.TerminateWithHttpMessagesAsync(jobScheduleId, jobScheduleTerminateOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Terminates a Job Schedule.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobScheduleId'>
 /// The ID of the Job Schedule to terminates.
 /// </param>
 /// <param name='jobScheduleTerminateOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobScheduleTerminateHeaders Terminate(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleTerminateOptions jobScheduleTerminateOptions = default(JobScheduleTerminateOptions))
 {
     return(operations.TerminateAsync(jobScheduleId, jobScheduleTerminateOptions).GetAwaiter().GetResult());
 }
Example #3
0
 public virtual async Task <Response> TerminateAsync(string jobScheduleId, JobScheduleTerminateOptions jobScheduleTerminateOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.TerminateAsync(jobScheduleId, jobScheduleTerminateOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }
Example #4
0
 public virtual Response Terminate(string jobScheduleId, JobScheduleTerminateOptions jobScheduleTerminateOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.Terminate(jobScheduleId, jobScheduleTerminateOptions, cancellationToken).GetRawResponse());
 }
 /// <summary>
 /// Terminates a job schedule.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobScheduleId'>
 /// The id of the job schedule to terminates.
 /// </param>
 /// <param name='jobScheduleTerminateOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobScheduleTerminateHeaders Terminate(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleTerminateOptions jobScheduleTerminateOptions = default(JobScheduleTerminateOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IJobScheduleOperations)s).TerminateAsync(jobScheduleId, jobScheduleTerminateOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }