private RefitCacheService() { _refitCacheController = new RefitCacheController(); persistedCache = new AkavachePersistedCache(); }
/// <summary> /// By default it is using Akavache - if you're writting unit tests you can substitute it with your mock. /// </summary> /// <param name="persistedCache">Persisted cache.</param> public void SetPersistedCache(IPersistedCache persistedCache) { this.persistedCache = persistedCache; }
public RefitRestServiceCachingDecorator(IRestService decoratedRestService, IPersistedCache persistedCache, RefitCacheController refitCacheController) { this.persistedCache = persistedCache; _decoratedRestService = decoratedRestService; _refitCacheController = refitCacheController; }