Exemplo n.º 1
0
 /// <summary>
 /// The List Dedicated Circuit operation retrieves a list of dedicated
 /// circuits owned by the customer.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitOperations.
 /// </param>
 /// <returns>
 /// The List Dedicated Circuit operation response.
 /// </returns>
 public static DedicatedCircuitListResponse List(this IDedicatedCircuitOperations operations)
 {
     try
     {
         return(operations.ListAsync().Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// The List Dedicated Circuit operation retrieves a list of dedicated
 /// circuits owned by the customer.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitOperations.
 /// </param>
 /// <returns>
 /// The List Dedicated Circuit operation response.
 /// </returns>
 public static Task <DedicatedCircuitListResponse> ListAsync(this IDedicatedCircuitOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }