15 lines
477 B
C#
15 lines
477 B
C#
using PARR.BLL.Contracts.Interfaces;
|
|
using PARR.BLL.Domain.Mq;
|
|
|
|
namespace PARR.BLL.Services.Interfaces
|
|
{
|
|
public delegate Task MqMessageHandlerDelegate(string msg);
|
|
|
|
public interface IMqService : IDisposable
|
|
{
|
|
MqQueueCountResult GetQueueCount(IMqSettings mqSettings, string queueName);
|
|
bool InitConsumer(IMqSettings mqSettings, MqMessageHandlerDelegate messageHandler);
|
|
MqSendResult Send(IMqSettings mqSettings, string[] msgList);
|
|
}
|
|
}
|