Exemplo n.º 1
0
        private static IMvxFileDownloadCache CreateFileDownloadCache(
            MvxDownloadCacheConfiguration config)
        {
            var downloadCache = new MvxFileDownloadCache(
                config.CacheName,
                config.CacheFolderPath,
                config.MaxFiles,
                config.MaxFileAge);

            return(downloadCache);
        }
Exemplo n.º 2
0
        public static IMvxResizedImageCache <UIImage> CreateResizedImageCache(
            MvxDownloadCacheConfiguration config)
        {
            var fileDownloadCache = CreateFileDownloadCache(config);
            var fileCache         = new MvxResizedImageCache <UIImage>(
                fileDownloadCache,
                config.MaxInMemoryFiles,
                config.MaxInMemoryBytes,
                false);

            return(fileCache);
        }