Innovenergy_trunk/csharp/lib/Channels/V2/IChannel.cs

13 lines
257 B
C#

namespace InnovEnergy.Lib.Channels.V2;
public interface IChannel<Rx, in Tx>
{
public Task<Rx> Read();
public Task Write(Tx tx);
}
public interface IChannel<T> : IChannel<T, T>
{}
public interface IStreamChannel : IChannel<IReadOnlyList<Byte>>
{}