Exemplo n.º 1
0
            public Task AppendAsync(DateTime timestamp, TValues value, string tag = null)
            {
                if (value is ICollection <double> doubles)
                {
                    return(AppendAsyncInternal(timestamp, doubles, tag));
                }

                var values = TimeSeriesValuesHelper.GetValues(value).ToArray();

                return(AppendAsyncInternal(timestamp, values, tag));
            }
Exemplo n.º 2
0
        public void Append <TValues>(DateTime timestamp, TValues value, string tag = null)
        {
            if (value is IEnumerable <double> doubles)
            {
                Append(timestamp, doubles, tag);
                return;
            }

            var values = TimeSeriesValuesHelper.GetValues(value);

            Append(timestamp, values, tag);
        }