Exemple #1
0
 public CreateIndexTask(string indexSavePath, DoWorkStyle style, Action <T, Document> addDocAction)
 {
     _indexSavePath = indexSavePath;
     _style         = style;
     _addDocAction  = addDocAction;
 }
        public void AddWork <T>(string key, string indexSavePath, DoWorkStyle style, Action <T, Document> addDocAction) where T : BaseEntity <T>, new()
        {
            IWork work = new CreateIndexTask <T>(indexSavePath, style, addDocAction);

            _works.TryAdd(key, work);
        }