Beispiel #1
0
 /// <summary>
 /// Creates a new Loader for the given top level folder
 /// </summary>
 public MyLoIndexer(IMyLoIndexer indexer)
 {
     _myLoStore = new MyLoDB();
     _count = 0;
     _userId = 0;
     _indexer = indexer;
 }
Beispiel #2
0
 /// <summary>
 /// Indexes a MyLo datastore using PostgreSQL function 'SetUpIndexCursors'
 /// </summary>
 /// <param name="userId">A validated MyLo Account Id</param>
 public int IndexDataStore(long userId, IMyLoIndexer indexer)
 {
     try
     {
         indexer.InitializeMyLoIndexer(userId, _conn, this);
         return indexer.ExecuteIndexerOnDataStore();
     }
     catch (Exception ex)
     {
         throw new MyLoDataStoreException(ex.Message);
     }
 }