persistence/Persistence/Repositories/ITimestampedSetRepository.cs
2024-11-22 17:52:15 +05:00

11 lines
683 B
C#

using Persistence.Models;
namespace Persistence.Repositories;
public interface ITimestampedSetRepository
{
Task<int> Count(Guid idDiscriminator, CancellationToken token);
Task<IEnumerable<TimestampedSetDto>> Get(Guid idDiscriminator, DateTimeOffset? geTimestamp, IEnumerable<string>? props, int skip, int take, CancellationToken token);
Task<DatesRangeDto?> GetDatesRange(Guid idDiscriminator, CancellationToken token);
Task<IEnumerable<TimestampedSetDto>> GetLast(Guid idDiscriminator, IEnumerable<string>? props, int take, CancellationToken token);
Task<int> InsertRange(Guid idDiscriminator, IEnumerable<TimestampedSetDto> sets, CancellationToken token);
}