예제 #1
0
파일: DataNavigate.cs 프로젝트: wanwei/sc2
 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());
 }