简体   繁体   English

ASP.NET核心模块位于IIS的前面吗?

[英]Is the ASP.NET Core Module in front of IIS?

I am using Visual Studio 2019 RC and ASP .NET Core 2.2. 我正在使用Visual Studio 2019 RC和ASP .NET Core 2.2。 This by default is using the InProcess hosting model. 默认情况下,这是使用InProcess托管模型。 Reading up on this a little bit, I found this official documentation: 通过仔细阅读,我找到了这个官方文档:

For in-process, CreateDefaultBuilder calls UseIIS to:
[...]
Configure the port and base path the server should 
listen on when running behind the ASP.NET Core Module.

from https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2#hosting-models 来自https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2#hosting-models

What makes me perplex on this is the last line clamining that IIS is running behind the ASP.NET Core Module. 令我感到困惑的是,IIS在ASP.NET Core Module后面运行的最后一行问题。 I can't quite imagine that this is true. 我无法想象这是真的。 When I call my ASP .NET page on http://localhost:<iisport> , obviously the first thing I hit is the IIS? 当我在http://localhost:<iisport>上调用ASP .NET页面时,显然我遇到的第一件事是IIS?

Yes it hits IIS first, as long as you are hosting your asp.net core application in IIS. 是的,只要您将asp.net核心应用程序托管在IIS中,它将首先打IIS。

The in process means your http request will be handled inside IIS request Pipeline just like classic asp.net, the only difference is that some of the IIS native module and all the IIS managed module won't be available in ASP.NET Core, refer to https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/modules?view=aspnetcore-2.2 . 进行中意味着您的http请求将在IIS请求管道中处理,就像经典的asp.net一样,唯一的区别是某些IIS本机模块和所有IIS托管模块在ASP.NET Core中不可用,请参阅到https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/iis/modules?view=aspnetcore-2.2

The out of process means your IIS will forward the request to asp.net core specific webserver called kestrel through a random port 进程中断意味着您的IIS将通过随机端口将请求转发到称为kestrel的asp.net核心特定的Web服务器

Alternatively, if you really don't want your Application go through IIS pipeline, host your application in windows service is another choice. 另外,如果您真的不希望您的应用程序通过IIS管道,则将应用程序托管在Windows服务中是另一种选择。 Refer to : https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-2.2 请参阅: https : //docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-2.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM