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