示例#1
0
 public IndexController(IndexConfiguration configuration, IFrameworkContext frameworkContext)
 {
     Configuration = configuration;
     FrameworkContext = frameworkContext;
     _manualResetter = new ManualResetEvent(false);
     Queue = new IndexModificationQueue();
 }
        public override void TestSetUp()
        {
            var serializer = new ServiceStackSerialiser();

            _frameworkContext = new FakeFrameworkContext(serializer);
            _configuration = new IndexConfiguration(GetPathForTest());
            var controller = new IndexController(_configuration, _frameworkContext);

            CacheProvider = new CacheProvider(controller, false);
        }
示例#3
0
 public IndexReader(IndexConfiguration indexConfiguration, global::Lucene.Net.Index.IndexReader indexReader)
 {
     _indexReader = indexReader;
     _indexConfiguration = indexConfiguration;
 }
 public TransactionalIndexWorker(IndexConfiguration indexConfiguration, IndexWriter indexWriter)
 {
     this._indexConfiguration = indexConfiguration;
     this._indexWriter = indexWriter;
 }
示例#5
0
 public IndexController(IndexConfiguration configuration, Func<IFrameworkContext> frameworkContextGetter)
     : this(configuration, (IFrameworkContext)null)
 {
     _frameworkContextGetter = frameworkContextGetter;
 }