public void Process() { IndexConfiguration = ReadConfiguration(); var markets = Configuration.GetSection("Markets").Get <string[]>(); markets = markets.Where(x => Markets == null || (Markets.Contains(x))).Select(x => x).ToArray(); foreach (var market in markets) { if (IndexConfiguration.DataSources.Length > 0) { Data = ReadData(market); if (Data != null && Data.Count > 0) { var result = Compare(market); if (result != null) { var model = BuildModel(result); if (model != null) { var isIndexBuild = BuildIndex(model); if (isIndexBuild) { AddToQueue(QueueObject); } } } } } } }
public void Process() { IndexConfiguration = ReadConfiguration(); var markets = Configuration.GetSection("Markets").Get <string[]>(); markets = markets.Where(x => Markets == null || (Markets.Contains(x))).Select(x => x).ToArray(); foreach (var market in markets) { if (IndexConfiguration.DataSources.Length > 0) { ReadDataResult = ReadData(market); if (ReadDataResult != null && ReadDataResult.Count > 0) { JArray result = Compare(ReadDataResult); if (result != null) { Model = BuildModel(result); //if (Model != null) //{ // var isIndexBuild = BuildIndex(Model); // if (isIndexBuild) // { // //AddToQueue(QueueObject); // } //} } } } } }