14 lines
537 B
C#
14 lines
537 B
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using StellaOps.Signals.Models;
|
|
|
|
namespace StellaOps.Signals.Persistence;
|
|
|
|
public interface IUnknownsRepository
|
|
{
|
|
Task UpsertAsync(string subjectKey, IEnumerable<UnknownSymbolDocument> items, CancellationToken cancellationToken);
|
|
Task<IReadOnlyList<UnknownSymbolDocument>> GetBySubjectAsync(string subjectKey, CancellationToken cancellationToken);
|
|
Task<int> CountBySubjectAsync(string subjectKey, CancellationToken cancellationToken);
|
|
}
|