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)); }
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); }