Improve the errors around UseStartup/Configure - Today we throw a...
Improve the errors around UseStartup/Configure - Today we throw a NotSupportedException when you try to call any of the methods that register callbacks for wiring up the ASP.NET Core pipeline. Unfortunately, this conflicts with another NotSupportedException that doesn't make much sense. We fix this by delegating to ISupportsStartup before attempting to set the application name. - Improved the existing test (#36060)
Co-authored-by:
David Fowler <davidfowl@gmail.com>
显示
- src/DefaultBuilder/src/ConfigureHostBuilder.cs 1 个添加, 1 个删除src/DefaultBuilder/src/ConfigureHostBuilder.cs
- src/DefaultBuilder/src/ConfigureWebHostBuilder.cs 8 个添加, 3 个删除src/DefaultBuilder/src/ConfigureWebHostBuilder.cs
- src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebApplicationTests.cs 19 个添加, 7 个删除...er/test/Microsoft.AspNetCore.Tests/WebApplicationTests.cs
- src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs 35 个添加, 0 个删除src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs
- src/Hosting/Hosting/src/GenericHost/HostingStartupWebHostBuilder.cs 5 个添加, 0 个删除...g/Hosting/src/GenericHost/HostingStartupWebHostBuilder.cs
- src/Hosting/Hosting/src/Infrastructure/ISupportsStartup.cs 7 个添加, 0 个删除src/Hosting/Hosting/src/Infrastructure/ISupportsStartup.cs
- src/Hosting/Hosting/src/PublicAPI.Unshipped.txt 1 个添加, 0 个删除src/Hosting/Hosting/src/PublicAPI.Unshipped.txt
- src/Hosting/Hosting/src/WebHostBuilderExtensions.cs 34 个添加, 16 个删除src/Hosting/Hosting/src/WebHostBuilderExtensions.cs
- src/Hosting/Hosting/test/Fakes/GenericWebHostBuilderWrapper.cs 6 个添加, 0 个删除...osting/Hosting/test/Fakes/GenericWebHostBuilderWrapper.cs
加载中
想要评论请 注册 或 登录