Exemple #1
0
 public CachedEntityReaderController(
     ILogger logger,
     ICachedEntityReader <TEntity> reader,
     IEntityMapper <TEntity, TDto> mapper)
     : base(logger, reader, mapper)
 {
 }
Exemple #2
0
 public CachedCustomersController(
     ILogger logger,
     ICachedEntityReader <Customer> reader,
     IEntityMapper <Customer, CustomerDto> mapper)
     : base(logger, reader, mapper)
 {
 }
 public CachedEntityReaderTests()
 {
     _reader = Resolver.Resolve <ICachedEntityReader <Customer> >();
     _reader.CacheConfigurator =
         config => config.SetAbsoluteExpiration(TimeSpan.FromSeconds(300));
 }