Ejemplo n.º 1
0
 private void Action(ILifetimeScope arg1, IAfEvent arg2, BusMessage sourceMessage)
 {
     if (arg2 is SmallCacheExpiredEvent evt &&
         sourceMessage.SenderId != _afEventHub.AfEventHubId)
     {
         _logger.LogInformation("cache expired and remove it");
         _smallCache.Remove(evt.CacheKey);
     }
 }
 public void Handle(IAfEvent afEvent)
 {
     HandleCoreAsync((TEvent)afEvent);
 }