コード例 #1
0
 /// <summary>
 /// Removes a content from Front Door.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 /// <param name='contentFilePaths'>
 /// The path to the content to be purged. Path can be a full URL, e.g.
 /// '/pictures/city.png' which removes a single file, or a directory with a
 /// wildcard, e.g. '/pictures/*' which removes all folders and files in the
 /// directory.
 /// </param>
 public static void BeginPurgeContent(this IEndpointsOperations operations, string resourceGroupName, string frontDoorName, PurgeParameters contentFilePaths)
 {
     operations.BeginPurgeContentAsync(resourceGroupName, frontDoorName, contentFilePaths).GetAwaiter().GetResult();
 }
コード例 #2
0
 /// <summary>
 /// Removes a content from CDN.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='endpointName'>
 /// Name of the endpoint under the profile which is unique globally.
 /// </param>
 /// <param name='contentPaths'>
 /// The path to the content to be purged. Can describe a file path or a wild
 /// card directory.
 /// </param>
 public static void BeginPurgeContent(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointName, IList <string> contentPaths)
 {
     operations.BeginPurgeContentAsync(resourceGroupName, profileName, endpointName, contentPaths).GetAwaiter().GetResult();
 }