11 lines
329 B
C#
11 lines
329 B
C#
|
namespace InnovEnergy.Lib.Channels.V2.Connections;
|
||
|
|
||
|
public static class Connection
|
||
|
{
|
||
|
public static IChannel<Rx, Tx> CreateChannel<C, Rx, Tx>(this IConnection<C> connection,
|
||
|
Func<C, Task<Rx>> read,
|
||
|
Func<C, Tx, Task> write)
|
||
|
{
|
||
|
return new GenericChannel<C, Rx, Tx>(connection, read, write);
|
||
|
}
|
||
|
}
|