コード例 #1
0
ファイル: MvxPlus.cs プロジェクト: showmap/smartwalk
        private static IMvxFileDownloadCache CreateFileDownloadCache(
            MvxDownloadCacheConfiguration config)
        {
            var downloadCache = new MvxFileDownloadCache(
                config.CacheName,
                config.CacheFolderPath,
                config.MaxFiles,
                config.MaxFileAge);

            return(downloadCache);
        }
コード例 #2
0
ファイル: MvxPlus.cs プロジェクト: showmap/smartwalk
        public static IMvxResizedImageCache <UIImage> CreateResizedImageCache(
            MvxDownloadCacheConfiguration config)
        {
            var fileDownloadCache = CreateFileDownloadCache(config);
            var fileCache         = new MvxResizedImageCache <UIImage>(
                fileDownloadCache,
                config.MaxInMemoryFiles,
                config.MaxInMemoryBytes,
                false);

            return(fileCache);
        }