/
VFlov
/
NotificationService_1
Обзор
Документация
Войти
/
VFlov
/
NotificationService_1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/Shared/NotificationService.Shared/Interfaces/IMessageQueue.cs
12 строк
494 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 IMessageQueue { Task PublishAsync<T>(string queueName, T message, CancellationToken cancellationToken = default) where T : class; Task SubscribeAsync<T>(string queueName, Func<T, Task<bool>> handler, CancellationToken cancellationToken = default) where T : class; }