1
0
voyager-api/ScrapperAPI/Interfaces/ISessionRepository.cs

11 lines
374 B
C#

using ScrapperAPI.Dtos;
namespace ScrapperAPI.Interfaces;
public interface ISessionRepository
{
Task<int> CreateAsync(string name, CancellationToken ct);
Task<SessionRow?> FindByNameAsync(string name, CancellationToken ct);
Task<int?> GetIdByNameAsync(string name, CancellationToken ct);
Task<IReadOnlyList<SessionRow>> GetAllAsync(CancellationToken ct);
}