예제 #1
0
        /// <summary> Creates the simplified nuclear storage wrapper around Atomic storage. </summary>
        /// <param name="storageConfig">The storage config.</param>
        /// <param name="strategy">The atomic storage strategy.</param>
        /// <returns></returns>
        public static NuclearStorage CreateNuclear(IAzureStorageConfig storageConfig, IAtomicStorageStrategy strategy)
        {
            var factory = new AzureAtomicStorageFactory(strategy, storageConfig);

            factory.Initialize();
            return(new NuclearStorage(factory));
        }
예제 #2
0
 /// <summary> Creates the simplified nuclear storage wrapper around Atomic storage. </summary>
 /// <param name="storageConfig">The storage config.</param>
 /// <param name="strategy">The atomic storage strategy.</param>
 /// <returns></returns>
 public static NuclearStorage CreateNuclear(IAzureStorageConfig storageConfig, IAtomicStorageStrategy strategy)
 {
     var factory = new AzureAtomicStorageFactory(strategy, storageConfig);
     factory.Initialize();
     return new NuclearStorage(factory);
 }