/// <summary> /// Creates a new instance of Snapshot and locks manager instance to take snapshot data. /// </summary> /// <param name="manager"></param> public SnapshotReader(Manager manager) { if (manager == null) throw new ArgumentNullException(nameof(manager)); this.synchronizer = new object(); manager.Acquire(); this.manager = manager; }
internal override void Initialize(Manager manager, IStrategyLog log, string symbol, PriceType priceType, BarPeriod periodicity) { if (manager == null) throw new ArgumentNullException("manager"); if (log == null) throw new ArgumentNullException("log"); this.manager = manager; this.log = log; this.symbol = symbol; this.priceType = priceType; this.periodicity = periodicity; this.manager.Updated += this.OnUpdated; }
internal abstract void Initialize(Manager manager, IStrategyLog log, string symbol, PriceType priceType, BarPeriod periodicity);