by Gluber · 2y ago · 0 comments
We're using ASP.NET Core Minimal APIS for both API and UI (if configured to run in that mode )
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.