查看这些代码,它们具有相同的注释,表明它们执行相同的操作:
/// <summary>
/// Configures the port and base path the server should listen on when
/// running behind AspNetCoreModule. The app will also be configured
/// to capture startup errors.
/// </summary>
Run Code Online (Sandbox Code Playgroud)
UseIIS在Microsoft.AspNetCore.Server.IIS包中,而UseIISIntegration在中Microsoft.AspNetCore.Server.IISIntegration。
两者有什么区别?什么时候需要使用一个与另一个?(或两者皆有?)
更新: github上有一个类似的问题,但是那里没有有用的答案:https : //github.com/aspnet/AspNetCore/issues/6197