public async Task <ActionResult <HistoryExtract> > GetComponentStatusHistoryRaw(string componentUid, string statusUid, int year, int month, int day)
    {
        var readOperation = new HistoryReadOperation
        {
            Path           = _componentHistoryService.BuildComponentStatusHistoryPath(componentUid, statusUid),
            RangeStart     = new DateTime(year, month, day, 0, 0, 0),
            RangeEnd       = new DateTime(year, month, day, 23, 59, 59),
            MaxEntityCount = null
        };

        var result = await _historyService.Read(readOperation, HttpContext.RequestAborted).ConfigureAwait(false);

        return(new ObjectResult(result));
    }
Example #2
0
 public Task <List <HistoryValueElement> > Read(HistoryReadOperation readOperation, CancellationToken cancellationToken)
 {
     return(_historyRepository.Read(readOperation, cancellationToken));
 }