代码之家  ›  专栏  ›  技术社区  ›  sblandin

从web窗体启动的进程是否在IIS关闭应用程序时停止?

  •  0
  • sblandin  · 技术社区  · 7 年前

    System.Diagnostics.Process someProcess = new System.Diagnostics.Process();
    
    someProcess.StartInfo.WorkingDirectory = "path goes here";
    someProcess.StartInfo.UseShellExecute = true;
    someProcess.StartInfo.FileName = "SomeProcess.exe";
    someProcess.StartInfo.Arguments = "arguments goes there";
    
    someProcess.Start();
    

    该过程的持续时间可变,但运行时间有点长。

    IIS是否可能在进程完成之前关闭应用程序?

    1 回复  |  直到 7 年前
        1
  •  0
  •   CthenB    7 年前

    换句话说;这是你应该而且可以很容易地测试自己的东西。