2023-09-21 09:37:36 +10:00
|
|
|
|
using PARR.BLL.Contracts.Interfaces;
|
|
|
|
|
|
using PARR.BLL.Domain.Mq;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.BLL.Services.Interfaces
|
|
|
|
|
|
{
|
2023-09-26 11:01:20 +10:00
|
|
|
|
public delegate Task MqMessageHandlerDelegate(string msg);
|
2023-09-21 15:21:33 +10:00
|
|
|
|
|
2023-09-21 16:38:38 +10:00
|
|
|
|
public interface IMqService : IDisposable
|
2023-09-21 09:37:36 +10:00
|
|
|
|
{
|
2023-09-26 11:01:20 +10:00
|
|
|
|
bool InitConsumer(IMqSettings mqSettings, MqMessageHandlerDelegate test);
|
2023-09-21 09:37:36 +10:00
|
|
|
|
MqSendResult Send(IMqSettings mqSettings, string[] msgList);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|