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