/// <summary>
 /// Updates the peer info associated with the specified subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='peerInfo'>
 /// The peer info.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <PeerInfo> > UpdatePeerInfoAsync(this IPeeringManagementClient operations, IList <PeerInfo> peerInfo, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdatePeerInfoWithHttpMessagesAsync(peerInfo, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Checks if the peering service provider is present within 1000 miles of
 /// customer's location
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='peeringServiceLocation'>
 /// Gets or sets the peering service location.
 /// </param>
 /// <param name='peeringServiceProvider'>
 /// Gets or sets the peering service provider.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> CheckServiceProviderAvailabilityAsync(this IPeeringManagementClient operations, string peeringServiceLocation = default(string), string peeringServiceProvider = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckServiceProviderAvailabilityWithHttpMessagesAsync(peeringServiceLocation, peeringServiceProvider, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Updates the peer info associated with the specified subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='peerInfo'>
 /// The peer info.
 /// </param>
 public static IList <PeerInfo> UpdatePeerInfo(this IPeeringManagementClient operations, IList <PeerInfo> peerInfo)
 {
     return(operations.UpdatePeerInfoAsync(peerInfo).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the peer info associated with the specified subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IList <PeerInfo> GetPeerInfo(this IPeeringManagementClient operations)
 {
     return(operations.GetPeerInfoAsync().GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <summary>
 /// Checks if the peering service provider is present within 1000 miles of
 /// customer's location
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='peeringServiceLocation'>
 /// Gets or sets the peering service location.
 /// </param>
 /// <param name='peeringServiceProvider'>
 /// Gets or sets the peering service provider.
 /// </param>
 public static string CheckServiceProviderAvailability(this IPeeringManagementClient operations, string peeringServiceLocation = default(string), string peeringServiceProvider = default(string))
 {
     return(operations.CheckServiceProviderAvailabilityAsync(peeringServiceLocation, peeringServiceProvider).GetAwaiter().GetResult());
 }
Exemple #6
0
 /// <summary>
 /// Checks if the peering service provider is present within 1000 miles of
 /// customer's location
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='checkServiceProviderAvailabilityInput'>
 /// The CheckServiceProviderAvailabilityInput
 /// indicating customer location and service provider.
 /// </param>
 public static string CheckServiceProviderAvailability(this IPeeringManagementClient operations, CheckServiceProviderAvailabilityInput checkServiceProviderAvailabilityInput)
 {
     return(operations.CheckServiceProviderAvailabilityAsync(checkServiceProviderAvailabilityInput).GetAwaiter().GetResult());
 }