public async ValueTask DisposeAsync() { await _queueCache.DisposeAsync().ConfigureAwait(false); _topicCache.Clear(); _amazonSqs?.Dispose(); _amazonSns?.Dispose(); }
public async Task DisposeAsync(CancellationToken cancellationToken) { await _queueCache.DisposeAsync(cancellationToken).ConfigureAwait(false); _topicCache.Clear(); _amazonSqs?.Dispose(); _amazonSns?.Dispose(); }