1
0
mirror of synced 2024-11-14 17:33:49 +00:00
PettingZoo/Model/IConnection.cs

22 lines
433 B
C#
Raw Normal View History

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
}
}