Example #1
0
 public void Add(TKey key, TMarketData data)
 => _data.SyncDo(d => d.SafeAdd(key).Add(data));
Example #2
0
            ///// <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));
            }
Example #3
0
 /// <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));
 }