Beispiel #1
0
 public IMember GetByUsername(string username) =>
 _memberByUsernameCachePolicy.Get(username, PerformGetByUsername, PerformGetAllByUsername);
Beispiel #2
0
 public IMacro GetByAlias(string alias)
 {
     return(_macroByAliasCachePolicy.Get(alias, PerformGetByAlias, PerformGetAllByAlias));
 }
Beispiel #3
0
 public TEntity Get(TId id, Func <TId, TEntity> performGet, Func <TId[], IEnumerable <TEntity> > performGetAll)
 {
     // loads into the local cache only, ok for now
     return(_cachePolicy.Get(id, performGet, performGetAll));
 }
 public IMember GetByUsername(string username)
 {
     return(_memberByUsernameCachePolicy.Get(username, PerformGetByUsername, PerformGetAllByUsername));
 }
 public IMacro?GetByAlias(string alias) =>
 _macroByAliasCachePolicy.Get(alias, PerformGetByAlias, PerformGetAllByAlias);