public void Add(TKey key, TMarketData data) => _data.SyncDo(d => d.SafeAdd(key).Add(data));
///// <summary> ///// The buffer size. ///// </summary> //public int Size { get; set; } /// <summary> /// To add new information to the buffer. /// </summary> /// <param name="key">The key possessing new information.</param> /// <param name="data">New information.</param> public void Add(TKey key, TMarketData data) { //Add(key, new[] { data }); _data.SyncDo(d => d.SafeAdd(key).Add(data)); }
/// <summary> /// To add new information to the buffer. /// </summary> /// <param name="key">The key possessing new information.</param> /// <param name="data">New information.</param> public void Add(TKey key, IEnumerable <TMarketData> data) { _data.SyncDo(d => d.SafeAdd(key).AddRange(data)); }