コード例 #1
0
        protected volatile bool terminated;                  // necessary to stop the thread


        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public SerialPortChannelLogic(ILineContext lineContext, ChannelConfig channelConfig)
            : base(lineContext, channelConfig)
        {
            options     = new SerialPortChannelOptions(channelConfig.CustomOptions);
            requestArgs = new IncomingRequestArgs();

            serialConn = null;
            thread     = null;
            terminated = false;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmSerialPortChannelOptions(ChannelConfig channelConfig)
     : this()
 {
     this.channelConfig = channelConfig ?? throw new ArgumentNullException(nameof(channelConfig));
     options            = new SerialPortChannelOptions(channelConfig.CustomOptions);
 }