/
VFlov
/
NotificationService_1
Обзор
Документация
Войти
/
VFlov
/
NotificationService_1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/Shared/NotificationService.Shared/Interfaces/INotificationRepository.cs
15 строк
794 B
VFlov
first_commit
27 ноя 2025, 11:43
27 ноя 2025, 11:43
819df67
Код
Авторство
О чём код?
using NotificationService.Shared.Models; namespace NotificationService.Shared.Interfaces; /// <summary> /// Интерфейс репозитория уведомлений /// </summary> public interface INotificationRepository { Task<NotificationRecord> CreateAsync(NotificationRecord record, CancellationToken cancellationToken = default); Task<NotificationRecord?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default); Task UpdateAsync(NotificationRecord record, CancellationToken cancellationToken = default); Task<IEnumerable<NotificationRecord>> GetByStatusAsync(NotificationStatus status, CancellationToken cancellationToken = default); Task<IEnumerable<NotificationRecord>> GetFailedForRetryAsync(CancellationToken cancellationToken = default); }