2016-06-18 18:30:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PettingZoo.Model
|
2016-06-18 14:50:32 +00:00
|
|
|
|
{
|
2016-06-20 10:30:03 +00:00
|
|
|
|
public class MessageReceivedEventArgs : EventArgs
|
|
|
|
|
{
|
|
|
|
|
public MessageInfo MessageInfo { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public MessageReceivedEventArgs(MessageInfo messageInfo)
|
|
|
|
|
{
|
|
|
|
|
MessageInfo = messageInfo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-06-18 18:30:12 +00:00
|
|
|
|
public interface IConnection : IDisposable
|
2016-06-18 14:50:32 +00:00
|
|
|
|
{
|
2016-06-20 10:30:03 +00:00
|
|
|
|
event EventHandler<MessageReceivedEventArgs> MessageReceived;
|
2016-06-18 14:50:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|