Argon.Extensions.Hosting 8.2.0
Argon.Extensions.Hosting
ASP.Net Core Hosting extensions designed for Argon ASP.Net Core services
Installation
dotnet add package Argon.Extensions.Hosting
Middlewares
UseStaticPathBase
This middleware is used to set the PathBase of the request. It is useful when you want to run your application behind a reverse proxy or when you want to serve your application from a subpath.
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
var app = builder.Build();
app.UseStaticPathBase("/argon");
app.UseRouting();
app.MapControllers();
app.Run();
No packages depend on Argon.Extensions.Hosting.
.NET 8.0
- Argon.Extensions.Hosting.Abstractions (>= 8.2.0)