public RefitRestServiceCachingDecorator(IRestService decoratedRestService, IPersistedCache persistedCache, RefitCacheController refitCacheController)
 {
     this.persistedCache   = persistedCache;
     _decoratedRestService = decoratedRestService;
     _refitCacheController = refitCacheController;
 }
Exemplo n.º 2
0
 private RefitCacheService()
 {
     _refitCacheController = new RefitCacheController();
     persistedCache = new AkavachePersistedCache();
 }
 public RefitRestServiceCachingDecorator(IRestService decoratedRestService, RefitCacheController cacheController)
     : this(decoratedRestService, new AkavachePersistedCache(), cacheController)
 {
 }