Exemple #1
0
            public HistoryEmulationMessageChannel(HistoryMessageAdapter historyMessageAdapter, Action <Exception> errorHandler)
            {
                _historyMessageAdapter = historyMessageAdapter ?? throw new ArgumentNullException(nameof(historyMessageAdapter));
                _errorHandler          = errorHandler ?? throw new ArgumentNullException(nameof(errorHandler));

                _messageQueue.Close();
            }
Exemple #2
0
        /// <summary>
        /// Add inner market data storage.
        /// </summary>
        /// <param name="storage">Market data storage.</param>
        public void AddStorage(IMarketDataStorage storage)
        {
            if (storage == null)
            {
                throw new ArgumentNullException(nameof(storage));
            }

            _isChanged = true;
            _actions.Add(Tuple.Create(storage, true));

            _messageQueue.Close();
            _syncRoot.PulseSignal();
        }
            public HistoryEmulationMessageChannel(HistoryEmulationConnector parent)
            {
                _parent = parent ?? throw new ArgumentNullException(nameof(parent));

                _messageQueue = new MessagePriorityQueue();
                _messageQueue.Close();
            }
 public void Close()
 {
     _messageQueue.Close();
 }