Table of Contents

Namespace Cuemon.Extensions.Hosting

Assembly: Cuemon.Extensions.Hosting.dll

Detect local development or non-production environments in your application startup code without relying on the built-in development, staging, and production checks. Use this namespace when you need environment-detection beyond the standard ASP.NET Core checks. Start with IsLocalDevelopment() on IHostEnvironment for detecting local machines, or IsNonProduction() for checking non-production environments.

Availability: .NET 10, .NET 9 and .NET Standard 2.0

Complements: Microsoft.Extensions.Hosting namespace 🔗

Extension Members

Type Ext Methods
IHostBuilder ⬇️ ConfigureConfigurationSources, RemoveConfigurationSource
IHostEnvironment ⬇️ IsLocalDevelopment, IsNonProduction
IHostingEnvironment ⬇️ IsLocalDevelopment, IsNonProduction

Classes

Environments

Provides a set of constants for commonly used environment names.

HostBuilderExtensions

Extension methods for the IHostBuilder interface.

HostEnvironmentExtensions

Extension methods for the IHostEnvironment interface.