Beispiel #1
0
        private StorageRoot GetTempStorage(StorageOptions options = null)
        {
            var tempPath = Path.Combine(TempPath, Guid.NewGuid().ToString());
            var storage  = FileStorgeProvider.CreateStorage(tempPath, true, options);

            return(storage);
        }
Beispiel #2
0
        private StorageRoot GetTempStorage(bool useCache = true)
        {
            var options = new StorageOptions
            {
                CacheTimeout = useCache ? -1 : 0
            };

            var tempPath = Path.Combine(TempPath, Guid.NewGuid().ToString());
            var storage  = FileStorgeProvider.CreateStorage(tempPath, true, options);

            return(storage);
        }