/// <summary>
 /// Start a continuous web job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations.
 /// </param>
 /// <param name='jobName'>
 /// The job name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse StartContinuous(this IWebJobOperations operations, string jobName)
 {
     try
     {
         return(operations.StartContinuousAsync(jobName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// Start a continuous web job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations.
 /// </param>
 /// <param name='jobName'>
 /// The job name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> StartContinuousAsync(this IWebJobOperations operations, string jobName)
 {
     return(operations.StartContinuousAsync(jobName, CancellationToken.None));
 }