Beispiel #1
0
        public Utf8JsonReader(
            IQuickListeningSocket quickListeningSocket,
            IFramingStrategy framingStrategy)
        {
            QuickListeningSocket = quickListeningSocket;
            FramingStrategy      = framingStrategy;

            MessageChannel       = Channel.CreateUnbounded <TRead>();
            MessageChannelReader = MessageChannel.Reader;
        }
Beispiel #2
0
        public ByteReader(
            IQuickListeningSocket quickListeningSocket,
            IFramingStrategy framingStrategy)
        {
            QuickListeningSocket = quickListeningSocket;
            FramingStrategy      = framingStrategy;

            MessageChannel       = Channel.CreateUnbounded <byte[]>();
            MessageChannelReader = MessageChannel.Reader;
        }