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); }
public async Task Handle(AttributeSavedNotification notification, CancellationToken cancellationToken) { if (notification.IsNewAttribute) { await _cacheEntryTracker.SetState(CacheConstants.AttributeCache, CacheEntryState.New, cancellationToken); } }