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

13 lines
257 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
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>>
{}