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

11 lines
333 B
C#
Raw Normal View History

namespace InnovEnergy.Lib.Channels.V2.Bak.Connections;
2023-02-16 12:57:06 +00:00
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);
}
}