Exemple #1
0
		public void A_channel()
		{
			_chunkWriter = new DelegateChunkWriter(chunk =>
				{
					string output = chunk.ToMemoryViewString();

					Trace.WriteLine(output);
				});

			_rawChannel = new SerializeChunkChannel(_chunkWriter, new FastTextSerializer());

			var chunkHeaderChannel = new Remote.MatchHeaderChannel(_rawChannel);

			_channel = new MessageHeaders.MatchHeaderChannel(chunkHeaderChannel);
		}
Exemple #2
0
        public void A_channel()
        {
            _chunkWriter = new DelegateChunkWriter(chunk =>
            {
                string output = chunk.ToMemoryViewString();

                Trace.WriteLine(output);
            });

            _rawChannel = new SerializeChunkChannel(_chunkWriter, new FastTextSerializer());

            var chunkHeaderChannel = new Remote.MatchHeaderChannel(_rawChannel);

            _channel = new MessageHeaders.MatchHeaderChannel(chunkHeaderChannel);
        }