Table of Contents

Namespace Cuemon.AspNetCore.Hosting

Assembly: Cuemon.AspNetCore.dll

Adjust ASP.NET Core middleware behavior based on the current hosting environment (Development, Staging, Production) using dedicated hosting middleware. Use this namespace when you need environment-aware pipeline customization. Start with HostingEnvironmentMiddleware and configure it via HostingEnvironmentOptions.

Availability: .NET 10 and .NET 9

Complements: Microsoft.AspNetCore.Hosting namespace 🔗

Related: Cuemon.Extensions.AspNetCore.Hosting namespace 📘

Classes

HostingEnvironmentMiddleware

Provides a hosting environment middleware implementation for ASP.NET Core.

HostingEnvironmentOptions

Configuration options for HostingEnvironmentMiddleware.