コード例 #1
0
ファイル: ServerController.cs プロジェクト: navy235/adzhi
        public ActionResult Index()
        {
            BaseEfUnitOfWork content = new CodeFirstContext();
            LuceneIndexingService Service = new LuceneIndexingService(content);
            Service.UpdateIndex();

            return View();
        }
コード例 #2
0
ファイル: LuceneIndexingJob.cs プロジェクト: navy235/adzhi
 public LuceneIndexingJob(TimeSpan frequence, TimeSpan timeout)
     : base("Lucene", frequence, timeout)
 {
     _indexingService = new LuceneIndexingService();
     _indexingService.UpdateIndex();
 }
コード例 #3
0
ファイル: UnitTest1.cs プロジェクト: navy235/adzhi
 public void TestMethod3()
 {
     BaseEfUnitOfWork content = new CodeFirstContext();
     LuceneIndexingService Service = new LuceneIndexingService(content);
     Service.UpdateIndex();
 }