public Maybe <T> Load(string id)
        {
            Loading(id);
            var entity = _decoretee.Load(id);

            if (entity.HasValue)
            {
                Loaded(entity.Value);
            }
            else
            {
                DidNotFind(id);
            }
            return(entity);
        }
Esempio n. 2
0
 public Maybe <T> Load(string id)
 {
     return(ImmutableInterlocked.GetOrAdd(ref _cache, id, i => _decoretee.Load(i)));
 }
Esempio n. 3
0
 public Maybe <Deal> Load(string id)
 {
     return(_dealReadWrite.Load(id));
 }