Exemplo n.º 1
0
        public async Task Handle(PreferenceSavedNotification notification, CancellationToken cancellationToken)
        {
            if (notification.IsNewCategory)
            {
                await _cacheEntryTracker.SetState(CacheConstants.CategoryCache,
                                                  CacheEntryState.New, cancellationToken);
            }

            await _cacheEntryTracker.SetState(CacheConstants.PreferenceCache,
                                              CacheEntryState.New, cancellationToken);
        }
Exemplo n.º 2
0
 public async Task Handle(AttributeSavedNotification notification, CancellationToken cancellationToken)
 {
     if (notification.IsNewAttribute)
     {
         await _cacheEntryTracker.SetState(CacheConstants.AttributeCache, CacheEntryState.New, cancellationToken);
     }
 }