Beispiel #1
0
        static BaseDataStorage ImportCsv(IBDTaskHandler TaskHandler, string FilePathName)
        {
            var instruction = new IBDTaskInstruction("ImportCsv");

            instruction.parameters["FilePathName"] = FilePathName;
            TaskHandler.AddTask(instruction);

            ElasticsearchStorage es = new ElasticsearchStorage(new DataStorage.Processors.StockOptionQuoteProcessor());

            TaskHandler.OnTaskResult += es.ProcessTaskResult;

            return(es);
        }
 /// <summary>
 /// Add task to queue
 /// </summary>
 public void AddTask(IBDTaskInstruction Task)
 {
     _TaskQueue.Enqueue(Task);
 }