Exemplo n.º 1
0
        internal ChannelMessageReader(
            IChannelMessageStream channelMessageStream,
            IChannelMessageSerializer channelMessageSerializer,
            IChannelMessageHandler inboundHandler,
            ITaskLauncher taskLauncher)
        {
            if (channelMessageStream == null)
            {
                throw new ArgumentNullException(nameof(channelMessageStream));
            }
            if (channelMessageSerializer == null)
            {
                throw new ArgumentNullException(nameof(channelMessageSerializer));
            }
            if (inboundHandler == null)
            {
                throw new ArgumentNullException(nameof(inboundHandler));
            }
            if (taskLauncher == null)
            {
                throw new ArgumentNullException(nameof(taskLauncher));
            }

            m_ChannelMessageStream     = channelMessageStream;
            m_ChannelMessageSerializer = channelMessageSerializer;
            m_InboundHandler           = inboundHandler;
            m_TaskLauncher             = taskLauncher;
        }
Exemplo n.º 2
0
 public ChannelMessageWriter(IChannelMessageStream channelMessageStream, IChannelMessageSerializer channelMessageSerializer)
 {
     m_ChannelMessageStream     = channelMessageStream;
     m_ChannelMessageSerializer = channelMessageSerializer;
 }