/// <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='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PeeringModel> > ListNextAsync(this ILegacyPeeringsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PeeringModel> > ListAsync(this ILegacyPeeringsOperations operations, string peeringLocation, string kind, int?asn = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(peeringLocation, kind, asn, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <PeeringModel> ListNext(this ILegacyPeeringsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <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());
 }
Ejemplo n.º 5
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());
 }