Esempio n. 1
0
            protected ICollection <ICache> GetCaches(ICacheOperationContext <CacheOperation> context, ICacheResolver cacheResolver)
            {
                var result = cacheResolver.CacheResolve(context);

                if (result.IsNullOrEmpty())
                {
                    throw new Exception("No cache could be resolved for '" +
                                        context.GetOperation() + "' using resolver '" + cacheResolver +
                                        "'. At least one cache should be provided per cache operation.");
                }
                return(result);
            }