Example #1
0
 /// <summary>
 /// Create instances for all engine services
 /// </summary>
 private void InitializeServices()
 {
     _cache       = new CacheService(_disk, _log);
     _locker      = new LockService(_disk, _cache, _timeout, _log);
     _pager       = new PageService(_disk, _crypto, _cache, _log);
     _indexer     = new IndexService(_pager, _log);
     _data        = new DataService(_pager, _log);
     _trans       = new TransactionService(_disk, _crypto, _pager, _locker, _cache, _cacheSize, _log);
     _collections = new CollectionService(_pager, _indexer, _data, _trans, _log);
 }
 internal TransactionService(IDiskService disk, AesEncryption crypto, PageService pager, LockService locker, CacheService cache, int cacheSize, Logger log)
 {
     _disk      = disk;
     _crypto    = crypto;
     _cache     = cache;
     _locker    = locker;
     _pager     = pager;
     _cacheSize = cacheSize;
     _log       = log;
 }