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; }
/// <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); }