public CachedMongoStorage(
     MongoCollection <TModel> collection,
     IInmemoryCollection <TModel, TKey> inmemoryCollection
     )
 {
     _storage            = new MongoStorage <TModel, TKey>(collection);
     _inmemoryCollection = inmemoryCollection;
 }
예제 #2
0
 public CachedMongoStorage(
     IMongoCollection <TModel> collection,
     IInmemoryCollection <TModel, TKey> inmemoryCollection
     )
 {
     _storage            = new MongoStorage <TModel, TKey>(collection);
     _inmemoryCollection = inmemoryCollection;
     _indexes            = new IndexCollection(_inmemoryCollection);
 }
예제 #3
0
 public IndexCollection(IInmemoryCollection <TModel, TKey> collection)
 {
     _collection = collection;
 }
예제 #4
0
 public void SetUp()
 {
     _context            = new RebuildContext(false);
     _inmemoryCollection = _context.GetCollection <SampleReadModelWithStringKey, string>("sample", false);
 }