/// <summary> /// Construct a class with the specified index and term. /// </summary> /// <param name="PersistenceIndex">The parent index.</param> /// <param name="Term">The term.</param> public IndexTermExtended(PersistenceIndex PersistenceIndex, string Term) { this.PersistenceIndex = PersistenceIndex; this.Type = PersistenceIndex.Type; this.Term = Term; }
/// <summary> /// Construct a new index term for the specified persistence store. /// </summary> /// <param name="PersistenceStore">Store to add index term to.</param> public MeshIndexTerm(PersistenceStore PersistenceStore) { this.PersistenceStore = PersistenceStore; UserProfilesByAccount = PersistenceStore.GetIndex(KeyUserProfile); IndexUniqueID = PersistenceStore.GetIndex(UniqueID); }
/// <summary> /// Add a key to the persistence store index /// </summary> /// <param name="Index">Index to add key to</param> /// <param name="Data">Data to add.</param> public void AddKey(PersistenceIndex Index, string Data) { if (Keys == null) Keys = new List<IndexTerm>(); var IndexTerm = new IndexTermExtended(Index, Data); Keys.Add(IndexTerm); }