Innovenergy_trunk/csharp/Lib/Protocols/Modbus/Channels/NullChannel.cs

14 lines
310 B
C#

namespace InnovEnergy.Lib.Protocols.Modbus.Channels;
public class NullChannel : Channel
{
public override IReadOnlyList<Byte> Read(Int32 nBytes) => throw new NullChannelException();
public override void Write(IReadOnlyList<Byte> bytes)
{
}
}
public class NullChannelException : Exception
{
}