8e81572386
Add revision-safe service and template APIs, channel mapping, and validated admin controls. Ref: IT-1601
14 lines
776 B
C#
14 lines
776 B
C#
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
|
|
|
namespace HrynCo.NotificationService.DAL.Abstract.Repositories;
|
|
|
|
public interface INotificationServiceRepository
|
|
{
|
|
Task<IReadOnlyList<NotificationServiceInfo>> GetAllAsync(CancellationToken ct = default);
|
|
Task<NotificationServiceInfo?> GetAsync(Guid id, CancellationToken ct = default);
|
|
Task<NotificationServiceInfo?> GetByNameAsync(string name, CancellationToken ct = default);
|
|
Task<bool> DeleteAsync(Guid id, Guid revision, CancellationToken ct = default);
|
|
Task SaveAsync(NotificationServiceInfo service, bool isNew, CancellationToken ct = default);
|
|
Task RemoveLanguageAsync(Guid serviceId, Guid languageId, int expectedVersionCount, Guid expectedRevision, CancellationToken ct = default);
|
|
}
|