コード例 #1
0
        /// <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 NonserializingMemoryStorageConfig dictionary, IDocumentStrategy strategy)
        {
            var container = new NonserializingMemoryDocumentStore(dictionary.Data, strategy);

            return(new NuclearStorage(container));
        }
コード例 #2
0
 public void Setup()
 {
     _storeDictionary = new ConcurrentDictionary <string, ConcurrentDictionary <string, object> >();
     Store            = new NonserializingMemoryDocumentStore(_storeDictionary, new DocumentStrategy());
 }