Blazor Startup Class

S Chapman 82 41 Reputation points
2021-01-20T18:05:22.507+00:00

I'm looking at Blazor Server app and in particular exploring the auto-generated source code. I have found that renaming the methods in Startup class causes an exception and the app won't load. The Startup class is passed to the host only in the form of a delegate and is accessed when the HostBuilder is built and run from inside the framework. This means the framework is assuming the names of the methods in the Startup class. Does anyone else find this to be odd? I would have expected an interface to be published and the Startup class to implement that interface. Am I missing something basic here?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,479 questions
{count} votes