private async void InvalidateBundleCache(IBundleModel bundle) { try { await _cache.RemoveAllAsync(_id, bundle.Path, _shutdownToken).ConfigureAwait(false); } catch (Exception ex) { _logger.LogError(ex, "Unexpected error occurred during updating cache."); } }
protected virtual void BundleChanged(object sender, EventArgs e) { _cache.RemoveAllAsync(_id, ((IBundleModel)sender).Path, _shutdownToken).GetAwaiter().GetResult(); }