Exemplo n.º 1
0
 public async Task Invoke(HttpContext context, IJsonLocalizationCache cache)
 {
     await _next.Invoke(context);
     if (cache.Dirty)
     {
         _logger.LogInformation($"path={context.Request.Path} Dirty={cache.Dirty}");
         cache.SaveAll();
     }
 }