public async Task ClearAsync(TimeSpan timeout, CancellationToken cancellationToken) { await _dictionary.ClearAsync(timeout, cancellationToken).ConfigureAwait(false); foreach (var index in _indexes) { await index.ClearAsync(timeout, cancellationToken).ConfigureAwait(false); } }
/// <summary> /// Notify the index that the primary reliable collection was cleared. /// This is called by <see cref="IReliableIndexedDictionary{TKey, TValue}"/> internally and should not be directly called. /// </summary> Task IIndexDefinition <TKey, TValue> .ClearAsync(TimeSpan timeout, CancellationToken token) { return(_index.ClearAsync(timeout, token)); }