private const string _delimiter = "\x29"; // ")" public ResponseValidator(byte id, DataValidation dataValidation, ChristieProjectorProtocol protocol) : base(id, dataValidation) { Id = id; DataValidation = dataValidation; _protocol = protocol; }
public void Initialize(IPAddress ipAddress, int port) { var tcpTransport = new TcpTransport { EnableAutoReconnect = EnableAutoReconnect, EnableLogging = InternalEnableLogging, CustomLogger = InternalCustomLogger, EnableRxDebug = InternalEnableRxDebug, EnableTxDebug = InternalEnableTxDebug, }; tcpTransport.Initialize(ipAddress, port); ConnectionTransport = tcpTransport; DisplayProtocol = new ChristieProjectorProtocol(ConnectionTransport, Id) { EnableLogging = InternalEnableLogging, EnableStackTrace = InternalEnableStackTrace, CustomLogger = InternalCustomLogger, }; DisplayProtocol.StateChange += StateChange; DisplayProtocol.RxOut += SendRxOut; DisplayProtocol.Initialize(DisplayData); }