public static FileStorageCacheService Create(string baseFolder)
        {
            var cacheKey = "filestorage-" + baseFolder;
            var fileStorage = HttpContext.Current.Cache[cacheKey] as FileStorageCacheService;

            if (fileStorage != null) return fileStorage;
            lock (_LockObject)
            {
                fileStorage = HttpContext.Current.Cache[cacheKey] as FileStorageCacheService;
                if (fileStorage == null)
                {
                    fileStorage = new FileStorageCacheService(baseFolder);
                    HttpRuntime.Cache.Insert(cacheKey, fileStorage, null);
                }
            }

            return fileStorage;
            //return new FileStorageCacheService(baseFolder);
        }
        public static FileStorageCacheService Create(string baseFolder)
        {
            var cacheKey    = "filestorage-" + baseFolder;
            var fileStorage = HttpContext.Current.Cache[cacheKey] as FileStorageCacheService;

            if (fileStorage != null)
            {
                return(fileStorage);
            }
            lock (_LockObject)
            {
                fileStorage = HttpContext.Current.Cache[cacheKey] as FileStorageCacheService;
                if (fileStorage == null)
                {
                    fileStorage = new FileStorageCacheService(baseFolder);
                    HttpRuntime.Cache.Insert(cacheKey, fileStorage, null);
                }
            }

            return(fileStorage);
            //return new FileStorageCacheService(baseFolder);
        }