I am building an MVC application that includes an asynchronous image upload so each image, once uploaded, calls the action. Image uploading can be cpu intensive and require time so we are trying to avoid in-action processing.
I have read about using async actions, but we are also processing images at other times, so we have opted to handle image processing through a console application.
What is the proper method for calling a console application from an MVC action asynchronously? Basically we just want to pass the console app some parameters, and tell it start without waiting for any kind of response from the console.
Our program file is an exe.
Speed is our main concern here.
Thanks so much for your help!
EDIT
As per Brian's suggestion here is what we added:
Process pcx = new System.Diagnostics.Process(); ProcessStartInfo pcix = new System.Diagnostics.ProcessStartInfo(); pcix.FileName = "C:\\utils_bin\\fileWebManager\\ppWebFileManager.exe"; pcix.Arguments = WrkGalId.ToString() + " " + websiteId.ToString() + "" + " " + "19" + " \"" + dFileName + "\" "; pcix.UseShellExecute = false; pcix.WindowStyle = ProcessWindowStyle.Hidden; pcx.StartInfo = pcix; pcx.Start();