public static DataUpdateHelper GetDataUpdateHelper_BiaoPuYongHua() { string pluginPath = DataUpdateConst.PLUGINPATH; string srcDataPath = DataUpdateConst.SRCDATAPATH_BIAOPUYONGHUA; UpdatedDataLoader updatedDataLoader = new UpdatedDataLoader(pluginPath); IDataProvider dataProvider = new DataProvider_BiaoPuYongHua(srcDataPath, pluginPath); DataUpdateHelper dataUpdateHelper = new DataUpdateHelper(pluginPath, updatedDataLoader, dataProvider); return(dataUpdateHelper); }
private DataUpdateHelper GetDataUpdateHelper() { string pluginPath = DataUpdateConst.PLUGINPATH; //string srcDataPath = DataUpdateConst.SRCDATAPATH_BIAOPUYONGHUA; string srcDataPath = DataUpdateConst.SRCDATAPATH_JINSHUYUAN; UpdatedDataLoader updatedDataLoader = new UpdatedDataLoader(); IDataProvider dataProvider = new DataProvider_JinShuYuan(srcDataPath, pluginPath); return(new DataUpdateHelper(pluginPath, updatedDataLoader, dataProvider)); }
/// <summary> /// 创建数据更新帮助类 /// </summary> /// <param name="updatedDataLoader">已更新数据读取器</param> /// <param name="dataProvider">新数据提供器</param> public DataUpdateHelper(string pluginPath, UpdatedDataLoader updatedDataLoader, IDataProvider dataProvider) { this.updatedDataPath = updatedDataLoader.GetUpdatedDataPath(); this.updatedDataLoader = updatedDataLoader; this.dataProvider = dataProvider; DataLoader_Variety dataLoader_Variety = new DataLoader_Variety(pluginPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginPath, dataLoader_Variety); this.dataLoader_Variety = new DataLoader_Variety(pluginPath); this.generator_Main = new DataGenerator_TickData_Main(this); this.generator_Index = new DataGenerator_TickData_Index(this); }