private void bgThread_RebootComputer(object sender, DoWorkEventArgs e) { // Background thread to reboot the target computer. e.Result = RemoteTask.TaskRebootComputer(e.Argument as string); }