예제 #1
0
 public RelaxDemoService(ICouchServer couch, LuceneSearchClient client)
 {
     _couch           = couch;
     _databaseDeleter = new DatabaseDeleter(couch);
     _bulkPersister   = new BulkDataPersister(couch.Repository);
     _documentSaver   = new DocumentSaver(couch.Repository);
     _retriever       = new DocumentRetriever(couch.Repository);
     _pager           = new PagingDataLoader(couch.Repository);
     _bulkLoader      = new BulkDataLoader(couch.Repository);
     _watcher         = new ChangeWatcher(couch.Repository);
     _queryClient     = client;
 }
예제 #2
0
 public RelaxDemoService(ICouchServer couch)
 {
     _couch = couch;
     _databaseDeleter = new DatabaseDeleter(couch);
     _bulkPersister = new BulkDataPersister(couch.Repository);
     _documentSaver = new DocumentSaver(couch.Repository);
     _retriever = new DocumentRetriever(couch.Repository);
     _pager = new PagingDataLoader(couch.Repository);
     _bulkLoader = new BulkDataLoader(couch.Repository);
     _watcher = new ChangeWatcher(couch.Repository);
 }