public void Add(Work work) { queue.Add(work); }
/// <summary> /// Does the work, after checking that the entity type is indeed indexed. /// </summary> /// <param name="entity"></param> /// <param name="id"></param> /// <param name="workType"></param> /// <param name="e"></param> protected void ProcessWork(Object entity, object id, WorkType workType, AbstractEvent e) { if (EntityIsIndexed(entity)) { Work work = new Work(entity, id, workType); searchFactory.Worker.PerformWork(work, e.Session); } }
public void PerformWork(object entity, object id, ISession session, WorkType workType) { Work work = new Work(entity, id, workType); worker.PerformWork(work, (ISessionImplementor) session); }