public Utf8JsonWriter( IQuickSocket quickSocket, IFramingStrategy framingStrategy) { QuickSocket = quickSocket; FramingStrategy = framingStrategy; MessageChannel = Channel.CreateUnbounded <TSend>(); MessageChannelWriter = MessageChannel.Writer; MessageChannelReader = MessageChannel.Reader; }
public Utf8JsonReader( IQuickListeningSocket quickListeningSocket, IFramingStrategy framingStrategy) { QuickListeningSocket = quickListeningSocket; FramingStrategy = framingStrategy; MessageChannel = Channel.CreateUnbounded <TRead>(); MessageChannelReader = MessageChannel.Reader; }
public ByteWriter( IQuickSocket quickSocket, IFramingStrategy framingStrategy) { QuickSocket = quickSocket; FramingStrategy = framingStrategy; MessageChannel = Channel.CreateUnbounded <byte[]>(); MessageChannelWriter = MessageChannel.Writer; MessageChannelReader = MessageChannel.Reader; }