protected volatile bool terminated; // necessary to stop the thread /// <summary> /// Initializes a new instance of the class. /// </summary> public TcpClientChannel(ILineContext lineContext, ChannelConfig channelConfig) : base(lineContext, channelConfig) { options = new TcpClientChannelOptions(channelConfig.CustomOptions); indivConnList = null; sharedConn = null; currentConn = null; thread = null; terminated = false; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public FrmTcpClientChannelOptions(ChannelConfig channelConfig) : this() { this.channelConfig = channelConfig ?? throw new ArgumentNullException(nameof(channelConfig)); options = new TcpClientChannelOptions(channelConfig.CustomOptions); }