dotnet/aspnetcore

Detect IIS in-proc from UseKestrel

开放

#13,145 创建于 2019年8月14日

 (4 条评论) (0 个反应) (0 位负责人)C# (10,653 个派生)batch import
affected-very-fewarea-networkingenhancementhelp wantedseverity-nice-to-have

仓库指标

星标
 (37,933 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Today, if you call UseIIS and UseKestrel, we detect this case and if you're running in-proc we throw. We should consider moving this check in to kestrel itself. The layering isn't the cleanest but it's not a big deal to check if the process name is w3wp in UseKestrel. https://github.com/aspnet/AspNetCore/issues/12944 appears to be a customer getting into this situation.

We should also provide an override option for when you really know that you want to use Kestrel inside w3wp.

贡献者指南