asp.net core mvc 2.0 - Why does UseHosting not strongly type requirements? -
i'm looking @ usestartup method in aspnetcore.hosting:
public static microsoft.aspnetcore.hosting.iwebhostbuilder usestartup<tstartup>(this microsoft.aspnetcore.hosting.iwebhostbuilder hostbuilder) aspnet hosting project.
the documentation here states: "the startup class must public , contain following methods:"
public void configureservices(iservicecollection services) { } public void configure(iapplicationbuilder app) { }
my question is, why isn't enforced in method signature usestartup? seems unusual me.
wiki
Comments
Post a Comment