public DataNavigate(IDataCenter dataCenter, string code, double time, int beforeDays, int afterDays) { this.dataCenter = dataCenter; this.dataNavigateFactory = dataCenter.DataNavigateFactory; this.dataReader = dataCenter.DataReader; this.beforeDays = beforeDays; this.afterDays = afterDays; this.Change(code, time); }
internal DataCenter(DataCenterInfo config) { this.dataStore = DataStoreFactory.CreateDataStore(this); this.dataReader = DataReaderFactory.CreateDataReader(this); this.dataPackageFactory = new DataPackageFactory(dataReader); this.codePackageFactory = new CodePeriodFactory(dataReader); this.historyDataForwardFactory = new DataForwardFactory(this); this.dataNavigateFactory = new DataNavigateFactory(this); this.accountFactory = new AccountManager(this, this.dataStore.CreateAccountStore()); }