13 lines
257 B
C#
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>>
|
||
|
{}
|