public ITradingTimeReader_Code CreateTradingTimeReader(string code) { IList <ITradingTime> sessions = tradingTimeStore.Load(code); CacheUtils_TradingTime cache = new CacheUtils_TradingTime(code, sessions); return(cache); }
public TradingTimeReader(string code, ITradingTimeStore tradingSessionStore) { this.code = code; this.tradingSessionStore = tradingSessionStore; this.cache = new CacheUtils_TradingTime(code, tradingSessionStore.Load(code)); }