/// <summary> /// Delete a management lock by scope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// The scope for the lock. /// </param> /// <param name='lockName'> /// The name of lock. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteByScopeAsync(this IManagementLocksOperations operations, string scope, string lockName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteByScopeWithHttpMessagesAsync(scope, lockName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }