In Startup.cs I have a Startup
class which exposes ConfigureServices()
and Configure()
. The Startup
class is used in the Main()
code path as such...
webBuilder.UseStartup<Startup>();
Many questions:
- How/why are
Startup
callback methods inferred ifStartup
does not implement an interface? - Is the runtime using Reflection?
- Why isn't the generic type an interface?
- What if
Startup
class does not implementConfigureServices()
andConfigure()
?