Exemplo n.º 1
0
        /// <summary>
        /// DataClient
        /// </summary>
        /// <param name="httpClient"></param>
        /// <param name="fileCache"></param>
        /// <param name="context"></param>
        public DataClient(HttpClient httpClient, FileCacheBase fileCache)
        {
            if (httpClient == null)
            {
                throw new ArgumentNullException("httpClient");
            }

            if (fileCache == null)
            {
                throw new ArgumentNullException("fileCache");
            }

            _httpClient  = httpClient;
            _fileCache   = fileCache;
            _entityCache = new EntityCache();
        }
Exemplo n.º 2
0
 public CacheHandler(HttpMessageHandler innerHandler, FileCacheBase fileCache)
     : base(innerHandler)
 {
     _fileCache = fileCache;
 }