25 lines
541 B
C#
25 lines
541 B
C#
![]() |
namespace Modbus.Device
|
|||
|
{
|
|||
|
using System;
|
|||
|
|
|||
|
internal class TcpConnectionEventArgs : EventArgs
|
|||
|
{
|
|||
|
public TcpConnectionEventArgs(string endPoint)
|
|||
|
{
|
|||
|
if (endPoint == null)
|
|||
|
{
|
|||
|
throw new ArgumentNullException(nameof(endPoint));
|
|||
|
}
|
|||
|
|
|||
|
if (endPoint == string.Empty)
|
|||
|
{
|
|||
|
throw new ArgumentException(Resources.EmptyEndPoint);
|
|||
|
}
|
|||
|
|
|||
|
EndPoint = endPoint;
|
|||
|
}
|
|||
|
|
|||
|
public string EndPoint { get; set; }
|
|||
|
}
|
|||
|
}
|