Пример #1
0
 /// <summary>
 /// Removes a Storage Target from a Cache. This operation is allowed at any
 /// time, but if the Cache is down or unhealthy, the actual removal of the
 /// Storage Target may be delayed until the Cache is healthy again. Note that
 /// if the Cache has data to flush to the Storage Target, the data will be
 /// flushed before the Storage Target will be deleted.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Target resource group.
 /// </param>
 /// <param name='cacheName'>
 /// Name of Cache. Length of name must be not greater than 80 and chars must be
 /// in list of [-0-9a-zA-Z_] char class.
 /// </param>
 /// <param name='storageTargetName'>
 /// Name of Storage Target.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> DeleteAsync(this IStorageTargets operations, string resourceGroupName, string cacheName, string storageTargetName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, cacheName, storageTargetName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Removes a Storage Target from a Cache. This operation is allowed at any
 /// time, but if the Cache is down or unhealthy, the actual removal of the
 /// Storage Target may be delayed until the Cache is healthy again. Note that
 /// if the Cache has data to flush to the Storage Target, the data will be
 /// flushed before the Storage Target will be deleted.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Target resource group.
 /// </param>
 /// <param name='cacheName'>
 /// Name of Cache. Length of name must not be greater than 80 and chars must be
 /// from the [-0-9a-zA-Z_] char class.
 /// </param>
 /// <param name='storageTargetName'>
 /// Name of Storage Target.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IStorageTargets operations, string resourceGroupName, string cacheName, string storageTargetName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, cacheName, storageTargetName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }