Class HostEnvironmentExtensions
- Namespace
- Cuemon.Extensions.Hosting
- Assembly
- Cuemon.Extensions.Hosting.dll
Extension methods for the IHostEnvironment interface.
public static class HostEnvironmentExtensions
- Inheritance
-
HostEnvironmentExtensions
Methods
IsLocalDevelopment(IHostEnvironment)
Determines whether the specified environment
is equal to LocalDevelopment
.
public static bool IsLocalDevelopment(this IHostEnvironment environment)
Parameters
environment
IHostEnvironmentThe IHostingEnvironment to extend.
Returns
- Boolean
true
ifenvironment
isLocalDevelopment
; otherwisefalse
IsNonProduction(IHostEnvironment)
Determines whether the specified environment
is different from Production
.
public static bool IsNonProduction(this IHostEnvironment environment)
Parameters
environment
IHostEnvironmentThe IHostingEnvironment to extend.
Returns
- Boolean
true
ifenvironment
is notProduction
; otherwisefalse