コード例 #1
0
 /// <summary>
 /// Check if the probe path is a valid path and the file can be accessed. Probe
 /// path is the path to a file hosted on the origin server to help accelerate
 /// the delivery of dynamic content via the CDN endpoint. This path is relative
 /// to the origin path specified in the endpoint configuration.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='probeURL'>
 /// The probe URL to validate.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ValidateProbeOutput> ValidateProbeAsync(this ICdnManagementClient operations, string probeURL, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ValidateProbeWithHttpMessagesAsync(probeURL, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists all of the available CDN REST API operations.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <OperationInner> > ListOperationsAsync(this ICdnManagementClient operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListOperationsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Check the availability of a resource name. This is needed for resources
 /// where name is globally unique, such as a CDN endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// The resource name to validate.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CheckNameAvailabilityOutput> CheckNameAvailabilityWithSubscriptionAsync(this ICdnManagementClient operations, string name, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckNameAvailabilityWithSubscriptionWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// Check the availability of a resource name. This is needed for resources
 /// where name is globally unique, such as a CDN endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// The resource name to validate.
 /// </param>
 public static CheckNameAvailabilityOutput CheckNameAvailabilityWithSubscription(this ICdnManagementClient operations, string name)
 {
     return(operations.CheckNameAvailabilityWithSubscriptionAsync(name).GetAwaiter().GetResult());
 }
コード例 #5
0
 /// <summary>
 /// Check if the probe path is a valid path and the file can be accessed. Probe
 /// path is the path to a file hosted on the origin server to help accelerate
 /// the delivery of dynamic content via the CDN endpoint. This path is relative
 /// to the origin path specified in the endpoint configuration.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='probeURL'>
 /// The probe URL to validate.
 /// </param>
 public static ValidateProbeOutput ValidateProbe(this ICdnManagementClient operations, string probeURL)
 {
     return(operations.ValidateProbeAsync(probeURL).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Check the quota and actual usage of the CDN profiles under the given
 /// subscription.
 /// </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 <ResourceUsageInner> > ListResourceUsageNextAsync(this ICdnManagementClient operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListResourceUsageNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }