namespace InnovEnergy.Lib.Channels.V2.Connections; public static class Connection { public static IChannel CreateChannel(this IConnection connection, Func> read, Func write) { return new GenericChannel(connection, read, write); } }