Починил IMqService

This commit is contained in:
Mikhail Trubnikov
2023-09-26 11:01:20 +10:00
parent b915a7d8ac
commit 3d9777b7ec
7 changed files with 22 additions and 39 deletions

View File

@@ -3,13 +3,11 @@ using PARR.BLL.Domain.Mq;
namespace PARR.BLL.Services.Interfaces
{
public delegate void ReceivedHandler(string msg);
public delegate Task MqMessageHandlerDelegate(string msg);
public interface IMqService : IDisposable
{
event ReceivedHandler? Received;
bool InitConsumer(IMqSettings mqSettings);
bool InitConsumer(IMqSettings mqSettings, MqMessageHandlerDelegate test);
MqSendResult Send(IMqSettings mqSettings, string[] msgList);
}
}