/// <summary>
 /// Lists all of the legacy peerings under the given subscription matching the
 /// specified kind and location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='peeringLocation'>
 /// The location of the peering.
 /// </param>
 /// <param name='kind'>
 /// The kind of the peering. Possible values include: 'Direct', 'Exchange'
 /// </param>
 /// <param name='asn'>
 /// The ASN number associated with a legacy peering.
 /// </param>
 public static IPage <PeeringModel> List(this ILegacyPeeringsOperations operations, string peeringLocation, string kind, int?asn = default(int?))
 {
     return(operations.ListAsync(peeringLocation, kind, asn).GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Lists all of the legacy peerings under the given subscription matching the
 /// specified kind and location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='peeringLocation'>
 /// The location of the peering.
 /// </param>
 /// <param name='kind'>
 /// The kind of the peering. Possible values include: 'Direct', 'Exchange'
 /// </param>
 public static IEnumerable <PeeringModel> List(this ILegacyPeeringsOperations operations, string peeringLocation, string kind)
 {
     return(operations.ListAsync(peeringLocation, kind).GetAwaiter().GetResult());
 }