iotgateway/Plugins/Drivers/DriverModbusMaster/NModbus4/Device/TcpConnectionEventArgs.cs

25 lines
541 B
C#
Raw Normal View History

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