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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -