/// <summary>
 /// Update diagnostics settings.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IRepositoryOperations.
 /// </param>
 /// <param name='settings'>
 /// The diagnostics setting information new values.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Update(this IRepositoryOperations operations, IDictionary <string, string> settings)
 {
     try
     {
         return(operations.UpdateAsync(settings).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// Update diagnostics settings.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IRepositoryOperations.
 /// </param>
 /// <param name='settings'>
 /// The diagnostics setting information new values.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> UpdateAsync(this IRepositoryOperations operations, IDictionary <string, string> settings)
 {
     return(operations.UpdateAsync(settings, CancellationToken.None));
 }