dotnet/aspnetcore
在 GitHub 查看If one hosting startup class fails to execute, subsequent hosting startup classes defined in the assembly won't be executed.
Open
#5,902 建立於 2017年8月1日
affected-very-fewarea-hostingarea-networkingbughelp wantedseverity-minor
倉庫指標
- Star
- (37,933 star)
- PR 合併指標
- (平均合併 16天 9小時) (30 天內合併 258 個 PR)
描述
This should probably have a low priority, because I don't know of any real assemblies that define multiple hosting startup classes.
However, the order of attributes returned by Assembly.GetCustomAttributes<HostingStartupAttribute>() can affect whether or not a hosting startup class gets executed or not. It should also be trivial to fix.