Based on my understanding:
If my asp.net application spawns a process for each request, does the process runs inside the same application domain in which the asp.net application runs?
Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(p_Exited);
p.StartInfo.Arguments = "-fmt=pdflatex -interaction=nonstopmode " + inputpath;
p.StartInfo.WorkingDirectory = dir;
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "pdftex.exe";
p.StartInfo.LoadUserProfile = true;
p.Start();
p.WaitForExit();
The simple answer is no. When you start a new process, a new process space is created and it is independent of your app domain. The spawned process may or may not be managed code and run as an independently process. It may inherit the security context of its creator if appropriate setting is defined.
No. An AppDomain can't exceed the boundary of the process it is inside.
Furthermore, AppDomains are a concept from the .NET world. If pdftex.exe
is a .NET application, it has its own AppDomain. If it isn't a .NET application, it doesn't have an AppDomain at all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.