Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Startup class signature revisited

$
0
0

I didn't see how I could post to the below link so I'm creating a new post with the same question as Dan

https://forums.asp.net/t/1987659.aspx?Startup+class+signature

Why does neither the tooling (Visual Studio 15 update 3) in my case nor the documentation

https://docs.asp.net/en/latest/intro.html

show the Startup class inheriting from ASP.NET Core's interface IStartup

https://docs.asp.net/projects/api/en/latest/autoapi/Microsoft/AspNetCore/Hosting/IStartup/

There are many many examples were programmers follow this pattern to enforce a specific behavior on an class. 

Why go to the trouble of defining an interface for Startup and not have the tooling and documentation use it?

Dan I'm just not following you in your example Main in the entry point (static method) of a C# executable.  It's not a class


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>