/// <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; }
/// <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); } }