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

14 lines
549 B
C#

using ScrapperAPI.Dtos;
namespace ScrapperAPI.Interfaces;
public interface IAgentRepository
{
Task UpsertAsync(string agentId, string? displayName, string certThumbprint, CancellationToken ct);
Task<bool> IsEnabledAsync(string agentId, CancellationToken ct);
Task<string?> GetThumbprintAsync(string agentId, CancellationToken ct);
Task TouchAsync(string agentId, CancellationToken ct);
Task<int> CountActiveAsync(TimeSpan seenWithin, CancellationToken ct);
Task<AgentRow?> GetAsync(string agentId, CancellationToken ct);
}