Фикс клиента TimestampedValuesClient
All checks were successful
Unit tests / test (push) Successful in 1m1s
All checks were successful
Unit tests / test (push) Successful in 1m1s
This commit is contained in:
parent
7b9947bb8c
commit
9b5465a742
@ -35,6 +35,17 @@ public interface ITimestampedValuesClient : IDisposable
|
||||
int take,
|
||||
CancellationToken token);
|
||||
|
||||
/// <summary>
|
||||
/// Получить данные с фильтрацией для нескольких систем. Значение фильтра null - отключен
|
||||
/// </summary>
|
||||
/// <param name="discriminatorId"></param>
|
||||
/// <param name="geTimestamp"></param>
|
||||
/// <param name="columnNames">Фильтр свойств набора</param>
|
||||
/// <param name="skip"></param>
|
||||
/// <param name="take"></param>
|
||||
/// <param name="token"></param>
|
||||
Task<IEnumerable<T>> Get<T>(Guid discriminatorId, DateTimeOffset? geTimestamp, IEnumerable<string>? columnNames, int skip, int take, CancellationToken token);
|
||||
|
||||
/// <summary>
|
||||
/// Получить данные, начиная с заданной отметки времени
|
||||
/// </summary>
|
||||
|
@ -39,6 +39,15 @@ public class TimestampedValuesClient : BaseClient, ITimestampedValuesClient
|
||||
return result!;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public async Task<IEnumerable<T>> Get<T>(Guid discriminatorId, DateTimeOffset? geTimestamp, IEnumerable<string>? columnNames, int skip, int take, CancellationToken token)
|
||||
{
|
||||
var data = await Get([discriminatorId], geTimestamp, columnNames, skip, take, token);
|
||||
var mapper = GetMapper<T>(discriminatorId);
|
||||
|
||||
return data.Select(mapper.DeserializeTimeStampedData);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public async Task<IEnumerable<TimestampedValuesDto>> GetGtDate(Guid discriminatorId, DateTimeOffset timestampBegin, CancellationToken token)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user