using RabbitMQ.Client; using RabbitMQ.Client.Events; namespace QYZH.InteractiveMagazine.Infrastructure.RabbitMQ { public interface IRabbitMQService { Task SendAsync(RabbitMQSendParam param, CancellationToken cancellationToken = default); Task SendBatchAsync(IEnumerable @params, CancellationToken cancellationToken = default); Task ReceiveAsync(string exchange, string queueName, string routingKey, Func callback, CancellationToken cancellationToken = default); } }