Program file
Last updated
Last updated
Just like any other.net app the program.cs file is the entry point to the application, right now it just listens to the base URL and maps requests to an anonymous function which returns hello world string.
The WebApplication.CreateBuilder
is the API we use to build our web app and configure it the way we need it.
Edit the message hello world with any string of your choice and save the file, you will see that the browser refreshes immediately without re running the application since we have enabled hot reload!