示例#1
0
 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);
 }
示例#2
0
文件: DataCenter.cs 项目: wanwei/sc2
 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());
 }