Innovenergy_trunk/csharp/lib/Channels/V2/Bak/Connections/Extensions.cs

11 lines
329 B
C#
Raw Normal View History

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