/// <summary> /// The List Cross Connection operation retrieves a list of cross /// connections owned by the provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.ICrossConnectionOperations. /// </param> /// <returns> /// The List Cross Connection operation response. /// </returns> public static CrossConnectionListResponse List(this ICrossConnectionOperations operations) { try { return(operations.ListAsync().Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The List Cross Connection operation retrieves a list of cross /// connections owned by the provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.ICrossConnectionOperations. /// </param> /// <returns> /// The List Cross Connection operation response. /// </returns> public static Task <CrossConnectionListResponse> ListAsync(this ICrossConnectionOperations operations) { return(operations.ListAsync(CancellationToken.None)); }