rv.PJLinkConnection.sendCommandAsync C# (CSharp) Method

sendCommandAsync() public method

Sends a command asynchronously. The specified resultCallback will be called when the command has executed.
public sendCommandAsync ( Command cmd, Command resultCallback ) : void
cmd Command
resultCallback Command
return void
        public void sendCommandAsync(Command cmd, Command.CommandResultHandler resultCallback)
        {
            System.Threading.Thread t = new System.Threading.Thread((System.Threading.ThreadStart)delegate
            {
                var response = sendCommand(cmd);
                resultCallback(cmd, response);
            });
            t.IsBackground = true;
            t.Start();
        }