Inheritance: IRepository
コード例 #1
0
        public void InitRepository()
        {
            _basepath = Path.Combine(Environment.CurrentDirectory, @"..\..\..\Solvberget.Service\bin\App_Data");
            _dictPath = Path.Combine(_basepath, @"ordlister\ord_test.txt");
            _indexPath = Path.Combine(_basepath, @"ordlister_index");

            var documentRepository = new AlephRepository();
            _repository = new LuceneRepository(_indexPath, _dictPath, documentRepository);

            DictionaryBuilder.Build(_dictPath, _indexPath);
        }
コード例 #2
0
 public void Init()
 {
     var path = Path.Combine(Environment.CurrentDirectory, PathString);
     var aleph = new AlephRepository(_imageCache);
     _listRepository = new LibraryListXmlRepository(aleph, new ImageRepository(aleph, _imageCache), path);
 }
コード例 #3
0
 public void InitRepository()
 {
     _repository = new AlephRepository(_imageCache, _pathToRulesFolder);
 }