Inheritance: IRepository
Exemplo n.º 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);
        }
 public void Init()
 {
     var path = Path.Combine(Environment.CurrentDirectory, PathString);
     var aleph = new AlephRepository(_imageCache);
     _listRepository = new LibraryListXmlRepository(aleph, new ImageRepository(aleph, _imageCache), path);
 }
Exemplo n.º 3
0
 public void InitRepository()
 {
     _repository = new AlephRepository(_imageCache, _pathToRulesFolder);
 }