public SerialFunctionDispatcher(SerialTransceiver transceiver, ParameterParser parser) { this.Parser = parser; this.Transceiver = transceiver; }
public SerialFunctionProcessor() : base() { this.Transceiver = new SerialTransceiver("COM20", 9600, 8, StopBits.One, Parity.None, OnLineReceived, true); this.Dispatcher = new SerialFunctionDispatcher(Transceiver, Parameters); }