Example #1
0
        public IEnumerable <IMacro> GetAllByAlias(string[] aliases)
        {
            if (aliases.Any() is false)
            {
                return(base.GetMany());
            }

            return(_macroByAliasCachePolicy.GetAll(aliases, PerformGetAllByAlias));
        }
Example #2
0
 public TEntity[] GetAll(TId[] ids, Func <TId[], IEnumerable <TEntity> > performGetAll)
 {
     // loads into the local cache only, ok for now
     return(_cachePolicy.GetAll(ids, performGetAll));
 }