Mark van Renswoude
2e6524f3b9
Added unread messages counter to deactivated subscriber tabs Added feature to reply to a new subscriber tab
28 lines
588 B
C#
28 lines
588 B
C#
using System;
|
|
|
|
namespace PettingZoo.Core.Connection
|
|
{
|
|
public interface ISubscriber : IAsyncDisposable
|
|
{
|
|
string? QueueName { get; }
|
|
string? Exchange {get; }
|
|
string? RoutingKey { get; }
|
|
|
|
event EventHandler<MessageReceivedEventArgs>? MessageReceived;
|
|
|
|
void Start();
|
|
}
|
|
|
|
|
|
public class MessageReceivedEventArgs : EventArgs
|
|
{
|
|
public ReceivedMessageInfo MessageInfo { get; }
|
|
|
|
|
|
public MessageReceivedEventArgs(ReceivedMessageInfo messageInfo)
|
|
{
|
|
MessageInfo = messageInfo;
|
|
}
|
|
}
|
|
}
|