Mark van Renswoude
2755e93440
- Upgrade to .NET 5 - Split functionality into libraries - Tabbed interface for multiple subscribers - Placeholder for publishing tab
27 lines
535 B
C#
27 lines
535 B
C#
using System;
|
|
|
|
namespace PettingZoo.Core.Connection
|
|
{
|
|
public interface ISubscriber : IAsyncDisposable
|
|
{
|
|
string Exchange {get; }
|
|
string RoutingKey { get; }
|
|
|
|
event EventHandler<MessageReceivedEventArgs>? MessageReceived;
|
|
|
|
void Start();
|
|
}
|
|
|
|
|
|
public class MessageReceivedEventArgs : EventArgs
|
|
{
|
|
public MessageInfo MessageInfo { get; }
|
|
|
|
|
|
public MessageReceivedEventArgs(MessageInfo messageInfo)
|
|
{
|
|
MessageInfo = messageInfo;
|
|
}
|
|
}
|
|
}
|