11 lines
333 B
C#
11 lines
333 B
C#
namespace InnovEnergy.Lib.Channels.V2.Bak.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);
|
|
}
|
|
} |