/// <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; }
public BasketMarketDataSerializer(BasketMarketDataStorage <T> parent) { if (parent == null) { throw new ArgumentNullException(nameof(parent)); } _parent = parent; }
/// <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; }
public BasketMarketDataSerializer(BasketMarketDataStorage <TMessage> parent) { _parent = parent ?? throw new ArgumentNullException(nameof(parent)); }