/// <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)); }
/// <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); }