예제 #1
0
        public virtual void UpdateCachedResult <TCacheEntryOptions>(ISyncCachedQuery <TCacheEntryOptions> executedQuery)
        {
            if (executedQuery == null)
            {
                throw new ArgumentNullException(nameof(executedQuery));
            }

            executedQuery.UpdateCachedResult(GetSyncQueryCache <TCacheEntryOptions>());
        }
예제 #2
0
        /// <inheritdoc cref="ISyncCacheManager.UpdateCachedResult{TCacheEntryOptions}"/>
        public virtual void UpdateCachedResult <TCacheEntryOptions>(ISyncCachedQuery <TCacheEntryOptions> executedQuery)
        {
            if (executedQuery == null)
            {
                throw new ArgumentNullException(nameof(executedQuery));
            }

            Decorator.Decorate(GetOperationName(executedQuery, nameof(executedQuery.UpdateCachedResult)), () => executedQuery.UpdateCachedResult(GetSyncCacheStore <TCacheEntryOptions>()));
        }