Exemple #1
0
        /// <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;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 internal abstract void Initialize(Manager manager, IStrategyLog log, string symbol, PriceType priceType, BarPeriod periodicity);