public void AsyncJsonCommand(string cmd, Object parameter) { var commandInfo = new JsonCommandInfo { Command = cmd, Parameter = parameter }; var bw = new BackgroundWorker(); bw.DoWork += AsyncJsonCommandWorker; bw.RunWorkerAsync(commandInfo); }