/// <summary>
        /// Initializes a new instance of the <see cref="HistoryMessageAdapter"/>.
        /// </summary>
        /// <param name="transactionIdGenerator">Transaction id generator.</param>
        public HistoryMessageAdapter(IdGenerator transactionIdGenerator)
            : base(transactionIdGenerator)
        {
            BasketStorage = new BasketMarketDataStorage <Message>();

            StartDate = DateTimeOffset.MinValue;
            StopDate  = DateTimeOffset.MaxValue;
        }
Пример #2
0
            public BasketMarketDataSerializer(BasketMarketDataStorage <T> parent)
            {
                if (parent == null)
                {
                    throw new ArgumentNullException(nameof(parent));
                }

                _parent = parent;
            }
Пример #3
0
        /// <summary>
        /// Создать <see cref="HistoryMessageAdapter"/>.
        /// </summary>
        /// <param name="transactionIdGenerator">Генератор идентификаторов транзакций.</param>
        public HistoryMessageAdapter(IdGenerator transactionIdGenerator)
            : base(transactionIdGenerator)
        {
            BasketStorage = new BasketMarketDataStorage <Message>();
            BasketStorage.InnerStorages.Add(new InMemoryMarketDataStorage <TimeMessage>(d => GetTimeLine(d)));

            StartDate = DateTimeOffset.MinValue;
            StopDate  = DateTimeOffset.MaxValue;
        }
Пример #4
0
 public BasketMarketDataSerializer(BasketMarketDataStorage <TMessage> parent)
 {
     _parent = parent ?? throw new ArgumentNullException(nameof(parent));
 }