/// <summary> /// Creates the simplified nuclear storage wrapper around Atomic storage. /// </summary> /// <param name="dictionary">The dictionary.</param> /// <param name="strategy">The atomic storage strategy.</param> /// <returns></returns> public static NuclearStorage CreateNuclear(MemStore dictionary, IAtomicStorageStrategy strategy) { var factory = new MemoryAtomicStorageFactory(dictionary, strategy); factory.Initialize(); return(new NuclearStorage(factory)); }
/// <summary> /// Creates the simplified nuclear storage wrapper around Atomic storage. /// </summary> /// <param name="dictionary">The dictionary.</param> /// <param name="strategy">The atomic storage strategy.</param> /// <returns></returns> public static NuclearStorage CreateNuclear(this MemoryAccount dictionary, IAtomicStorageStrategy strategy) { var factory = new MemoryAtomicStorageFactory(dictionary.Data, strategy); factory.Initialize(); return new NuclearStorage(factory); }