1631786ce2
Add push contracts, provider delivery and channel diagnostics. Link email channels to services and document migration and validation. Ref: IT-1074
15 lines
779 B
C#
15 lines
779 B
C#
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
|
|
|
namespace HrynCo.NotificationService.DAL.Abstract.Repositories;
|
|
|
|
public interface IEmailChannelRepository
|
|
{
|
|
Task<IReadOnlyList<EmailChannel>> GetAllAsync(CancellationToken ct = default);
|
|
Task<IReadOnlyList<EmailChannel>> GetByServiceAsync(Guid serviceId, CancellationToken ct = default);
|
|
Task<EmailChannel?> GetByIdAsync(Guid id, CancellationToken ct = default);
|
|
Task<IReadOnlyList<ChannelWithUsage>> GetAllWithUsageSummaryAsync(DateOnly today, CancellationToken ct = default);
|
|
Task AddAsync(EmailChannel channel, CancellationToken ct = default);
|
|
Task UpdateAsync(EmailChannel channel, CancellationToken ct = default);
|
|
Task DeleteAsync(EmailChannel channel, CancellationToken ct = default);
|
|
}
|