/// <summary>
 /// Delete a continuous job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations.
 /// </param>
 /// <param name='jobName'>
 /// The job name.
 /// </param>
 /// <param name='recursive'>
 /// Removing the specified directory and all its files and
 /// subdirectories. The value must be set to true.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse DeleteContinuous(this IWebJobOperations operations, string jobName, bool recursive)
 {
     try
     {
         return(operations.DeleteContinuousAsync(jobName, recursive).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// Delete a continuous job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations.
 /// </param>
 /// <param name='jobName'>
 /// The job name.
 /// </param>
 /// <param name='recursive'>
 /// Removing the specified directory and all its files and
 /// subdirectories. The value must be set to true.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteContinuousAsync(this IWebJobOperations operations, string jobName, bool recursive)
 {
     return(operations.DeleteContinuousAsync(jobName, recursive, CancellationToken.None));
 }