Example #1
0
 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."); }
 }
Example #2
0
 protected virtual void BundleChanged(object sender, EventArgs e)
 {
     _cache.RemoveAllAsync(_id, ((IBundleModel)sender).Path, _shutdownToken).GetAwaiter().GetResult();
 }