private HistoryElementUpdate Create(string assetId, Contract.TimeInterval timeInterval, DateTime timestamp, decimal value) { var result = new HistoryElementUpdate { AssetId = assetId, HistoryElement = new HistoryElement { Timestamp = timestamp, Value = value }, TimeInterval = timeInterval }; return(result); }
public void Publish(HistoryElementUpdate historyElementUpdate, string indexName) { _publisher.ProduceAsync(historyElementUpdate); _log.Info($"Published '{indexName}' {historyElementUpdate.TimeInterval} update: {historyElementUpdate.ToJson()}."); }