Example #1
0
        /// <summary>
        /// Creates the simplified nuclear storage wrapper around Atomic storage.
        /// </summary>
        /// <param name="storageFolder">The storage folder.</param>
        /// <param name="strategy">The atomic storage strategy.</param>
        /// <returns></returns>
        public static NuclearStorage CreateNuclear(string storageFolder, IAtomicStorageStrategy strategy)
        {
            var factory = new FileAtomicStorageFactory(storageFolder, strategy);

            factory.Initialize();
            return(new NuclearStorage(factory));
        }
Example #2
0
        public static NuclearStorage CreateNuclear(this FileStorageConfig config, IAtomicStorageStrategy strategy)
        {
            var factory = new FileAtomicStorageFactory(config.FullPath, strategy);

            return(new NuclearStorage(factory));
        }
Example #3
0
        public static NuclearStorage CreateNuclear(this FileStorageConfig config, IAtomicStorageStrategy strategy)
        {
            var factory = new FileAtomicStorageFactory(config.FullPath, strategy);

            return new NuclearStorage(factory);
        }
Example #4
0
 /// <summary>
 /// Creates the simplified nuclear storage wrapper around Atomic storage.
 /// </summary>
 /// <param name="storageFolder">The storage folder.</param>
 /// <param name="strategy">The atomic storage strategy.</param>
 /// <returns></returns>
 public static NuclearStorage CreateNuclear(string storageFolder, IAtomicStorageStrategy strategy)
 {
     var factory = new FileAtomicStorageFactory(storageFolder, strategy);
     factory.Initialize();
     return new NuclearStorage(factory);
 }