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