News for hackers. Stuff that matters.
Re:Sisk – Lightweight .NET Web Framework by Gluber on Saturday August 31, 2024 @11:00AM (#41409358)
It is actually possible, to seperate those things, but it's tricky. Our current product can run in several modes, one with a web ui and api and one without. If running without there is no trace of the ASP.NET Core Pipeline ( and Kestrel is also not running )

We're using ASP.NET Core Minimal APIS for both API and UI (if configured to run in that mode )

Re:Sisk – Lightweight .NET Web Framework by noworriesnate on Saturday August 31, 2024 @05:56PM (#41412330)
Yeah we have a similar product, where we spin up multiple web servers. Code looks something like this:

        var builder = WebApplication.CreateBuilder([]);

        builder.WebHost.UseUrls($"http://127.0.0.1:0");

        builder.Services.AddSingleton(...);

        var app = builder.Build();

        app.Map...

        await app.StartAsync(cancellationToken);

We run multiple of these at a time and have no problems.