public Connection(Settings settings) { this.stopEvent = new AutoResetEvent(false); CurrentSettings = settings; IsStarted = false; }
public Connection(Settings settings) { CurrentSettings = settings; IsStarted = false; SerialPortBufferLock = new object(); NamedPipeBufferLock = new object(); SerialPortBuffer = new byte[65535]; NamedPipeBuffer = new byte[65535]; SerialPortBufferLength = 0; NamedPipeBufferLength = 0; }