public void SendCommandAsync(MsregInputCommand inputCommand) { Task.Factory.StartNew(() => { SendCommand(inputCommand); }); }
private void SendCommandFast(MsregInputCommand inputCommand) { _target?.Write(new[] {(byte) inputCommand}, 0, 1); }
public void SendCommand(MsregInputCommand inputCommand) { lock (_commandSendLock) { TryToSyncSignal(); SendCommandFast(inputCommand); } }