Nano Web application.
⚠️ Experimental — proceed with caution.
Extends the API application with built-in support for Razor Pages and Blazor through registered services and middleware.
⚠️ Before proceeding, it is highly recommended to familiarize yourself generally with Nano Applications.
First install the Nano.App.Web NuGet package.
dotnet add package Nano.App.Web;Then, to create a NanoWebApplication simply add the following code to program.cs.
NanoWebApplication<TRoot>
.ConfigureApp()
.ConfigureServices(x =>
{
// Your services...
})
.Build()
.Run();Register your custom services in the ConfigureServices(x => { }) method to extend Nano with additional functionality or integrations.
The App section in the configuration controls application-level behavior, similar to the API application.
Currently, the web application does not add any additional configuration options beyond those available in the API application.
📖 Learn more about Nano API Configuration.
Coming...
Coming...